enable beep and CD controls on ALC282
authorjsg <jsg@openbsd.org>
Thu, 2 Jan 2014 03:05:20 +0000 (03:05 +0000)
committerjsg <jsg@openbsd.org>
Thu, 2 Jan 2014 03:05:20 +0000 (03:05 +0000)
from and tested by Mark Rowland

sys/dev/pci/azalia_codec.c

index 1a3b702..21ca157 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: azalia_codec.c,v 1.156 2013/11/09 05:53:20 jsg Exp $  */
+/*     $OpenBSD: azalia_codec.c,v 1.157 2014/01/02 03:05:20 jsg Exp $  */
 /*     $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $    */
 
 /*-
@@ -94,6 +94,10 @@ azalia_codec_init_vtbl(codec_t *this)
        case 0x10ec0272:
                this->name = "Realtek ALC272";
                break;
+       case 0x10ec0282:
+               this->name = "Realtek ALC282";
+               this->qrks |= AZ_QRK_WID_CDIN_1C | AZ_QRK_WID_BEEP_1D;
+               break;
        case 0x10ec0660:
                this->name = "Realtek ALC660";
                if (this->subid == 0x13391043) {        /* ASUS_G2K */