]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.8.5/alsa-hda-fix-typo-in-checking-iec958-emphasis-bit.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 3.8.5 / alsa-hda-fix-typo-in-checking-iec958-emphasis-bit.patch
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
5
6 From: Takashi Iwai <tiwai@suse.de>
7
8 commit a686fd141e20244ad75f80ad54706da07d7bb90a upstream.
9
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.
13
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>
17
18 ---
19 sound/pci/hda/hda_codec.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
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;
31 } else {
32 if (val & AC_DIG1_EMPHASIS)