diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2021-04-20 04:31:55 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2021-04-20 04:31:55 +0000 |
commit | 1f5f1af9e3671dd9b8652c190a468e821cd5a071 (patch) | |
tree | 0db42735440c82644df8efdda28bafbf78997ee2 /sys/dev/pci/azalia_codec.c | |
parent | e4906964e7136432fd65a524470ecd72196a5c37 (diff) |
Add quirk to enable all Thinkpad X1 Extreme 1 speakers & atmos dolby
From Ivo Sbalzarini <ivo.sbalzarini@gmail.com>, thanks!
Diffstat (limited to 'sys/dev/pci/azalia_codec.c')
-rw-r--r-- | sys/dev/pci/azalia_codec.c | 10 |
1 files 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"; |