Skip to content

Commit 8eedd3a

Browse files
committed
ALSA: hda/realtek: Fix silent headphone output on ASUS UX430UA
It was reported that the headphone output on ASUS UX430UA (SSID 1043:1740) with ALC295 codec is silent while the speaker works. After the investigation, it turned out that the DAC assignment has to be fixed on this machine; unlike others, it expects DAC 0x02 to be assigned to the speaker pin 0x07 while DAC 0x03 to headphone pin 0x21. This patch provides a fixup for the fixed DAC/pin mapping for this device. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212933 Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent ab2165e commit 8eedd3a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5695,6 +5695,18 @@ static void alc_fixup_tpt470_dacs(struct hda_codec *codec,
56955695
spec->gen.preferred_dacs = preferred_pairs;
56965696
}
56975697

5698+
static void alc295_fixup_asus_dacs(struct hda_codec *codec,
5699+
const struct hda_fixup *fix, int action)
5700+
{
5701+
static const hda_nid_t preferred_pairs[] = {
5702+
0x17, 0x02, 0x21, 0x03, 0
5703+
};
5704+
struct alc_spec *spec = codec->spec;
5705+
5706+
if (action == HDA_FIXUP_ACT_PRE_PROBE)
5707+
spec->gen.preferred_dacs = preferred_pairs;
5708+
}
5709+
56985710
static void alc_shutup_dell_xps13(struct hda_codec *codec)
56995711
{
57005712
struct alc_spec *spec = codec->spec;
@@ -6463,6 +6475,7 @@ enum {
64636475
ALC256_FIXUP_ACER_HEADSET_MIC,
64646476
ALC285_FIXUP_IDEAPAD_S740_COEF,
64656477
ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST,
6478+
ALC295_FIXUP_ASUS_DACS,
64666479
};
64676480

64686481
static const struct hda_fixup alc269_fixups[] = {
@@ -7963,6 +7976,10 @@ static const struct hda_fixup alc269_fixups[] = {
79637976
.chained = true,
79647977
.chain_id = ALC285_FIXUP_HP_MUTE_LED,
79657978
},
7979+
[ALC295_FIXUP_ASUS_DACS] = {
7980+
.type = HDA_FIXUP_FUNC,
7981+
.v.func = alc295_fixup_asus_dacs,
7982+
},
79667983
};
79677984

79687985
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -8161,6 +8178,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
81618178
SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
81628179
SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A),
81638180
SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC),
8181+
SND_PCI_QUIRK(0x1043, 0x1740, "ASUS UX430UA", ALC295_FIXUP_ASUS_DACS),
81648182
SND_PCI_QUIRK(0x1043, 0x17d1, "ASUS UX431FL", ALC294_FIXUP_ASUS_DUAL_SPK),
81658183
SND_PCI_QUIRK(0x1043, 0x1881, "ASUS Zephyrus S/M", ALC294_FIXUP_ASUS_GX502_PINS),
81668184
SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC),

0 commit comments

Comments
 (0)