git: sound: Make device cloning work

Francois Tigeot ftigeot at crater.dragonflybsd.org
Thu Jan 8 03:37:45 PST 2015


commit 5f097292a37194b3b549bad893ecc989e8a789bf
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Jan 5 11:40:32 2015 +0100

    sound: Make device cloning work
    
    * Some lockstatus() calls were wrong and needed to be compared
      with LK_EXCLUSIVE
    
    * The sound device caches dynamically created devices and tries
      to reuse them, but devfs got angry if the clone code passed
      it a device which was already in the filesystem namespace. devfs
      had to be modified in 2c94b9eeb85c6cfa5ff918aa58ce484b27fc7c91
      and eb1c7cbc9e1052820efc6b0b7a94c40a7d45b329
    
    * The clone code was designed to clone to new unit numbers, not
      clone an existing unit into multiple channels

Summary of changes:
 sys/dev/sound/clone.c        |  23 +++----
 sys/dev/sound/clone.h        |   6 +-
 sys/dev/sound/pci/emu10kx.c  |   3 +-
 sys/dev/sound/pci/hda/hdac.c |   2 +-
 sys/dev/sound/pcm/channel.h  |  10 +--
 sys/dev/sound/pcm/dsp.c      | 159 ++++++++++++++++++-------------------------
 sys/dev/sound/pcm/mixer.c    |  14 ++--
 sys/dev/sound/pcm/sound.c    |   9 +--
 sys/dev/sound/pcm/sound.h    |  47 ++++++++-----
 sys/dev/sound/unit.c         |   8 +++
 sys/dev/sound/unit.h         |  18 -----
 11 files changed, 139 insertions(+), 160 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5f097292a37194b3b549bad893ecc989e8a789bf


-- 
DragonFly BSD source repository



More information about the Commits mailing list