diff options
author | cg <cg@FreeBSD.org> | 1999-12-18 22:47:23 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 1999-12-18 22:47:23 +0000 |
commit | c663a6bbe90e1e5d7ad54c1c05d4395ef28991bd (patch) | |
tree | 317e0d48151fa4095d67c8bc3c502bb8eff51790 /sys | |
parent | 2257ad71d87de557022e54835c33fe876b1528ef (diff) | |
download | FreeBSD-src-c663a6bbe90e1e5d7ad54c1c05d4395ef28991bd.zip FreeBSD-src-c663a6bbe90e1e5d7ad54c1c05d4395ef28991bd.tar.gz |
make vibra16x cards announce what they are in /dev/sndstat
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sound/isa/sb.c | 5 | ||||
-rw-r--r-- | sys/dev/sound/isa/sb16.c | 5 | ||||
-rw-r--r-- | sys/dev/sound/isa/sb8.c | 5 |
3 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/sound/isa/sb.c b/sys/dev/sound/isa/sb.c index cec7940..f8c9cc4 100644 --- a/sys/dev/sound/isa/sb.c +++ b/sys/dev/sound/isa/sb.c @@ -1092,8 +1092,9 @@ sbsbc_probe(device_t dev) r = BUS_READ_IVAR(device_get_parent(dev), dev, 1, &ver); f = (ver & 0xffff0000) >> 16; ver &= 0x0000ffff; - snprintf(buf, sizeof buf, "SB DSP %d.%02d%s", ver >> 8, ver & 0xff, - (f & BD_F_ESS)? " (ESS mode)" : ""); + snprintf(buf, sizeof buf, "SB DSP %d.%02d%s%s", ver >> 8, ver & 0xff, + (f & BD_F_ESS)? " (ESS mode)" : "", + (f & BD_F_SB16X)? " (ViBRA16X)" : ""); device_set_desc_copy(dev, buf); return 0; diff --git a/sys/dev/sound/isa/sb16.c b/sys/dev/sound/isa/sb16.c index cec7940..f8c9cc4 100644 --- a/sys/dev/sound/isa/sb16.c +++ b/sys/dev/sound/isa/sb16.c @@ -1092,8 +1092,9 @@ sbsbc_probe(device_t dev) r = BUS_READ_IVAR(device_get_parent(dev), dev, 1, &ver); f = (ver & 0xffff0000) >> 16; ver &= 0x0000ffff; - snprintf(buf, sizeof buf, "SB DSP %d.%02d%s", ver >> 8, ver & 0xff, - (f & BD_F_ESS)? " (ESS mode)" : ""); + snprintf(buf, sizeof buf, "SB DSP %d.%02d%s%s", ver >> 8, ver & 0xff, + (f & BD_F_ESS)? " (ESS mode)" : "", + (f & BD_F_SB16X)? " (ViBRA16X)" : ""); device_set_desc_copy(dev, buf); return 0; diff --git a/sys/dev/sound/isa/sb8.c b/sys/dev/sound/isa/sb8.c index cec7940..f8c9cc4 100644 --- a/sys/dev/sound/isa/sb8.c +++ b/sys/dev/sound/isa/sb8.c @@ -1092,8 +1092,9 @@ sbsbc_probe(device_t dev) r = BUS_READ_IVAR(device_get_parent(dev), dev, 1, &ver); f = (ver & 0xffff0000) >> 16; ver &= 0x0000ffff; - snprintf(buf, sizeof buf, "SB DSP %d.%02d%s", ver >> 8, ver & 0xff, - (f & BD_F_ESS)? " (ESS mode)" : ""); + snprintf(buf, sizeof buf, "SB DSP %d.%02d%s%s", ver >> 8, ver & 0xff, + (f & BD_F_ESS)? " (ESS mode)" : "", + (f & BD_F_SB16X)? " (ViBRA16X)" : ""); device_set_desc_copy(dev, buf); return 0; |