Skip to contentSkip to conversation

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

PATCH RESEND In review Ricardo Neri 2 participants 3 messages Jan 11, 2013 – Jan 12, 2013

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

PATCH RESEND 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 misconfiguration due to previous hw_params calls.

---
 sound/soc/omap/omap-hdmi.c |    2 ++
 1 file changed, 2 insertions(+)
sound/soc/omap/omap-hdmi.c +2 -0
index f59c69f..75ad378 100644
@@ -110,6 +110,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;

--
1.7.10.4

#1 lore raw
Quoted 5 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 misconfiguration due to previous hw_params calls.

You've dropped my ack from this, you should keep acks on patches you resubmit to save people time on review.

Anyway, I guess there's no need to merge via the video tree now so applied.

#2 lore raw

Hi Mark,

Quoted 9 lines · Mark Brown
Quoted 5 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 misconfiguration due to previous hw_params calls.

You've dropped my ack from this, you should keep acks on patches you resubmit to save people time on review.

Sorry, I missed that. I just basically went ahead and resubmitted because you ack'ed it but the patch was not applied. I guess I should have clarified that this change was independent of the video tree.

Quoted 4 lines

Anyway, I guess there's no need to merge via the video tree now so applied.

Thanks!

Ricardo