]> git.alsa-project.org Git - alsa-oss.git/commitdiff
Typo
authorAbramo Bagnara <abramo@alsa-project.org>
Thu, 22 Feb 2001 10:32:05 +0000 (10:32 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Thu, 22 Feb 2001 10:32:05 +0000 (10:32 +0000)
alsa-oss.c

index 305df18de13324062bd17ad1048f749c4177d708..05138d571333a1772dce19e79cb0e9f4f67ac2da 100644 (file)
@@ -653,7 +653,7 @@ static ssize_t oss_dsp_read(int fd, void *buf, size_t n)
        }
        frames = n / str->frame_bytes;
  _again:
-       result = snd_pcm_readi(pcm, buf, n);
+       result = snd_pcm_readi(pcm, buf, frames);
        if (result == -EPIPE && 
            snd_pcm_state(pcm) == SND_PCM_STATE_XRUN &&
            (result = snd_pcm_prepare(pcm)) == 0)