summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-11-26 20:25:57 +0000
committermav <mav@FreeBSD.org>2009-11-26 20:25:57 +0000
commit0c43daaa5ef6559ac521004483befa2717ff525e (patch)
tree85445e7afa492176038d4b97475bb7c175d3fb0f /sys/dev/sound
parent9d7cf052cd6d24448402e219eb3edf32a8516f4b (diff)
downloadFreeBSD-src-0c43daaa5ef6559ac521004483befa2717ff525e.zip
FreeBSD-src-0c43daaa5ef6559ac521004483befa2717ff525e.tar.gz
Add two Cirrus Logic codec IDs.
Add GPIO setting quirk for Apple MacBookPro5,5. Submitted by: ed
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pci/hda/hdac.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c
index c880369..61bc646 100644
--- a/sys/dev/sound/pci/hda/hdac.c
+++ b/sys/dev/sound/pci/hda/hdac.c
@@ -315,6 +315,7 @@ SND_DECLARE_FILE("$FreeBSD$");
* (see HDA_CODEC_STAC9221 below).
*/
#define APPLE_INTEL_MAC 0x76808384
+#define APPLE_MACBOOKPRO55 0xcb7910de
/* LG Electronics */
#define LG_VENDORID 0x1854
@@ -605,6 +606,11 @@ static const struct {
#define HDA_CODEC_CONSTRUCT(vendor, id) \
(((uint32_t)(vendor##_VENDORID) << 16) | ((id) & 0xffff))
+/* Cirrus Logic */
+#define CIRRUSLOGIC_VENDORID 0x1013
+#define HDA_CODEC_CS4206 HDA_CODEC_CONSTRUCT(CIRRUSLOGIC, 0x4206)
+#define HDA_CODEC_CS4207 HDA_CODEC_CONSTRUCT(CIRRUSLOGIC, 0x4207)
+
/* Realtek */
#define REALTEK_VENDORID 0x10ec
#define HDA_CODEC_ALC260 HDA_CODEC_CONSTRUCT(REALTEK, 0x0260)
@@ -804,6 +810,8 @@ static const struct {
uint32_t id;
char *name;
} hdac_codecs[] = {
+ { HDA_CODEC_CS4206, "Cirrus Logic CS4206" },
+ { HDA_CODEC_CS4207, "Cirrus Logic CS4207" },
{ HDA_CODEC_ALC260, "Realtek ALC260" },
{ HDA_CODEC_ALC262, "Realtek ALC262" },
{ HDA_CODEC_ALC267, "Realtek ALC267" },
@@ -4667,6 +4675,8 @@ static const struct {
HDA_QUIRK_GPIO0 | HDA_QUIRK_OVREF50, 0},
{ APPLE_INTEL_MAC, HDA_CODEC_STAC9221,
HDA_QUIRK_GPIO0 | HDA_QUIRK_GPIO1, 0 },
+ { APPLE_MACBOOKPRO55, HDA_CODEC_CS4206,
+ HDA_QUIRK_GPIO1 | HDA_QUIRK_GPIO3, 0 },
{ DELL_D630_SUBVENDOR, HDA_CODEC_STAC9205X,
HDA_QUIRK_GPIO0, 0 },
{ DELL_V1400_SUBVENDOR, HDA_CODEC_STAC9228X,
OpenPOWER on IntegriCloud