* [PATCH] ASoC: tlv320aic3x: Fix data delay configuration
@ 2015-01-30 12:42 Peter Ujfalusi
2015-01-30 12:52 ` Pavel Machek
2015-01-30 14:18 ` Takashi Iwai
0 siblings, 2 replies; 4+ messages in thread
From: Peter Ujfalusi @ 2015-01-30 12:42 UTC (permalink / raw)
To: Mark Brown, Jarkko Nikula; +Cc: alsa-devel, Liam Girdwood, pavel
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.
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
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(-)
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;
}
--
2.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: tlv320aic3x: Fix data delay configuration
2015-01-30 12:42 [PATCH] ASoC: tlv320aic3x: Fix data delay configuration Peter Ujfalusi
@ 2015-01-30 12:52 ` Pavel Machek
2015-01-30 17:50 ` Jarkko Nikula
2015-01-30 14:18 ` Takashi Iwai
1 sibling, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2015-01-30 12:52 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: alsa-devel, Mark Brown, Liam Girdwood, Jarkko Nikula
Hi!
> 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.
>
> Reported-by: Pavel Machek <pavel@ucw.cz>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Pavel Machek <pavel@ucw.cz>
Thanks for a fix!
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: tlv320aic3x: Fix data delay configuration
2015-01-30 12:42 [PATCH] ASoC: tlv320aic3x: Fix data delay configuration Peter Ujfalusi
2015-01-30 12:52 ` Pavel Machek
@ 2015-01-30 14:18 ` Takashi Iwai
1 sibling, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2015-01-30 14:18 UTC (permalink / raw)
To: Peter Ujfalusi
Cc: pavel, alsa-devel, Mark Brown, Liam Girdwood, Jarkko Nikula
At Fri, 30 Jan 2015 14:42:31 +0200,
Peter Ujfalusi wrote:
>
> 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
>
> The CTRLC register were not receiving the correct delay configuration,
> which will corrupt DSP_A audio mode.
>
> Reported-by: Pavel Machek <pavel@ucw.cz>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
> 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(-)
>
> 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;
> }
> --
> 2.2.2
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: tlv320aic3x: Fix data delay configuration
2015-01-30 12:52 ` Pavel Machek
@ 2015-01-30 17:50 ` Jarkko Nikula
0 siblings, 0 replies; 4+ messages in thread
From: Jarkko Nikula @ 2015-01-30 17:50 UTC (permalink / raw)
To: Pavel Machek, Peter Ujfalusi; +Cc: alsa-devel, Mark Brown, Liam Girdwood
On 01/30/2015 02:52 PM, Pavel Machek wrote:
> Hi!
>
>> 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.
>>
>> Reported-by: Pavel Machek <pavel@ucw.cz>
>> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
>
> Tested-by: Pavel Machek <pavel@ucw.cz>
>
You could add into v2 (see Takashi's Fixes: tag comment) also my
Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-30 17:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-30 12:42 [PATCH] ASoC: tlv320aic3x: Fix data delay configuration Peter Ujfalusi
2015-01-30 12:52 ` Pavel Machek
2015-01-30 17:50 ` Jarkko Nikula
2015-01-30 14:18 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.