summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-09-30 11:05:12 +0000
committermav <mav@FreeBSD.org>2009-09-30 11:05:12 +0000
commit36fe7b55be4dfb78a5c90f2a03a941865f0ec04c (patch)
treee3dcb4e86b61779030f3a0fb657741d5f02d6e04 /sys/dev
parent47ee86367a135e2353bf006d42eff7174aaa6f8c (diff)
downloadFreeBSD-src-36fe7b55be4dfb78a5c90f2a03a941865f0ec04c.zip
FreeBSD-src-36fe7b55be4dfb78a5c90f2a03a941865f0ec04c.tar.gz
Fix typo in previous commit.
Add Realtek ALC887 codec ID.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sound/pci/hda/hdac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c
index 6b95f98..21cb0a1 100644
--- a/sys/dev/sound/pci/hda/hdac.c
+++ b/sys/dev/sound/pci/hda/hdac.c
@@ -622,6 +622,7 @@ static const struct {
#define HDA_CODEC_ALC882 HDA_CODEC_CONSTRUCT(REALTEK, 0x0882)
#define HDA_CODEC_ALC883 HDA_CODEC_CONSTRUCT(REALTEK, 0x0883)
#define HDA_CODEC_ALC885 HDA_CODEC_CONSTRUCT(REALTEK, 0x0885)
+#define HDA_CODEC_ALC887 HDA_CODEC_CONSTRUCT(REALTEK, 0x0887)
#define HDA_CODEC_ALC888 HDA_CODEC_CONSTRUCT(REALTEK, 0x0888)
#define HDA_CODEC_ALC889 HDA_CODEC_CONSTRUCT(REALTEK, 0x0889)
#define HDA_CODEC_ALCXXXX HDA_CODEC_CONSTRUCT(REALTEK, 0xffff)
@@ -807,6 +808,7 @@ static const struct {
{ HDA_CODEC_ALC882, "Realtek ALC882" },
{ HDA_CODEC_ALC883, "Realtek ALC883" },
{ HDA_CODEC_ALC885, "Realtek ALC885" },
+ { HDA_CODEC_ALC887, "Realtek ALC887" },
{ HDA_CODEC_ALC888, "Realtek ALC888" },
{ HDA_CODEC_ALC889, "Realtek ALC889" },
{ HDA_CODEC_AD1882, "Analog Devices AD1882" },
@@ -6568,7 +6570,7 @@ hdac_create_pcms(struct hdac_devinfo *devinfo)
continue;
for (j = 0; j < devinfo->function.audio.num_devs; j++) {
if (devinfo->function.audio.devs[j].digital != 255 &&
- (!devinfo->function.audio.devs[j].digital) ==
+ (!devinfo->function.audio.devs[j].digital) !=
(!as[i].digital))
continue;
if (as[i].dir == HDA_CTL_IN) {
OpenPOWER on IntegriCloud