sound - Allow /dev/sndstat to be opened multiple times from one process.
authorImre Vadász <imre@vdsz.com>
Fri, 26 Oct 2018 20:14:47 +0000 (22:14 +0200)
committerImre Vadász <imre@vdsz.com>
Sat, 27 Oct 2018 12:11:39 +0000 (14:11 +0200)
commitb809e1148793bbe33af2adb09af395668a8dae22
tree1e861f1645518ec120b6acdde2163c216f767a2e
parent16602da380e9c448842281889527df6057a6ee59
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.
sys/dev/sound/pcm/sndstat.c