mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
pcm: add defaults.pcm.minperiodtime parsing
Some broken applications like Audacious don't set any timing parameters. While the alsa-lib behaviour is to select the smallest period size and biggest buffer size, the result is the generation of thousands interrupts per second. The default value in alsa.conf is 5000usec. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
e6d5dcf1f6
commit
09879a4bb5
4 changed files with 21 additions and 2 deletions
|
|
@ -179,6 +179,7 @@ struct _snd_pcm {
|
|||
snd_pcm_type_t type;
|
||||
snd_pcm_stream_t stream;
|
||||
int mode;
|
||||
long minperiodtime; /* in us */
|
||||
int poll_fd_count;
|
||||
int poll_fd;
|
||||
unsigned short poll_events;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue