Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103535453
D30333.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30333.diff
View Options
diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c
--- a/sys/dev/sound/pci/hda/hdaa_patches.c
+++ b/sys/dev/sound/pci/hda/hdaa_patches.c
@@ -312,6 +312,16 @@
patch_str = "as=1 seq=15";
break;
}
+ } else if (id == HDA_CODEC_ALC257 &&
+ (subid == LENOVO_L5AMD_SUBVENDOR)) {
+ switch (nid) {
+ case 20:
+ patch_str = "as=1 seq=0";
+ break;
+ case 33:
+ patch_str = "as=1 seq=15";
+ break;
+ }
} else {
/*
* loop over hdaa_model_pin_patch
diff --git a/sys/dev/sound/pci/hda/hdac.h b/sys/dev/sound/pci/hda/hdac.h
--- a/sys/dev/sound/pci/hda/hdac.h
+++ b/sys/dev/sound/pci/hda/hdac.h
@@ -360,6 +360,7 @@
#define LENOVO_X230T_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2203)
#define LENOVO_T431S_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2208)
#define LENOVO_G580_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3977)
+#define LENOVO_L5AMD_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x381b)
#define LENOVO_3000_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x384e)
#define LENOVO_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 5:28 AM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14879182
Default Alt Text
D30333.diff (1 KB)
Attached To
Mode
D30333: sound: add patch for Lenovo Legion 5 AMD.
Attached
Detach File
Event Timeline
Log In to Comment