aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/samsung/idma.c8
-rw-r--r--sound/soc/samsung/idma.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c
index 31fa305..8128507 100644
--- a/sound/soc/samsung/idma.c
+++ b/sound/soc/samsung/idma.c
@@ -523,6 +523,14 @@ void idma_init(void *regs)
#endif
}
+#ifdef CONFIG_SND_SAMSUNG_ALP
+int idma_is_running(void)
+{
+ return (idma.trigger_stat == LPAM_DMA_START) ? 1 : 0;
+}
+EXPORT_SYMBOL(idma_is_running);
+#endif
+
#ifdef CONFIG_SND_SAMSUNG_RP
int idma_irq_callback(void)
{
diff --git a/sound/soc/samsung/idma.h b/sound/soc/samsung/idma.h
index 0480974..d132aa1 100644
--- a/sound/soc/samsung/idma.h
+++ b/sound/soc/samsung/idma.h
@@ -81,4 +81,6 @@ extern void idma_init(void *regs);
/* These functions are used for srp driver. */
extern int idma_irq_callback(void);
extern void idma_stop(void);
+extern int idma_is_running(void);
+
#endif /* __S3C_IDMA_H_ */