Add quirk to enable all Thinkpad X1 Extreme 1 speakers & atmos dolby
authorratchov <ratchov@openbsd.org>
Tue, 20 Apr 2021 04:31:54 +0000 (04:31 +0000)
committerratchov <ratchov@openbsd.org>
Tue, 20 Apr 2021 04:31:54 +0000 (04:31 +0000)
From Ivo Sbalzarini <ivo.sbalzarini@gmail.com>, thanks!

sys/dev/pci/azalia_codec.c

index d91056f..4a883f0 100644 (file)
@@ -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";