Skip to content

Commit 44bb6d0

Browse files
committed
ALSA: hda - Apply AMP fix in hdmi_setup_audio_infoframe() generically
The need for reprogramming the AMP mute bit at each audio info frame setup isn't always specific to Intel chips. It's safer to set it generically for all codecs with the amp bit, as this verb execution itself isn't too much load. This eliminates one usage of is_haswell_plus() macro, after all. Signed-off-by: Takashi Iwai <[email protected]>
1 parent a686632 commit 44bb6d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/pci/hda/patch_hdmi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,8 @@ static void hdmi_setup_audio_infoframe(struct hda_codec *codec,
683683
if (!channels)
684684
return;
685685

686-
if (is_haswell_plus(codec))
686+
/* some HW (e.g. HSW+) needs reprogramming the amp at each time */
687+
if (get_wcaps(codec, pin_nid) & AC_WCAP_OUT_AMP)
687688
snd_hda_codec_write(codec, pin_nid, 0,
688689
AC_VERB_SET_AMP_GAIN_MUTE,
689690
AMP_OUT_UNMUTE);

0 commit comments

Comments
 (0)