ASoC: mxs-saif: add record function
authorDong Aisheng <b29396@freescale.com>
Wed, 7 Sep 2011 12:51:50 +0000 (20:51 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 19 Sep 2011 17:31:59 +0000 (18:31 +0100)
commit76067540c642b1a14679ab74bd027a074c23e63b
treeabfed6d3a416cd00904371cb4977e672e77230cf
parent5d42940c25ac69c4f5240392cf5e26bf08029e7a
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>
include/sound/saif.h [new file with mode: 0644]
sound/soc/mxs/mxs-saif.c
sound/soc/mxs/mxs-saif.h