mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
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>
This commit is contained in:
parent
83ea5d18d7
commit
a686fd141e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user