Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a686fd14 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarMartin Weishart <martin.weishart@telosalliance.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 83ea5d18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)