aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2022-10-20 14:19:24 +0000
committerAlexander Motin <mav@FreeBSD.org>2022-10-27 02:48:56 +0000
commit7e53019b06d5fd66b6db9fe2edd0bbbdb5eec2a8 (patch)
tree1af0ad28c88044a3302a7e6b336096d1cdc45948 /sys/dev/sound
parent889dcb5e9b2ff4160c313b31cfa53106af2a5b0c (diff)
downloadsrc-7e53019b06d5fd66b6db9fe2edd0bbbdb5eec2a8.tar.gz
src-7e53019b06d5fd66b6db9fe2edd0bbbdb5eec2a8.zip
Add random VMware device IDs.
Just to make dmesg look nicer there. MFC after: 1 week (cherry picked from commit 2a31a06bf1bb2d328d6672ed91c3e54734684cc0)
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pci/hda/hdac.c2
-rw-r--r--sys/dev/sound/pci/hda/hdac.h9
-rw-r--r--sys/dev/sound/pci/hda/hdacc.c2
3 files changed, 13 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c
index 4359e4c9bfc7..9aa0e4bffdc8 100644
--- a/sys/dev/sound/pci/hda/hdac.c
+++ b/sys/dev/sound/pci/hda/hdac.c
@@ -200,6 +200,7 @@ static const struct {
{ HDA_AMD_HUDSON2, "AMD Hudson-2", 0, 0 },
{ HDA_RDC_M3010, "RDC M3010", 0, 0 },
{ HDA_VIA_VT82XX, "VIA VT8251/8237A",0, 0 },
+ { HDA_VMWARE, "VMware", 0, 0 },
{ HDA_SIS_966, "SiS 966/968", 0, 0 },
{ HDA_ULI_M5461, "ULI M5461", 0, 0 },
/* Unknown */
@@ -209,6 +210,7 @@ static const struct {
{ HDA_AMD_ALL, "AMD", 0, 0 },
{ HDA_CREATIVE_ALL, "Creative", 0, 0 },
{ HDA_VIA_ALL, "VIA", 0, 0 },
+ { HDA_VMWARE_ALL, "VMware", 0, 0 },
{ HDA_SIS_ALL, "SiS", 0, 0 },
{ HDA_ULI_ALL, "ULI", 0, 0 },
};
diff --git a/sys/dev/sound/pci/hda/hdac.h b/sys/dev/sound/pci/hda/hdac.h
index c4aab1fc12cc..5261bf9c7543 100644
--- a/sys/dev/sound/pci/hda/hdac.h
+++ b/sys/dev/sound/pci/hda/hdac.h
@@ -201,6 +201,11 @@
#define HDA_VIA_VT82XX HDA_MODEL_CONSTRUCT(VIA, 0x3288)
#define HDA_VIA_ALL HDA_MODEL_CONSTRUCT(VIA, 0xffff)
+/* VMware */
+#define VMWARE_VENDORID 0x15ad
+#define HDA_VMWARE HDA_MODEL_CONSTRUCT(VMWARE, 0x1977)
+#define HDA_VMWARE_ALL HDA_MODEL_CONSTRUCT(VMWARE, 0xffff)
+
/* SiS */
#define SIS_VENDORID 0x1039
#define HDA_SIS_966 HDA_MODEL_CONSTRUCT(SIS, 0x7502)
@@ -839,6 +844,10 @@
#define HDA_CODEC_VT2020 HDA_CODEC_CONSTRUCT(VIA, 0x0441)
#define HDA_CODEC_VTXXXX HDA_CODEC_CONSTRUCT(VIA, 0xffff)
+/* VMware */
+#define HDA_CODEC_VMWARE HDA_CODEC_CONSTRUCT(VMWARE, 0x1975)
+#define HDA_CODEC_VMWAREXXXX HDA_CODEC_CONSTRUCT(VMWARE, 0xffff)
+
/* ATI */
#define HDA_CODEC_ATIRS600_1 HDA_CODEC_CONSTRUCT(ATI, 0x793c)
#define HDA_CODEC_ATIRS600_2 HDA_CODEC_CONSTRUCT(ATI, 0x7919)
diff --git a/sys/dev/sound/pci/hda/hdacc.c b/sys/dev/sound/pci/hda/hdacc.c
index ef29cd6d6e27..046dfdc208e6 100644
--- a/sys/dev/sound/pci/hda/hdacc.c
+++ b/sys/dev/sound/pci/hda/hdacc.c
@@ -397,6 +397,7 @@ static const struct {
{ HDA_CODEC_INTELALLK, 0, "Intel Alder Lake" },
{ HDA_CODEC_SII1390, 0, "Silicon Image SiI1390" },
{ HDA_CODEC_SII1392, 0, "Silicon Image SiI1392" },
+ { HDA_CODEC_VMWARE, 0, "VMware" },
/* Unknown CODECs */
{ HDA_CODEC_ADXXXX, 0, "Analog Devices" },
{ HDA_CODEC_AGEREXXXX, 0, "Lucent/Agere Systems" },
@@ -414,6 +415,7 @@ static const struct {
{ HDA_CODEC_NVIDIAXXXX, 0, "NVIDIA" },
{ HDA_CODEC_SIIXXXX, 0, "Silicon Image" },
{ HDA_CODEC_STACXXXX, 0, "Sigmatel" },
+ { HDA_CODEC_VMWAREXXXX, 0, "VMware" },
{ HDA_CODEC_VTXXXX, 0, "VIA" },
};