]> git.alsa-project.org Git - alsa-plugins.git/commit
pcm_a52: Don't pass EAGAIN errors from the slave to the caller
authorAlexander Motzkau <a.motzkau@web.de>
Wed, 18 Mar 2020 21:33:44 +0000 (22:33 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 25 May 2021 16:01:13 +0000 (18:01 +0200)
commita5717e37fda2de350ffd70541a0f309767c344f3
tree1747a478078eeacb49642b3395ea4a0528de5034
parent47b6c3c415fd01c9c0a639e465c4113a8c0fc81a
pcm_a52: Don't pass EAGAIN errors from the slave to the caller

EAGAIN can happen when we already could have passed frames to the slave.
If we then return EAGAIN to our caller it wrongly indicates that no frames
were send. Therefore return the processed frames instead.

BugLink: https://github.com/alsa-project/alsa-plugins/pull/8
Signed-off-by: Alexander Motzkau <a.motzkau@web.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
a52/pcm_a52.c