ASoC: ux500: Ensure consistent configuration between DAIs
authorFabio Baltieri <fabio.baltieri@linaro.org>
Tue, 28 May 2013 14:16:39 +0000 (16:16 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 May 2013 14:23:23 +0000 (10:23 -0400)
commita130243b96622e16af7c1ac7ba903b4cec7aa81b
treefde9e0bf8d8033531e57233dfda08c410cc7c1d9
parentf82030f978ae21ee790a90610ff21ce72667958e
ASoC: ux500: Ensure consistent configuration between DAIs

Current implementation of mop500_ab8500 allows for inconsistent sample
rate and channel count configuration between the playback and recording
interfaces, through in the hardware the two MSP controllers share
common clock and frame sync signals.

This patch adds the necessary code to ensure that the two device are
configure consistently.  The check is added at machine driver level, as
how to lock DAI configuration depend of the actual hardware
implementation.

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/ux500/mop500_ab8500.c