git: c43bf3f59161 - main - snd_hda(4): Fix sound on headset jack for ThinkPad T51.
Xin LI
delphij at FreeBSD.org
Mon Jul 12 05:50:06 UTC 2021
The branch main has been updated by delphij:
URL: https://cgit.FreeBSD.org/src/commit/?id=c43bf3f59161ac697a1c3a0a3f9326d4d15216c9
commit c43bf3f59161ac697a1c3a0a3f9326d4d15216c9
Author: Xin LI <delphij at FreeBSD.org>
AuthorDate: 2021-07-12 05:43:56 +0000
Commit: Xin LI <delphij at FreeBSD.org>
CommitDate: 2021-07-12 05:46:49 +0000
snd_hda(4): Fix sound on headset jack for ThinkPad T51.
sys/dev/sound/pci/hda/hdaa_patches.c:
match_pin_patches: Use HDA_DEV_MATCH instead of regular ==
sys/dev/sound/pci/hda/pin_patch_realtek.h:
Add quirk for Lenovo laptops when ALC298 is used.
---
sys/dev/sound/pci/hda/hdaa_patches.c | 2 +-
sys/dev/sound/pci/hda/pin_patch_realtek.h | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c
index 69299ee4344f..dc404b9ba98e 100644
--- a/sys/dev/sound/pci/hda/hdaa_patches.c
+++ b/sys/dev/sound/pci/hda/hdaa_patches.c
@@ -157,7 +157,7 @@ match_pin_patches(int vendor_id, int vendor_subid)
continue;
for (struct model_pin_patch_t *pp = p->patches; pp->models; pp++) {
for (struct pin_machine_model_t *model = pp->models; model->id != 0; model++) {
- if (vendor_subid == model->id)
+ if (HDA_DEV_MATCH(model->id, vendor_subid))
return (pp->pin_patches);
}
}
diff --git a/sys/dev/sound/pci/hda/pin_patch_realtek.h b/sys/dev/sound/pci/hda/pin_patch_realtek.h
index ddaeeaef5345..804885659515 100644
--- a/sys/dev/sound/pci/hda/pin_patch_realtek.h
+++ b/sys/dev/sound/pci/hda/pin_patch_realtek.h
@@ -648,6 +648,17 @@ static struct hdaa_model_pin_patch_t realtek_model_pin_patches[] = {
{ }
},
.pin_patches = pin_patches_dell_xps_jack
+ },
+ {
+ .models = (struct pin_machine_model_t[]){
+ PIN_SUBVENDOR(LENOVO_ALL_SUBVENDOR),
+ { }
+ },
+ .pin_patches = (struct pin_patch_t[]){
+ PIN_PATCH_DOCK_LINE_OUT(23),
+ PIN_PATCH_HP_OUT(33),
+ { }
+ },
}, { }
}
}, { /**** CODEC: HDA_CODEC_ALC861 ****/
More information about the dev-commits-src-all
mailing list