]> git.alsa-project.org Git - alsa-lib.git/commit
plugin: dynamically update avail_min on slave
authorAndreas Pape <apape@de.adit-jv.com>
Mon, 19 Dec 2016 03:37:50 +0000 (12:37 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2017 13:59:46 +0000 (14:59 +0100)
commit88e4ae27bb4e47029ed57cc8e02fb1ddf2157fd9
treeed7781323b06f7a775d27fdc988ad75831997ab7
parent7570e5d77514d8d8af387da04a010fa2ccaf543c
plugin: dynamically update avail_min on slave

mmapped capture access on some plugins can fetch data from
slave in the 'background'. A subsequent snd_pcm_wait waits
for too long time to reach avail_min threshold again.
Waiting too long leads to xruns on other devices waiting for
the capture data.
As a fix the avail_min on slave is recalculated dynamically.

V2: updated patch to fix within 80 characters per line

Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_plugin.c