diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-08-11 02:15:04 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-08-11 02:16:15 -0400 |
commit | f1e6d3c5cf86675e54a17a89668aa6685d2ef59d (patch) | |
tree | ed9dd2be28440a4a05d1e968b7d5df7ccaeb5c3d /sound | |
parent | 765e8db078e63fdc076fcf6024c15d3b7b955746 (diff) |
ALSA: usb-audio - Fix types taken in min()
Fix the compile warning due to different integer types used in min():
sound/usb/usbaudio.c: In function 'init_substream_urbs':
sound/usb/usbaudio.c:1087: warning: comparison of distinct pointer types lacks a cast
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/usbaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index fa3f7a1dc5e1..5149c5893eaa 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c | |||
@@ -1084,7 +1084,7 @@ static int init_substream_urbs(struct snd_usb_substream *subs, unsigned int peri | |||
1084 | urb_packs = 1; | 1084 | urb_packs = 1; |
1085 | urb_packs *= packs_per_ms; | 1085 | urb_packs *= packs_per_ms; |
1086 | if (subs->syncpipe) | 1086 | if (subs->syncpipe) |
1087 | urb_packs = min(urb_packs, 1 << subs->syncinterval); | 1087 | urb_packs = min(urb_packs, 1U << subs->syncinterval); |
1088 | 1088 | ||
1089 | /* decide how many packets to be used */ | 1089 | /* decide how many packets to be used */ |
1090 | if (is_playback) { | 1090 | if (is_playback) { |