]> git.alsa-project.org Git - alsa-lib.git/commitdiff
rewind returns error code rather than doing wrong operation
authorJaroslav Kysela <perex@perex.cz>
Wed, 18 Feb 2004 20:15:49 +0000 (20:15 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 18 Feb 2004 20:15:49 +0000 (20:15 +0000)
src/pcm/pcm_dmix.c

index ea810063440085c6eb88693944af0b2aefae920d..04f4ebc026634c417fd764826031855859bd172d 100644 (file)
@@ -626,9 +626,13 @@ static int snd_pcm_dmix_pause(snd_pcm_t *pcm, int enable)
 
 static snd_pcm_sframes_t snd_pcm_dmix_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
 {
+#if 0
        /* FIXME: substract samples from the mix ring buffer, too? */
        snd_pcm_mmap_appl_backward(pcm, frames);
        return frames;
+#else
+       return -EIO;
+#endif
 }
 
 static snd_pcm_sframes_t snd_pcm_dmix_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)