]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-core: symmetry checking for each DAIs separately
authorDong Aisheng <b29396@freescale.com>
Mon, 29 Aug 2011 09:15:14 +0000 (17:15 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 21 Sep 2011 14:59:46 +0000 (15:59 +0100)
commita91e77013e081b2512d235509289655faca4a111
tree7f7adb00fea156ae2c9e056439bee389d5ed10e8
parent7e630e57347e5cce4b58befa46f0980fc3a1aa8b
ASoC: soc-core: symmetry checking for each DAIs separately

The orginal code does not cover the case that one DAI such as codec
may be shared between other two DAIs(CPU).
When do symmetry checking, altough the codec DAI requires symmetry,
the two CPU DAIs may still be configured to run on different rates.

We change to check each DAI's state separately instead of only checking
the dai link to prevent this issue.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Tested-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/soc-dai.h
include/sound/soc.h
sound/soc/soc-pcm.c