Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102831259
D43804.id134572.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D43804.id134572.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
@@ -338,6 +338,26 @@
patch_str = "as=3 seq=15 color=Black loc=Left";
break;
}
+ } else if (id == HDA_CODEC_ALC230 &&
+ subid == LENOVO_I330_SUBVENDOR) {
+ switch (nid) {
+ case 20:
+ patch_str = "as=1 seq=0 device=Speaker";
+ break;
+ case 33:
+ patch_str = "as=1 seq=15 device=Headphones";
+ break;
+ }
+ } else if (id == HDA_CODEC_ALC269 &&
+ subid == LENOVO_X230_SUBVENDOR) {
+ switch (nid) {
+ case 21:
+ patch_str = "as=1 seq=15";
+ break;
+ case 24:
+ patch_str = "as=4 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
@@ -377,6 +377,7 @@
#define LENOVO_L5AMD_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x381b)
#define LENOVO_L5INTEL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x380f)
#define LENOVO_3000_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x384e)
+#define LENOVO_I330_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3808)
#define LENOVO_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
/* Samsung */
@@ -537,6 +538,7 @@
#define HDA_CODEC_ALC221 HDA_CODEC_CONSTRUCT(REALTEK, 0x0221)
#define HDA_CODEC_ALC222 HDA_CODEC_CONSTRUCT(REALTEK, 0x0222)
#define HDA_CODEC_ALC225 HDA_CODEC_CONSTRUCT(REALTEK, 0x0225)
+#define HDA_CODEC_ALC230 HDA_CODEC_CONSTRUCT(REALTEK, 0x0230)
#define HDA_CODEC_ALC231 HDA_CODEC_CONSTRUCT(REALTEK, 0x0231)
#define HDA_CODEC_ALC233 HDA_CODEC_CONSTRUCT(REALTEK, 0x0233)
#define HDA_CODEC_ALC234 HDA_CODEC_CONSTRUCT(REALTEK, 0x0234)
diff --git a/sys/dev/sound/pci/hda/hdacc.c b/sys/dev/sound/pci/hda/hdacc.c
--- a/sys/dev/sound/pci/hda/hdacc.c
+++ b/sys/dev/sound/pci/hda/hdacc.c
@@ -79,6 +79,7 @@
{ HDA_CODEC_ALC221, 0, "Realtek ALC221" },
{ HDA_CODEC_ALC222, 0, "Realtek ALC222" },
{ HDA_CODEC_ALC225, 0, "Realtek ALC225" },
+ { HDA_CODEC_ALC230, 0, "Realtek ALC230" },
{ HDA_CODEC_ALC231, 0, "Realtek ALC231" },
{ HDA_CODEC_ALC233, 0, "Realtek ALC233" },
{ HDA_CODEC_ALC234, 0, "Realtek ALC234" },
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 6:04 PM (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14695835
Default Alt Text
D43804.id134572.diff (2 KB)
Attached To
Mode
D43804: snd_hda: Add patches for the Lenovo Ideapad 330-15 and ThinkPad X230
Attached
Detach File
Event Timeline
Log In to Comment