git: sound - Allow /dev/sndstat to be opened multiple times from one process.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sat Oct 27 05:11:55 PDT 2018


commit b809e1148793bbe33af2adb09af395668a8dae22
Author: Imre Vadász <imre at vdsz.com>
Date:   Fri Oct 26 22:14:47 2018 +0200

    sound - Allow /dev/sndstat to be opened multiple times from one process.
    
    * This still isn't great, but at least it's enough to make pulseaudio's
      oss module detect the audio devices correctly.
    
    * This now uses the buf->uio_offset, instead of trying to track the read
      position ourselves in the driver with sndstat_bufptr.

Summary of changes:
 sys/dev/sound/pcm/sndstat.c | 36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b809e1148793bbe33af2adb09af395668a8dae22


-- 
DragonFly BSD source repository


More information about the Commits mailing list