]> git.alsa-project.org Git - alsa-plugins.git/commit
jack: Update poll_fd also in draining state
authorTimo Wischer <twischer@de.adit-jv.com>
Tue, 3 Jul 2018 13:59:23 +0000 (15:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Jul 2018 15:04:27 +0000 (17:04 +0200)
commitec40915a1149d43d8a5c185090a82ff8f3a1be54
treede22f08238f2209f7efc04366a5ff8dcebef4bc6
parentcb82afede6692c950baf86b3c4e2fc4b9c4c6698
jack: Update poll_fd also in draining state

... to support snd_pcm_drain for the JACK IO plugin.

With this changes there will be an poll_fd event in DRAINING state even if
the min_avail was not yet reached. Otherwise the application would never
recognize that all samples were processed by JACK.
In addition the JACK real-time thread is also processing when in DRAINING
state and not only when in RUNNING or PREPARE state.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
jack/pcm_jack.c