Skip to content

Commit

Permalink
ASoC: OMAP: HDMI: Initialize IEC-60958 channel status word
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ricardo Neri authored and Mark Brown committed Jan 11, 2013
1 parent 9931fac commit a88fedf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/omap/omap-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a88fedf

Please sign in to comment.