]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - Fix typo in checking IEC958 emphasis bit
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Mar 2013 14:42:00 +0000 (15:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Mar 2013 14:42:00 +0000 (15:42 +0100)
There is a typo in convert_to_spdif_status() about checking the
emphasis IEC958 status bit.  It should check the given value instead
of the resultant value.

Reported-by: Martin Weishart <martin.weishart@telosalliance.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c

index a9ebcf9e3710ece320bd656bd45e8ff615b0eb75..ecdf30eb5879ab4547e1e72b70bca366cb39ca78 100644 (file)
@@ -3144,7 +3144,7 @@ static unsigned int convert_to_spdif_status(unsigned short val)
        if (val & AC_DIG1_PROFESSIONAL)
                sbits |= IEC958_AES0_PROFESSIONAL;
        if (sbits & IEC958_AES0_PROFESSIONAL) {
-               if (sbits & AC_DIG1_EMPHASIS)
+               if (val & AC_DIG1_EMPHASIS)
                        sbits |= IEC958_AES0_PRO_EMPHASIS_5015;
        } else {
                if (val & AC_DIG1_EMPHASIS)