diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-06-14 20:24:13 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-06-14 20:24:13 +0000 |
commit | 6f7bc7754ed423e884b5b756089b28b199672bab (patch) | |
tree | 7b3ab0405625ed5248e4c2f9a0675283c2d0778d /sys/dev | |
parent | c4bcae414f07fbfcf647eae8a18d4c61984917e3 (diff) |
- If the codec has support for a modem then print that there is no
modem support.
- Print the name of the STAC9220 codec.
From kent NetBSD
ok jason@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/azalia.c | 7 | ||||
-rw-r--r-- | sys/dev/pci/azalia_codec.c | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 2c1901800fb..8f3dad2afda 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.11 2006/06/14 19:34:52 brad Exp $ */ +/* $OpenBSD: azalia.c,v 1.12 2006/06/14 20:24:12 brad Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -989,10 +989,13 @@ azalia_codec_init(codec_t *this) if (COP_FTYPE(result) == COP_FTYPE_AUDIO) { this->audiofunc = n + i; break; /* XXX multiple audio functions? */ + } else if (COP_FTYPE(result) == COP_FTYPE_MODEM) { + printf("%s: codec[%d]: No support for modem function groups\n", + XNAME(this->az), addr); } } if (this->audiofunc < 0) { - printf("%s: codec[%d]: No audio functions\n", + printf("%s: codec[%d]: No audio function groups\n", XNAME(this->az), addr); return -1; } diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c index 4eb51865d0e..0ad32e529ea 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.9 2006/06/14 19:34:52 brad Exp $ */ +/* $OpenBSD: azalia_codec.c,v 1.10 2006/06/14 20:24:12 brad Exp $ */ /* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */ /*- @@ -134,6 +134,9 @@ azalia_codec_init_vtbl(codec_t *this) this->name = "Sigmatel STAC9221D"; this->init_dacgroup = azalia_stac9221_init_dacgroup; break; + case 0x83847690: + this->name = "Sigmatel STAC9220"; + break; } return 0; } |