]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
pcm_usb_stream: remove unused parameter in snd_pcm_us_read()
authorJaroslav Kysela <perex@perex.cz>
Tue, 23 Oct 2018 06:47:16 +0000 (08:47 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Oct 2018 06:47:16 +0000 (08:47 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
usb_stream/pcm_usb_stream.c

index 5ca1c0f0d04ec37a87fc36998c1e4ea994b9923c..6d08c37e2d2df49bf8fbe3cabae66a2a53539b0f 100644 (file)
@@ -297,7 +297,7 @@ static snd_pcm_sframes_t snd_pcm_us_write(snd_pcm_ioplug_t *io,
        return size;
 }
 
-static int usb_stream_read(struct user_usb_stream *uus, void *to, unsigned bytes)
+static int usb_stream_read(struct user_usb_stream *uus, void *to)
 {
        struct usb_stream *s = uus->s;
        int p = s->inpacket_split, l = 0;
@@ -337,8 +337,7 @@ static snd_pcm_sframes_t snd_pcm_us_read(snd_pcm_ioplug_t *io,
                        return -EINVAL;
                }
                if (us->uus->s->periods_done - us->periods_done == 1) {
-                       red = usb_stream_read(us->uus, to, size * frame_size) /
-                               frame_size;
+                       red = usb_stream_read(us->uus, to) / frame_size;
                        us->periods_done++;
                        return red;
                }