From 22deb96f20be0dd5e54eae83f1e8bf68051478e6 Mon Sep 17 00:00:00 2001 From: ratchov Date: Tue, 20 Apr 2021 04:31:54 +0000 Subject: [PATCH] Add quirk to enable all Thinkpad X1 Extreme 1 speakers & atmos dolby From Ivo Sbalzarini , thanks! --- sys/dev/pci/azalia_codec.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c index d91056fd622..4a883f0ab9c 100644 --- a/sys/dev/pci/azalia_codec.c +++ b/sys/dev/pci/azalia_codec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia_codec.c,v 1.183 2021/01/16 07:02:39 jsg Exp $ */ +/* $OpenBSD: azalia_codec.c,v 1.184 2021/04/20 04:31:54 ratchov Exp $ */ /* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */ /*- @@ -162,9 +162,15 @@ azalia_codec_init_vtbl(codec_t *this) break; case 0x10ec0285: this->name = "Realtek ALC285"; - if (this->subid == 0x229217aa) /* Thinkpad X1 Carbon 7 */ + if (this->subid == 0x229217aa) { + /* Thinkpad X1 Carbon 7 */ this->qrks |= AZ_QRK_ROUTE_SPKR2_DAC | AZ_QRK_WID_CLOSE_PCBEEP; + } else if (this->subid == 0x22c017aa) { + /* Thinkpad X1 Extreme 3 */ + this->qrks |= AZ_QRK_DOLBY_ATMOS | + AZ_QRK_ROUTE_SPKR2_DAC; + } break; case 0x10ec0287: this->name = "Realtek ALC287"; -- 2.20.1