diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/tinyalsa/asoundlib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index 3c86c84..741c466 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h @@ -84,6 +84,7 @@ struct pcm_config { unsigned int start_threshold; unsigned int stop_threshold; unsigned int silence_threshold; + int avail_min; }; /* Mixer control types */ @@ -150,6 +151,10 @@ int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames); int pcm_start(struct pcm *pcm); int pcm_stop(struct pcm *pcm); +/* Change avail_min after the stream has been opened with no need to stop the stream. + * Only accepted if opened with PCM_MMAP and PCM_NOIRQ flags + */ +int pcm_set_avail_min(struct pcm *pcm, int avail_min); /* * MIXER API |