sound - Fix default & unit specs for /dev/dsp and /dev/mixer
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Apr 2015 16:20:54 +0000 (09:20 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Apr 2015 16:20:54 +0000 (09:20 -0700)
commit8bd5748c8ef6032e023e81260b324e61e79b4086
tree8caf9210ca16615a66b06ed68428114488c8ea31
parent32bfb6518ec50ac408ffdca7d636b3c26536a11c
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.
sys/dev/sound/pci/hda/hdac.h
sys/dev/sound/pcm/dsp.c
sys/dev/sound/pcm/dsp.h
sys/dev/sound/pcm/mixer.c
sys/dev/sound/pcm/sound.c
sys/dev/sound/pcm/sound.h