diff options
author | cg <cg@FreeBSD.org> | 2001-06-17 23:23:06 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2001-06-17 23:23:06 +0000 |
commit | 420f58376d042d11f15ba9760f51ad286889c0c1 (patch) | |
tree | 1e5bb7b2a2ed49fdd8be254bc876b02d79fd7d92 /sys/dev/sound/pcm/sndstat.c | |
parent | 494b7c747502ef2db69bcbd72ba05d31126ba33f (diff) | |
download | FreeBSD-src-420f58376d042d11f15ba9760f51ad286889c0c1.zip FreeBSD-src-420f58376d042d11f15ba9760f51ad286889c0c1.tar.gz |
revise dsp_clone() to return the first nonbusy channel instead of simply
cycling channel numbers.
remove unused fields from struct snddev_info.
Diffstat (limited to 'sys/dev/sound/pcm/sndstat.c')
-rw-r--r-- | sys/dev/sound/pcm/sndstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c index 030b14b..25c71ed 100644 --- a/sys/dev/sound/pcm/sndstat.c +++ b/sys/dev/sound/pcm/sndstat.c @@ -147,7 +147,7 @@ sndstat_prepare(struct sbuf *s) snd_mtxlock(d->lock); dev = devclass_get_device(pcm_devclass, i); sbuf_printf(s, "pcm%d: <%s> %s", i, device_get_desc(dev), d->status); - if (d->chancount > 0) { + if (!SLIST_EMPTY(&d->channels)) { pc = rc = vc = 0; SLIST_FOREACH(sce, &d->channels, link) { c = sce->channel; |