mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-20 01:40:08 -05:00
log xrun trigger
This commit is contained in:
parent
1c7e46d5d8
commit
b2101352b6
2 changed files with 19 additions and 0 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#include <sys/un.h>
|
||||
#include <sys/mman.h>
|
||||
#include "pcm_direct.h"
|
||||
#include "error.h"
|
||||
|
||||
#ifndef PIC
|
||||
/* entry for static linking */
|
||||
|
|
@ -422,6 +423,7 @@ static int snd_pcm_dmix_sync_ptr0(snd_pcm_t *pcm, snd_pcm_uframes_t slave_hw_ptr
|
|||
gettimestamp(&dmix->trigger_tstamp, pcm->tstamp_type);
|
||||
if (dmix->state == SND_PCM_STATE_RUNNING) {
|
||||
dmix->state = SND_PCM_STATE_XRUN;
|
||||
alsaLib_log_write("Xrun avail size =%lu stop_threshold=%lu",avail,pcm->stop_threshold);
|
||||
return -EPIPE;
|
||||
}
|
||||
dmix->state = SND_PCM_STATE_SETUP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue