From: Jaroslav Kysela Date: Tue, 23 Oct 2018 06:47:16 +0000 (+0200) Subject: pcm_usb_stream: remove unused parameter in snd_pcm_us_read() X-Git-Tag: v1.1.8~21 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=9ff42e4baf03a84eca83b8c25e0165572259d253;p=alsa-plugins.git pcm_usb_stream: remove unused parameter in snd_pcm_us_read() Signed-off-by: Jaroslav Kysela --- diff --git a/usb_stream/pcm_usb_stream.c b/usb_stream/pcm_usb_stream.c index 5ca1c0f..6d08c37 100644 --- a/usb_stream/pcm_usb_stream.c +++ b/usb_stream/pcm_usb_stream.c @@ -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; }