git: sound - Fix default & unit specs for /dev/dsp and /dev/mixer
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Apr 16 09:23:35 PDT 2015
commit 8bd5748c8ef6032e023e81260b324e61e79b4086
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Apr 16 09:20:54 2015 -0700
sound - Fix default & unit specs for /dev/dsp and /dev/mixer
* /dev/dsp{0,1} was overriding the unit number and forcing the currently
set default dsp unit, so it didn't matter if you specified /dev/dsp0 or 1,
it still used hw.snd.default_unit.
* Get rid of the devfs aliasing for /dev/dsp and /dev/mixer. Instead, use
the cloner code to lookup the default dsp and default mixer when /dev/dsp
or /dev/mixer is opened.
This simplifies default handling significantly.
Summary of changes:
sys/dev/sound/pci/hda/hdac.h | 1 +
sys/dev/sound/pcm/dsp.c | 18 +++------
sys/dev/sound/pcm/dsp.h | 2 +
sys/dev/sound/pcm/mixer.c | 50 +++++++++++++++--------
sys/dev/sound/pcm/sound.c | 95 +++++++++++++++-----------------------------
sys/dev/sound/pcm/sound.h | 2 +
6 files changed, 77 insertions(+), 91 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8bd5748c8ef6032e023e81260b324e61e79b4086
--
DragonFly BSD source repository
More information about the Commits
mailing list