summaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-hdmi.c
diff options
context:
space:
mode:
authorRicardo Neri <rneri@dextratech.com>2013-01-10 18:32:13 -0600
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-11 23:58:37 +0000
commita88fedfd342badff3653edcc6b6423e892d1773f (patch)
tree1061ec9e750d9af7e929bfe7b3deb14822c1542f /sound/soc/omap/omap-hdmi.c
parent9931faca02c604c22335f5a935a501bb2ace6e20 (diff)
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. Signed-off-by: Ricardo Neri <rneri@dextratech.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap/omap-hdmi.c')
-rw-r--r--sound/soc/omap/omap-hdmi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-hdmi.c b/sound/soc/omap/omap-hdmi.c
index 7ea24819d57..32fa840c493 100644
--- a/sound/soc/omap/omap-hdmi.c
+++ b/sound/soc/omap/omap-hdmi.c
@@ -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;