diff options
author | Dong Aisheng <b29396@freescale.com> | 2011-08-29 11:15:14 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-21 16:59:46 +0200 |
commit | 17841020e9d3dbd4e8114c2142c2bc6d45c01da1 (patch) | |
tree | 7f7adb00fea156ae2c9e056439bee389d5ed10e8 /include/sound/soc-dai.h | |
parent | ASoC: 88pm860x-codec - reset the codec correctly (diff) | |
download | linux-17841020e9d3dbd4e8114c2142c2bc6d45c01da1.tar.xz linux-17841020e9d3dbd4e8114c2142c2bc6d45c01da1.zip |
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>
Diffstat (limited to 'include/sound/soc-dai.h')
-rw-r--r-- | include/sound/soc-dai.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 5ad5f3a50c68..12d98b435444 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -242,6 +242,9 @@ struct snd_soc_dai { void *playback_dma_data; void *capture_dma_data; + /* Symmetry data - only valid if symmetry is being enforced */ + unsigned int rate; + /* parent platform/codec */ union { struct snd_soc_platform *platform; |