From: Jaroslav Kysela Date: Sat, 24 Nov 2001 11:32:42 +0000 (+0000) Subject: Added debug code X-Git-Tag: v1.0.3~578 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f830a7733442b3320999aaf47dc54870506e61d2;p=alsa-lib.git Added debug code --- diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index 023b6c1d..522e55a7 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -253,6 +253,10 @@ static int snd_pcm_hw_start(snd_pcm_t *pcm) #endif if (ioctl(fd, SNDRV_PCM_IOCTL_START) < 0) { 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 0;