summaryrefslogtreecommitdiffstats
path: root/sound/soc/mxs/mxs-saif.h
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2011-09-07 20:51:50 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-19 18:31:59 +0100
commit76067540c642b1a14679ab74bd027a074c23e63b (patch)
treeabfed6d3a416cd00904371cb4977e672e77230cf /sound/soc/mxs/mxs-saif.h
parent5d42940c25ac69c4f5240392cf5e26bf08029e7a (diff)
ASoC: mxs-saif: add record function
1. add different clkmux mode handling SAIF can use two instances to implement full duplex (playback & recording) and record saif may work on EXTMASTER mode which is using other saif's BITCLK&LRCLK. The clkmux mode could be set in pdata->init() in mach-specific code. For generic saif driver, it only needs to know who is his master and the master id is also provided in mach-specific code. 2. support playback and capture simutaneously however the sample rates can not be different due to hw limitation. Signed-off-by: Dong Aisheng <b29396@freescale.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/mxs/mxs-saif.h')
-rw-r--r--sound/soc/mxs/mxs-saif.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/mxs/mxs-saif.h b/sound/soc/mxs/mxs-saif.h
index 0e2ff8cdbfe..12c91e4eb94 100644
--- a/sound/soc/mxs/mxs-saif.h
+++ b/sound/soc/mxs/mxs-saif.h
@@ -118,6 +118,10 @@ struct mxs_saif {
void __iomem *base;
int irq;
struct mxs_pcm_dma_params dma_param;
+ unsigned int id;
+ unsigned int master_id;
+ unsigned int cur_rate;
+ unsigned int ongoing;
struct platform_device *soc_platform_pdev;
u32 fifo_underrun;