summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-09-15 17:27:13 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-09-15 17:27:13 +0000
commit8acea3fe74803c95950ccde69af6f096b159ab63 (patch)
tree11a879de6a10bee97eb71d66228a149490a84a9f /sys
parent0af4527d0c179ab8228c959129941de8b99024a3 (diff)
fix unknown codec id printout
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ac97.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/ac97.c b/sys/dev/ic/ac97.c
index a26268af647..399824987ea 100644
--- a/sys/dev/ic/ac97.c
+++ b/sys/dev/ic/ac97.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ac97.c,v 1.21 2001/06/20 18:08:53 deraadt Exp $ */
+/* $OpenBSD: ac97.c,v 1.22 2001/09/15 17:27:12 mickey Exp $ */
/*
* Copyright (c) 1999, 2000 Constantine Sapuntzakis
@@ -321,7 +321,6 @@ const struct ac97_codecid {
{ 0x30, 0xf8, 7, 0, "CS4299" },
}, ac97_ns[] = {
{ 0x31, 0xff, 0, 0, "LM4549" },
- { 0x00, 0x00 }
}, ac97_sl[] = {
{ 0x22, 0xff, 0, 0, "Si3036" },
{ 0x23, 0xff, 0, 0, "Si3038" },
@@ -362,6 +361,7 @@ const struct ac97_vendorid {
{ 0x574d4c00, "Wolfson", cl(ac97_wo) },
{ 0x83847600, "SigmaTel", cl(ac97_st) },
};
+#undef cl
const char * const ac97enhancement[] = {
"No 3D Stereo",
@@ -648,7 +648,7 @@ ac97_attach(host_if)
if (codec->mask)
printf(" %s", codec->name);
else
- printf(" <%2x>", id & codec->mask);
+ printf(" <%02x>", id & 0xff);
if (codec->rev)
printf(" rev %d", id & codec->rev);
printf(")");