mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Added debug code
This commit is contained in:
parent
86db3b4e30
commit
f830a77334
1 changed files with 4 additions and 0 deletions
|
|
@ -253,6 +253,10 @@ static int snd_pcm_hw_start(snd_pcm_t *pcm)
|
||||||
#endif
|
#endif
|
||||||
if (ioctl(fd, SNDRV_PCM_IOCTL_START) < 0) {
|
if (ioctl(fd, SNDRV_PCM_IOCTL_START) < 0) {
|
||||||
SYSERR("SNDRV_PCM_IOCTL_START failed");
|
SYSERR("SNDRV_PCM_IOCTL_START failed");
|
||||||
|
#if 0
|
||||||
|
if (errno == EBADFD)
|
||||||
|
SNDERR("PCM state = %s", snd_pcm_state_name(snd_pcm_hw_state(pcm)));
|
||||||
|
#endif
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue