diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-03-20 15:42:00 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-03-20 15:42:00 +0100 |
commit | a686fd141e20244ad75f80ad54706da07d7bb90a (patch) | |
tree | 0e366f91bf5311be7b8b3f5b38b544263e508272 /sound | |
parent | ALSA: snd-usb: mixer: ignore -EINVAL in snd_usb_mixer_controls() (diff) | |
download | linux-a686fd141e20244ad75f80ad54706da07d7bb90a.tar.xz linux-a686fd141e20244ad75f80ad54706da07d7bb90a.zip |
ALSA: hda - Fix typo in checking IEC958 emphasis bit
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index a9ebcf9e3710..ecdf30eb5879 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -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) |