]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: OMAP: HDMI: Initialize IEC-60958 channel status word
authorRicardo Neri <rneri@dextratech.com>
Fri, 11 Jan 2013 00:32:13 +0000 (18:32 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 11 Jan 2013 23:58:37 +0000 (23:58 +0000)
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.

Signed-off-by: Ricardo Neri <rneri@dextratech.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-hdmi.c

index 7ea24819d570ec912f60fc978497578bddeb753b..32fa840c493e9f31a6860d0eb48a7392f57d0f91 100644 (file)
@@ -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;