Update alc287_fixup_bind_dacs()
Hi Takashi,
Two speakers platform will common use same function. So, attach patch was an update.
BR,
Kailang
From 866966dc46057c2d798ceef6a335f95becd48d4c Mon Sep 17 00:00:00 2001
From: Kailang Yang <[email protected]>
Date: Tue, 12 Sep 2023 15:31:49 +0800
Subject: [PATCH] ALSA: hda/realtek - Fixed two speaker platform
If system has two speakers and one connect to 0x14 pin, use this function will disable it.
Fixes e43252db7e20 ("ALSA: hda/realtek - ALC287 I2S speaker platform support")
Signed-off-by Kailang Yang <[email protected]>
sound/pci/hda/patch_realtek.c +4 -2
@@ -7073,8 +7073,10 @@ static void alc287_fixup_bind_dacs(struct hda_codec *codec,snd_hda_override_conn_list (codec,0x17 ,ARRAY_SIZE (conn), conn); spec->gen.preferred_dacs = preferred_pairs; spec->gen.auto_mute_via_amp =1 ; -snd_hda_codec_write_cache (codec,0x14 ,0 ,AC_VERB_SET_PIN_WIDGET_CONTROL , -0x0 );/* Make sure 0x14 was disable */ +if (spec->gen.autocfg.speaker_pins[0 ] !=0x14 ) { +snd_hda_codec_write_cache (codec,0x14 ,0 ,AC_VERB_SET_PIN_WIDGET_CONTROL , +0x0 );/* Make sure 0x14 was disable */ + } }
Takashi Iwai
AppliedQuoted 5 lines · Kailang
Hi Takashi,
Two speakers platform will common use same function. So, attach patch was an update.
Thanks, applied now.
Takashi