Discussion:
git: sound - Allow /dev/sndstat to be opened multiple times from one process.
Imre Vadasz
2018-10-27 12:11:55 UTC
Permalink
commit b809e1148793bbe33af2adb09af395668a8dae22
Author: Imre Vadász <***@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
Loading...