summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia_codec.c
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2020-10-24 12:51:59 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2020-10-24 12:51:59 +0000
commit427efd069ddfe7dc398ed451cdd3cd5065ef9603 (patch)
tree2768c722d74bc228aa4047a050c86c2c32a16096 /sys/dev/pci/azalia_codec.c
parente313a89427cc5da6b720344096f3592bacc88fa7 (diff)
add entry for realtek alc3204/236;
patch cobbled together with assistance from (and ok) jsg;
Diffstat (limited to 'sys/dev/pci/azalia_codec.c')
-rw-r--r--sys/dev/pci/azalia_codec.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c
index 2c520a9a2c9..7bf47a76a0f 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.179 2020/10/22 18:11:13 robert Exp $ */
+/* $OpenBSD: azalia_codec.c,v 1.180 2020/10/24 12:51:58 jmc Exp $ */
/* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */
/*-
@@ -35,6 +35,8 @@
#include <sys/malloc.h>
#include <sys/systm.h>
#include <dev/pci/azalia.h>
+#include <dev/pci/pcireg.h>
+#include <dev/pci/pcidevs.h>
#define XNAME(co) (((struct device *)co->az)->dv_xname)
#define MIXER_DELTA(n) (AUDIO_MAX_GAIN / (n))
@@ -83,6 +85,12 @@ azalia_codec_init_vtbl(codec_t *this)
this->name = "Realtek ALC221";
this->qrks |= AZ_QRK_WID_CDIN_1C | AZ_QRK_WID_BEEP_1D;
break;
+ case 0x10ec0236:
+ if (PCI_VENDOR(this->subid) == PCI_VENDOR_DELL)
+ this->name = "Realtek ALC3204";
+ else
+ this->name = "Realtek ALC236";
+ break;
case 0x10ec0260:
this->name = "Realtek ALC260";
if (this->subid == 0x008f1025)