mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
control, pcm: implement snd_ctl_abort() and snd_pcm_abort() functions
Upon an interrupt, it is necessary to abort the wait loops with the EINTR error code. Introduce snd_*_abort() functions to handle this case. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
730c833dd8
commit
e23fb2c4de
7 changed files with 17 additions and 4 deletions
|
|
@ -1006,3 +1006,5 @@ static inline void sw_set_period_event(snd_pcm_sw_params_t *params, int val)
|
|||
{
|
||||
params->reserved[sizeof(params->reserved) / sizeof(params->reserved[0]) - 1] = val;
|
||||
}
|
||||
|
||||
#define PCMINABORT(pcm) (((pcm)->mode & SND_PCM_ABORT) != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue