ASoC: TWL4030: Check the interface format for 4 channel mode
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Mon, 1 Jun 2009 11:06:40 +0000 (14:06 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Jun 2009 22:46:08 +0000 (23:46 +0100)
commiteaf1ac8bb58888e0773c0b81dfedb9d7c0123a1d
treea12e7bf7e9a4d1b8a71444aaf70d5c4423b1fd31
parent16a30fbb0d3aa4ee829a2dd3d0e314e2b5ae96a9
ASoC: TWL4030: Check the interface format for 4 channel mode

In addition to the operating mode check, also check the
codec's interface format in case of four channel mode.
If the codec is not in TDM (DSP_A) mode, return with error.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl4030.c