52 lines
2.3 KiB
Diff
52 lines
2.3 KiB
Diff
diff -rupN linux-6.4.16.orig/sound/pci/hda/patch_realtek.c linux-6.4.16/sound/pci/hda/patch_realtek.c
|
|
--- linux-6.4.16.orig/sound/pci/hda/patch_realtek.c 2023-10-18 20:03:49.089091278 -0600
|
|
+++ linux-6.4.16/sound/pci/hda/patch_realtek.c 2023-10-19 10:21:10.552016120 -0600
|
|
@@ -6521,6 +6521,20 @@ static void alc294_gx502_toggle_output(s
|
|
alc_write_coef_idx(codec, 0x10, 0x0a20);
|
|
}
|
|
|
|
+static void alc269_fixup_headphone_volume(struct hda_codec *codec,
|
|
+ const struct hda_fixup *fix, int action)
|
|
+{
|
|
+ /* Pin 0x21: Some devices share 0x14 for headphones and speakers.
|
|
+ * This will fix ensure these devices have volume controls. */
|
|
+ if (!is_jack_detectable(codec, 0x21))
|
|
+ return;
|
|
+
|
|
+ if (action == HDA_FIXUP_ACT_PRE_PROBE) {
|
|
+ static const hda_nid_t conn1[] = { 0x02 };
|
|
+ snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn1), conn1);
|
|
+ }
|
|
+}
|
|
+
|
|
static void alc294_fixup_gx502_hp(struct hda_codec *codec,
|
|
const struct hda_fixup *fix, int action)
|
|
{
|
|
@@ -7013,6 +7027,7 @@ enum {
|
|
ALC269_FIXUP_DELL3_MIC_NO_PRESENCE,
|
|
ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
|
|
ALC269_FIXUP_DELL4_MIC_NO_PRESENCE_QUIET,
|
|
+ ALC269_FIXUP_HEADSET_AYANEO_DEVICES,
|
|
ALC269_FIXUP_HEADSET_MODE,
|
|
ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC,
|
|
ALC269_FIXUP_ASPIRE_HEADSET_MIC,
|
|
@@ -8150,6 +8165,10 @@ static const struct hda_fixup alc269_fix
|
|
.chained = true,
|
|
.chain_id = ALC256_FIXUP_ASUS_HEADSET_MODE
|
|
},
|
|
+ [ALC269_FIXUP_HEADSET_AYANEO_DEVICES] = {
|
|
+ .type = HDA_FIXUP_FUNC,
|
|
+ .v.func = alc269_fixup_headphone_volume,
|
|
+ },
|
|
[ALC256_FIXUP_ASUS_AIO_GPIO2] = {
|
|
.type = HDA_FIXUP_FUNC,
|
|
/* Set up GPIO2 for the speaker amp */
|
|
@@ -9929,6 +9948,8 @@ static const struct snd_pci_quirk alc269
|
|
SND_PCI_QUIRK(0x1d72, 0x1901, "RedmiBook 14", ALC256_FIXUP_ASUS_HEADSET_MIC),
|
|
SND_PCI_QUIRK(0x1d72, 0x1945, "Redmi G", ALC256_FIXUP_ASUS_HEADSET_MIC),
|
|
SND_PCI_QUIRK(0x1d72, 0x1947, "RedmiBook Air", ALC255_FIXUP_XIAOMI_HEADSET_MIC),
|
|
+ SND_PCI_QUIRK(0x1f66, 0x0101, "AYANEO Devices", ALC269_FIXUP_HEADSET_AYANEO_DEVICES),
|
|
+ SND_PCI_QUIRK(0x1f66, 0x0103, "AYANEO Air Plus", ALC269_FIXUP_HEADSET_AYANEO_DEVICES),
|
|
SND_PCI_QUIRK(0x8086, 0x2074, "Intel NUC 8", ALC233_FIXUP_INTEL_NUC8_DMIC),
|
|
SND_PCI_QUIRK(0x8086, 0x2080, "Intel NUC 8 Rugged", ALC256_FIXUP_INTEL_NUC8_RUGGED),
|
|
SND_PCI_QUIRK(0x8086, 0x2081, "Intel NUC 10", ALC256_FIXUP_INTEL_NUC10),
|