Add quirk for Cirrus Logic CS4208 which is needed for MacBookAir6,1.
authorjturner <jturner@openbsd.org>
Sat, 25 Apr 2015 11:37:24 +0000 (11:37 +0000)
committerjturner <jturner@openbsd.org>
Sat, 25 Apr 2015 11:37:24 +0000 (11:37 +0000)
ok deraadt@ jung@ ratchov@

sys/dev/pci/azalia_codec.c

index 5b5db65..ff99122 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: azalia_codec.c,v 1.165 2014/12/10 14:18:11 jsg Exp $  */
+/*     $OpenBSD: azalia_codec.c,v 1.166 2015/04/25 11:37:24 jturner Exp $      */
 /*     $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $    */
 
 /*-
@@ -71,6 +71,13 @@ azalia_codec_init_vtbl(codec_t *this)
                            AZ_QRK_GPIO_UNMUTE_3;
                }
                break;
+       case 0x10134208:
+               this->name = "Cirrus Logic CS4208";
+               if (this->subid == 0x72708086) {        /* APPLE_MBA6_1 */
+                       this->qrks |= AZ_QRK_GPIO_UNMUTE_0 |
+                           AZ_QRK_GPIO_UNMUTE_1;
+               }
+               break;
        case 0x10ec0221:
                this->name = "Realtek ALC221";
                this->qrks |= AZ_QRK_WID_CDIN_1C | AZ_QRK_WID_BEEP_1D;