]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
pcm_usb_stream: fix signess issues
authorJaroslav Kysela <perex@perex.cz>
Tue, 23 Oct 2018 06:49:23 +0000 (08:49 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Oct 2018 06:49:23 +0000 (08:49 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
usb_stream/pcm_usb_stream.c
usb_stream/usb_stream.h

index 6d08c37e2d2df49bf8fbe3cabae66a2a53539b0f..3f74abad54714501fafe474e392ba5b873e492af 100644 (file)
@@ -300,9 +300,9 @@ static snd_pcm_sframes_t snd_pcm_us_write(snd_pcm_ioplug_t *io,
 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;
+       unsigned p = s->inpacket_split, l = 0;
        void *i = (void *)s + s->inpacket[p].offset + s->inpacket_split_at;
-       int il = s->inpacket[p].length - s->inpacket_split_at;
+       unsigned il = s->inpacket[p].length - s->inpacket_split_at;
 
        do {
                if (l + il > s->period_size)
index 4dd74ab1e9cce87093631ff64a6c52d44dfed134..96f8d9e94463529b6a3475a487b205acbaed8141 100644 (file)
@@ -39,7 +39,7 @@ struct usb_stream {
        unsigned read_size;
        unsigned write_size;
 
-       int period_size;
+       unsigned period_size;
 
        unsigned state;