]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: direct: Propagate error code from snd_pcm_direct_client_chk_xrun()
authorTakashi Iwai <tiwai@suse.de>
Thu, 3 Mar 2022 14:04:09 +0000 (15:04 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2022 11:58:51 +0000 (12:58 +0100)
commit29fbe34a0d41d69c10424a4ea914071fb7b452e7
tree077ffaa84d1a307d9a0d889a87ce4d2e0db3e65e
parent5b035bfa4aa8d926eb61949ec1bd392265eab837
pcm: direct: Propagate error code from snd_pcm_direct_client_chk_xrun()

Change the snd_pcm_direct_client_chk_xrun() function to return the
current XRUN state via an error code instead of the state change.
This allows the caller more straightforwardly returning its error, and
also covers the case where XRUN has been set but the function gets
called twice.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_direct.c
src/pcm/pcm_dmix.c
src/pcm/pcm_dshare.c
src/pcm/pcm_dsnoop.c