diff mbox

[v2] ASoC: tlv320aic3x: Fix data delay configuration

Message ID 1422865223-11785-1-git-send-email-peter.ujfalusi@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Peter Ujfalusi Feb. 2, 2015, 8:20 a.m. UTC
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>
Tested-by: Pavel Machek <pavel@ucw.cz>
Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
---

Changes since v1:
Fixes tag and Tested-by from Pavel and Jarkko added to commit message.

Regards,
Peter

 sound/soc/codecs/tlv320aic3x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown Feb. 2, 2015, 11:58 a.m. UTC | #1
On Mon, Feb 02, 2015 at 10:20:23AM +0200, Peter Ujfalusi wrote:

> Changes since v1:
> Fixes tag and Tested-by from Pavel and Jarkko added to commit message.

If there are any code changes from the version I've already applied
please send them as an incremental patch.
Peter Ujfalusi Feb. 2, 2015, 12:50 p.m. UTC | #2
On 02/02/2015 01:58 PM, Mark Brown wrote:
> On Mon, Feb 02, 2015 at 10:20:23AM +0200, Peter Ujfalusi wrote:
> 
>> Changes since v1:
>> Fixes tag and Tested-by from Pavel and Jarkko added to commit message.
> 
> If there are any code changes from the version I've already applied
> please send them as an incremental patch.

No change to the code, just commit message.

Thanks,
Péter
diff mbox

Patch

diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index a78ad361f494..07603d142923 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -1046,7 +1046,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;
 }