Skip to content

Commit 34875b7

Browse files
perexggregkh
authored andcommitted
ALSA: hda: improve bass speaker support for ASUS Zenbook UM5606WA
[ Upstream commit a7df7f9 ] This hardware has ALC294 codec with speaker NID 0x17 and bass speaker NID 0x15. This patch removes DAC NID 0x06 (without volume control) from the connection list for bass speaker NID 0x15. Both speaker PINs are routed to DAC NID 0x03 with this change. Link: alsa-project/alsa-ucm-conf#467 Signed-off-by: Jaroslav Kysela <perex@perex.cz> Link: https://patch.msgid.link/20241128112145.3409492-1-perex@perex.cz Signed-off-by: Takashi Iwai <tiwai@suse.de> Stable-dep-of: b5458fc ("ALSA: hda/realtek - Fixed ASUS platform headset Mic issue") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 9b019be commit 34875b7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6603,6 +6603,16 @@ static void alc285_fixup_speaker2_to_dac1(struct hda_codec *codec,
66036603
}
66046604
}
66056605

6606+
/* disable DAC3 (0x06) selection on NID 0x15 - share Speaker/Bass Speaker DAC 0x03 */
6607+
static void alc294_fixup_bass_speaker_15(struct hda_codec *codec,
6608+
const struct hda_fixup *fix, int action)
6609+
{
6610+
if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6611+
static const hda_nid_t conn[] = { 0x02, 0x03 };
6612+
snd_hda_override_conn_list(codec, 0x15, ARRAY_SIZE(conn), conn);
6613+
}
6614+
}
6615+
66066616
/* Hook to update amp GPIO4 for automute */
66076617
static void alc280_hp_gpio4_automute_hook(struct hda_codec *codec,
66086618
struct hda_jack_callback *jack)
@@ -7888,6 +7898,7 @@ enum {
78887898
ALC245_FIXUP_CLEVO_NOISY_MIC,
78897899
ALC269_FIXUP_VAIO_VJFH52_MIC_NO_PRESENCE,
78907900
ALC233_FIXUP_MEDION_MTL_SPK,
7901+
ALC294_FIXUP_BASS_SPEAKER_15,
78917902
};
78927903

78937904
/* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -10222,6 +10233,10 @@ static const struct hda_fixup alc269_fixups[] = {
1022210233
{ }
1022310234
},
1022410235
},
10236+
[ALC294_FIXUP_BASS_SPEAKER_15] = {
10237+
.type = HDA_FIXUP_FUNC,
10238+
.v.func = alc294_fixup_bass_speaker_15,
10239+
},
1022510240
};
1022610241

1022710242
static const struct hda_quirk alc269_fixup_tbl[] = {
@@ -10750,6 +10765,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
1075010765
SND_PCI_QUIRK(0x1043, 0x1d42, "ASUS Zephyrus G14 2022", ALC289_FIXUP_ASUS_GA401),
1075110766
SND_PCI_QUIRK(0x1043, 0x1d4e, "ASUS TM420", ALC256_FIXUP_ASUS_HPE),
1075210767
SND_PCI_QUIRK(0x1043, 0x1da2, "ASUS UP6502ZA/ZD", ALC245_FIXUP_CS35L41_SPI_2),
10768+
SND_PCI_QUIRK(0x1043, 0x1df3, "ASUS UM5606WA", ALC294_FIXUP_BASS_SPEAKER_15),
1075310769
SND_PCI_QUIRK(0x1043, 0x1e02, "ASUS UX3402ZA", ALC245_FIXUP_CS35L41_SPI_2),
1075410770
SND_PCI_QUIRK(0x1043, 0x1e11, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA502),
1075510771
SND_PCI_QUIRK(0x1043, 0x1e12, "ASUS UM3402", ALC287_FIXUP_CS35L41_I2C_2),

0 commit comments

Comments
 (0)