Skip to contentSkip to conversation

ASoC: tlv320aic3x: Fix data delay configuration

PATCH Superseded Peter Ujfalusi 4 participants 4 messages Jan 30, 2015

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: tlv320aic3x: Fix data delay configuration

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.

---
Hi,

most of my boards are using DSP_B or I2S mode... This is why this is slipped.

Peter

 sound/soc/codecs/tlv320aic3x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/tlv320aic3x.c +1 -1
index a78ad361f494..07603d142923 100644
@@ -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;
 }
Signature · 1 line
2.2.2
Tested-by on v1 1/1
#1 lore raw

Hi!

Quoted 8 lines

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.

Thanks for a fix!

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Tested-by
#2 lore raw
Quoted 5 lines · Pavel Machek

Hi!

Quoted 3 lines

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

Quoted 8 lines
Quoted 5 lines

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

You could add into v2 (see Takashi's Fixes: tag comment) also my

#3 lore raw
In reply to Peter Ujfalusi

At Fri, 30 Jan 2015 14:42:31 +0200,

Quoted 3 lines · Peter Ujfalusi

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

Please put "Fixes:" tag in such a case.

I guess we'll have a chance to send the last pull request for 3.19 in the next week. If we miss it, we'll have to mark this with Cc to stable.

Takashi

Quoted 37 lines

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

---
Hi,

most of my boards are using DSP_B or I2S mode... This is why this is slipped.

Peter

 sound/soc/codecs/tlv320aic3x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/tlv320aic3x.c +1 -1
index a78ad361f494..07603d142923 100644
@@ -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;
 }
Signature · 6 lines
2.2.2

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel