Skip to contentSkip to conversation

ASoC: OMAP: HDMI: Initialize IEC-60958 channel status word

PATCH In review Ricardo Neri 2 participants 6 messages Jun 4, 2012 – Jun 11, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: OMAP: HDMI: Initialize IEC-60958 channel status word

Hi Mark, Liam,

This patch is to fix an bug that I found in K3.5-rc1. As the IEC-60958 channel status word is not initialized in hw_params, the params from previous calls corrupt those of the current playback.

BR

Ricardo

Ricardo Neri (1):
ASoC: OMAP: HDMI: Initialize IEC-60958 channel status word

 sound/soc/omap/omap-hdmi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 ASoC: OMAP: HDMI: Initialize IEC-60958 channel status word

As the IEC-60958 channel status word is set by ANDing and ORing with the appropriate definitions, the word bytes need to be initialized to zero to avoid corruption due to previous hw_params calls.

---
 sound/soc/omap/omap-hdmi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/omap/omap-hdmi.c +2 -0
index a08245d..24b40bd 100644
@@ -108,6 +108,8 @@ static int omap_hdmi_dai_hw_params(struct snd_pcm_substream *substream,
 	/*
 	 * fill the IEC-60958 channel status word
 	 */
+	/* initialize the word bytes */
+	memset(iec->status, 0, sizeof(iec->status));
 
 	/* specify IEC-60958-3 (commercial use) */
 	iec->status[0] &= ~IEC958_AES0_PROFESSIONAL;
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#2 lore raw
Quoted 3 lines · Ricardo Neri

As the IEC-60958 channel status word is set by ANDing and ORing with the appropriate definitions, the word bytes need to be initialized to zero to avoid corruption due to previous hw_params calls.

#3 lore raw
In reply to Ricardo Neri
Quoted 5 lines · Ricardo Neri

Hi Mark, Liam,

This patch is to fix an bug that I found in K3.5-rc1. As the IEC-60958 channel status word is not initialized in hw_params, the params from previous calls corrupt those of the current playback.

Don't send cover letters for single patches, if there's anything useful to say say it in the patch.

#4 lore raw

Hi Mark,

Quoted 9 lines · Mark Brown
Quoted 5 lines · Ricardo Neri

Hi Mark, Liam,

This patch is to fix an bug that I found in K3.5-rc1. As the IEC-60958 channel status word is not initialized in hw_params, the params from previous calls corrupt those of the current playback.

Don't send cover letters for single patches, if there's anything useful to say say it in the patch.

Sorry, I will resend as a single patch without the cover letter.

Ricardo

#5 lore raw
Quoted 1 line · Ricardo Neri

Sorry, I will resend as a single patch without the cover letter.

No need, but please don't do this for future things.