]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added debug code
authorJaroslav Kysela <perex@perex.cz>
Sat, 24 Nov 2001 11:32:42 +0000 (11:32 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sat, 24 Nov 2001 11:32:42 +0000 (11:32 +0000)
src/pcm/pcm_hw.c

index 023b6c1d0687fc7f5aa25b023c7f0b9db6b45f76..522e55a73e63499d2bf5c009702f895a1d1836c6 100644 (file)
@@ -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;