]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: direct: Move slave PCM state checks into XRUN check helper
authorTakashi Iwai <tiwai@suse.de>
Fri, 4 Mar 2022 09:31:08 +0000 (10:31 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2022 11:58:51 +0000 (12:58 +0100)
commit3577a7a26beb74285af776fbd499b519723a955a
tree636a278d9fd87a9124e7b65eecc3bb5f0aacdf44
parentb3ce9cb8391654b6924868b0393cc33ef653268b
pcm: direct: Move slave PCM state checks into XRUN check helper

The check of slave PCM state is always done before the client's
recoveries count check, so let's merge them to the common helper.
Also rename the helper function to snd_pcm_direct_check_xrun() as it's
checking both slave and client states now.

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