diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-04 23:49:00 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-04 23:49:00 +0000 |
commit | 56f540e9ebf14be5b314d00977c16e37017032f6 (patch) | |
tree | 604f3876f99b18ec308f9c46ed1570e4afafbb2d /sys/dev | |
parent | 7fdb864af77f4df5a2cd92c362d93dd5d2d10f49 (diff) | |
download | FreeBSD-src-56f540e9ebf14be5b314d00977c16e37017032f6.zip FreeBSD-src-56f540e9ebf14be5b314d00977c16e37017032f6.tar.gz |
The 'maxchans' count is one more than the number of channels, so
'chancount' never got up to equaling 'maxchans'. As a result,
pcm_makelinks() was never called, and one always had to set the sysctl to
get the /dev/mixer and other symlinks generated in the DEVFS case. Instead,
change the test in pcm_addchan() to call pcm_makelinks() after the first
channel is initialized, since the aliases are linked to channel 0.
Reviewed by: cg
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 0f9503b..7e110772 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -183,7 +183,7 @@ pcm_addchan(device_t dev, int dir, kobj_class_t cls, void *devinfo) UID_ROOT, GID_WHEEL, 0666, "audio%d.%d", unit, d->chancount); /* XXX SND_DEV_NORESET? */ d->chancount++; - if (d->chancount == d->maxchans) + if (d->chancount == 1) pcm_makelinks(NULL); return 0; } |