summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-mc13783.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-12 10:27:17 +0100
committerMark Brown <broonie@kernel.org>2015-01-14 19:04:38 +0000
commitbec78c5f4ae228c4cbd432e97cadb8827fd8f1f9 (patch)
treec6ef708df0ec5c57b0f0b830ddb1f873b2b28be0 /sound/soc/fsl/imx-mc13783.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
ASoC: mc13783: Update set_tdm_slot() semantics
The mc13783 driver uses inverted semantics for the tx_mask and rx_mask parameter of the set_tdm_slot() callback compared to rest of ASoC. This patch updates the driver's semantics to be consistent with the rest of ASoC, i.e. a set bit means a active slot and a cleared bit means a inactive slot. This will allow us to use the set_tdm_slot() API in a more generic way. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/imx-mc13783.c')
-rw-r--r--sound/soc/fsl/imx-mc13783.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c
index 6bf5bce01a92..9589452e995e 100644
--- a/sound/soc/fsl/imx-mc13783.c
+++ b/sound/soc/fsl/imx-mc13783.c
@@ -37,8 +37,7 @@ static int imx_mc13783_hifi_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_dai *codec_dai = rtd->codec_dai;
int ret;
- ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xfffffffc, 0xfffffffc,
- 4, 16);
+ ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x3, 0x3, 4, 16);
if (ret)
return ret;