Skip to content

Commit 0df2b9e

Browse files
KailangYangtiwai
authored andcommitted
ALSA: hda/realtek - fixed headset Mic not show
ALC256 run on SOF mode. Boot with plugged headset, the Headset Mic will be gone. Plugged headset after boot. It had partial fail with Headset Mic detect. Add spec->en_3kpull_low = false will solve all issues. Signed-off-by: Kailang Yang <kailang@realtek.com> Link: https://lore.kernel.org/r/c8b638590c5f45a6a5c6aeb20c31fd5b@realtek.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 9b4843e commit 0df2b9e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6527,6 +6527,20 @@ static void alc295_fixup_chromebook(struct hda_codec *codec,
65276527
}
65286528
}
65296529

6530+
static void alc256_fixup_chromebook(struct hda_codec *codec,
6531+
const struct hda_fixup *fix, int action)
6532+
{
6533+
struct alc_spec *spec = codec->spec;
6534+
6535+
switch (action) {
6536+
case HDA_FIXUP_ACT_PRE_PROBE:
6537+
spec->gen.suppress_auto_mute = 1;
6538+
spec->gen.suppress_auto_mic = 1;
6539+
spec->en_3kpull_low = false;
6540+
break;
6541+
}
6542+
}
6543+
65306544
static void alc_fixup_disable_mic_vref(struct hda_codec *codec,
65316545
const struct hda_fixup *fix, int action)
65326546
{
@@ -7505,6 +7519,7 @@ enum {
75057519
ALC285_FIXUP_ASUS_GU605_SPI_2_HEADSET_MIC,
75067520
ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1,
75077521
ALC287_FIXUP_LENOVO_THKPAD_WH_ALC1318,
7522+
ALC256_FIXUP_CHROME_BOOK,
75087523
};
75097524

75107525
/* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -9787,6 +9802,12 @@ static const struct hda_fixup alc269_fixups[] = {
97879802
.chained = true,
97889803
.chain_id = ALC269_FIXUP_THINKPAD_ACPI
97899804
},
9805+
[ALC256_FIXUP_CHROME_BOOK] = {
9806+
.type = HDA_FIXUP_FUNC,
9807+
.v.func = alc256_fixup_chromebook,
9808+
.chained = true,
9809+
.chain_id = ALC225_FIXUP_HEADSET_JACK
9810+
},
97909811
};
97919812

97929813
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -10753,6 +10774,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
1075310774
{.id = ALC295_FIXUP_HP_X360, .name = "alc295-hp-x360"},
1075410775
{.id = ALC225_FIXUP_HEADSET_JACK, .name = "alc-headset-jack"},
1075510776
{.id = ALC295_FIXUP_CHROME_BOOK, .name = "alc-chrome-book"},
10777+
{.id = ALC256_FIXUP_CHROME_BOOK, .name = "alc-2024y-chromebook"},
1075610778
{.id = ALC299_FIXUP_PREDATOR_SPK, .name = "predator-spk"},
1075710779
{.id = ALC298_FIXUP_HUAWEI_MBX_STEREO, .name = "huawei-mbx-stereo"},
1075810780
{.id = ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE, .name = "alc256-medion-headset"},

0 commit comments

Comments
 (0)