]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
ASoC: tlv320aic3x: Fix data delay configuration
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 4 Feb 2015 15:10:58 +0000 (15:10 +0000)
committerJyri Sarha <jsarha@ti.com>
Wed, 4 Feb 2015 12:44:49 +0000 (14:44 +0200)
In linux-next:
[ upstream commit 0b65ba9981d8fe80fd099f26dd96c60e07729aeb ]

Fix the issue introduced by:
368494093354 ASoC: tlv320aic3x: Add TDM support

The CTRLC register were not receiving the correct delay configuration,
which will corrupt DSP_A audio mode.

Fixes: 368494093354 (ASoC: tlv320aic3x: Add TDM support)
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Jyri Sarha <jsarha@ti.com>
sound/soc/codecs/tlv320aic3x.c

index 459070855c65c0c385896365d5d29fe2fab6cae0..b89f807c17ada4265e595acc23acf1139671ae56 100644 (file)
@@ -1042,7 +1042,7 @@ static int aic3x_prepare(struct snd_pcm_substream *substream,
                delay += aic3x->tdm_delay;
 
        /* Configure data delay */
-       snd_soc_write(codec, AIC3X_ASD_INTF_CTRLC, aic3x->tdm_delay);
+       snd_soc_write(codec, AIC3X_ASD_INTF_CTRLC, delay);
 
        return 0;
 }