Skip to content

Commit

Permalink
Kernel 6.9.9, fix Air 1S audio - thanks in part to @linh1987!
Browse files Browse the repository at this point in the history
  • Loading branch information
fewtarius committed Jul 11, 2024
1 parent 4ffda5a commit 16b7859
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
50 changes: 50 additions & 0 deletions PKGBUILD/linux/0008-ayaneo-1s-hp-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
diff -rupN linux-6.9.8.orig/sound/pci/hda/patch_realtek.c linux-6.9.8/sound/pci/hda/patch_realtek.c
--- linux-6.9.8.orig/sound/pci/hda/patch_realtek.c 2024-07-11 16:08:31.886810579 +0000
+++ linux-6.9.8/sound/pci/hda/patch_realtek.c 2024-07-11 16:57:05.164157459 +0000
@@ -7300,6 +7301,7 @@ enum {
ALC269VB_FIXUP_ASUS_ZENBOOK,
ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A,
ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE,
+ ALC269VB_FIXUP_AYANEO_SPKR_PIN_FIX,
ALC269_FIXUP_LIMIT_INT_MIC_BOOST_MUTE_LED,
ALC269VB_FIXUP_ORDISSIMO_EVE2,
ALC283_FIXUP_CHROME_BOOK,
@@ -8012,6 +8014,22 @@ static const struct hda_fixup alc269_fix
.chained = true,
.chain_id = ALC269_FIXUP_HEADSET_MIC
},
+ [ALC269VB_FIXUP_AYANEO_SPKR_PIN_FIX] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x12, 0x90a60130 },
+ { 0x14, 0x90170110 },
+ { 0x17, 0x40000000 },
+ { 0x18, 0x03a19020 },
+ { 0x19, 0x411111f0 },
+ { 0x1a, 0x90170150 },
+ { 0x1b, 0x411111f0 },
+ { 0x1d, 0x40e69945 },
+ { 0x1e, 0x411111f0 },
+ { 0x21, 0x90170150 },
+ { }
+ },
+ },
[ALC269_FIXUP_LIMIT_INT_MIC_BOOST_MUTE_LED] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc269_fixup_limit_int_mic_boost,
@@ -10622,6 +10640,7 @@ static const struct snd_pci_quirk alc269
SND_PCI_QUIRK(0x2782, 0x1707, "Vaio VJFE-ADL", ALC298_FIXUP_SPK_VOLUME),
SND_PCI_QUIRK(0x1f66, 0x0101, "AYANEO 2", ALC269_FIXUP_HEADSET_AYA_2),
SND_PCI_QUIRK(0x1f66, 0x0101, "GEEK", ALC269_FIXUP_HEADSET_AYA_GEEK),
+ SND_PCI_QUIRK(0x1f66, 0x0103, "AYANEO AIR 1S", ALC269VB_FIXUP_AYANEO_SPKR_PIN_FIX),
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),
@@ -10743,6 +10762,7 @@ static const struct hda_model_fixup alc2
{.id = ALC269VB_FIXUP_ASUS_ZENBOOK, .name = "asus-zenbook"},
{.id = ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A, .name = "asus-zenbook-ux31a"},
{.id = ALC269VB_FIXUP_ORDISSIMO_EVE2, .name = "ordissimo"},
+ {.id = ALC269VB_FIXUP_AYANEO_SPKR_PIN_FIX, .name = "ayaneo-speaker-pin-fix"},
{.id = ALC282_FIXUP_ASUS_TX300, .name = "asus-tx300"},
{.id = ALC283_FIXUP_INT_MIC, .name = "alc283-int-mic"},
{.id = ALC290_FIXUP_MONO_SPEAKERS_HSJACK, .name = "mono-speakers"},
6 changes: 4 additions & 2 deletions PKGBUILD/linux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Mikael Eriksson <[email protected]>

pkgbase=linux
pkgver=6.9.8
pkgrel=7
pkgver=6.9.9
pkgrel=1
pkgdesc="Linux Stable"
arch=(x86_64)
url="https://kernel.org/"
Expand Down Expand Up @@ -40,6 +40,7 @@ source=(
0001-drm-panel-orientation-quirks.patch
0006-Ayaneo-geek-headset-patch.patch
0007-ayaneo-2-headphone-fix.patch
0008-ayaneo-1s-hp-fix.patch
0012-HACK-add-KConfig-to-enable-driver-specific-color-mgm.patch
0013-Don-t-create-color_mgmt_properties-on-asics-SIENNA_C.patch
0020-add-devices-to-oxp-sensors.patch
Expand All @@ -62,6 +63,7 @@ sha256sums=('SKIP'
'01cde5f8257a638085ebccaf98f112c0360e11697b09782030b97b235cd8c033' # 0001-drm-panel-orientation-quirks.patch
'783da391e0f45635eefb583b8b3acc29cd62a0c9eeefedf7f790dc2f89c7e279' # 0006-Ayaneo-geek-headset-patch.patch
'33edff1a51ceb763c47b3ae485f5857a716a1dac9f1e8b65c3b93c6e88a4838f' # 0007-ayaneo-2-headphone-fix.patch
'01a5d3e5b3153e0f8a8398e87fceadc3f4fe6182721acb1debf1844b3110669f' # 0008-ayaneo-1s-hp-fix.patch
'f3a54e5bde55f8481cb4e9e3c8fce7a28ae7a7e42208c5f76bdcc6d8dcf6fc08' # 0012-HACK-add-KConfig-to-enable-driver-specific-color-mgm.patch
'683128d044f4df12dcb0a7b2858075f510d870460dc71f0d60f69df89cf62419' # 0013-Don-t-create-color_mgmt_properties-on-asics-SIENNA_C.patch
'b42fa6bb0e3d93aa8a81f61543c2058fa6f8412b9ad190110ffb49c46e81d5ce' # 0020-add-devices-to-oxp-sensors.patch
Expand Down

0 comments on commit 16b7859

Please sign in to comment.