forked from minoca/os
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add low water threshold ioctl to sound core.
OSS offers an ioctl that dictates how many bytes need to be available before a sound device is signalled. This change implements support for that. To make this easier, as a bit of clean-up, sound buffers now keep track of the number of available bytes, rather than having to calculate them based on the core and controller offsets. This actually ends up making a few other ioctls and the I/O routine simpler. And to make some of the calculations performant, buffer size, fragment size, and fragment count must be a power of 2.
- Loading branch information
Showing
9 changed files
with
299 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.