diff options
author | 2020-10-24 12:51:58 +0000 | |
---|---|---|
committer | 2020-10-24 12:51:58 +0000 | |
commit | 22eb3e9262f1cb05d49e1942e5840f935d68be13 (patch) | |
tree | 7be5e009ec2b01f71fc51b56b8b1937a8ea72293 | |
parent | some fixes from varik valefor; (diff) | |
download | wireguard-openbsd-22eb3e9262f1cb05d49e1942e5840f935d68be13.tar.xz wireguard-openbsd-22eb3e9262f1cb05d49e1942e5840f935d68be13.zip |
add entry for realtek alc3204/236;
patch cobbled together with assistance from (and ok) jsg;
-rw-r--r-- | sys/dev/pci/azalia_codec.c | 10 |
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) |