1 From a686fd141e20244ad75f80ad54706da07d7bb90a Mon Sep 17 00:00:00 2001
2 From: Takashi Iwai <tiwai@suse.de>
3 Date: Wed, 20 Mar 2013 15:42:00 +0100
4 Subject: ALSA: hda - Fix typo in checking IEC958 emphasis bit
6 From: Takashi Iwai <tiwai@suse.de>
8 commit a686fd141e20244ad75f80ad54706da07d7bb90a upstream.
10 There is a typo in convert_to_spdif_status() about checking the
11 emphasis IEC958 status bit. It should check the given value instead
12 of the resultant value.
14 Reported-by: Martin Weishart <martin.weishart@telosalliance.com>
15 Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 sound/pci/hda/hda_codec.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 --- a/sound/pci/hda/hda_codec.c
23 +++ b/sound/pci/hda/hda_codec.c
24 @@ -2967,7 +2967,7 @@ static unsigned int convert_to_spdif_sta
25 if (val & AC_DIG1_PROFESSIONAL)
26 sbits |= IEC958_AES0_PROFESSIONAL;
27 if (sbits & IEC958_AES0_PROFESSIONAL) {
28 - if (sbits & AC_DIG1_EMPHASIS)
29 + if (val & AC_DIG1_EMPHASIS)
30 sbits |= IEC958_AES0_PRO_EMPHASIS_5015;
32 if (val & AC_DIG1_EMPHASIS)