summaryrefslogtreecommitdiffstats
path: root/sound/usb/format.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-03-17 20:07:24 +0800
committerTakashi Iwai <tiwai@suse.de>2013-03-18 08:47:04 +0100
commit2fcdb06d4919da89ed6d52742dcc83ae4669ac30 (patch)
tree02cefac4b439af920296a6e9d6a0655ef0bc5dee /sound/usb/format.h
parent59ea586f54f27fde1202214f1525713356a44918 (diff)
downloadlinux-2fcdb06d4919da89ed6d52742dcc83ae4669ac30.tar.bz2
ALSA: snd-usb: handle the bmFormats field as unsigned int
This field may use up to 32 bits, so it should be handled as unsigned int. Signed-off-by: Daniel Mack <zonque@gmail.com> Reported-by: Andreas Koch <andreas@akdesigninc.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/format.h')
-rw-r--r--sound/usb/format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/format.h b/sound/usb/format.h
index 387924f0af85..6f315226f320 100644
--- a/sound/usb/format.h
+++ b/sound/usb/format.h
@@ -2,7 +2,7 @@
#define __USBAUDIO_FORMAT_H
int snd_usb_parse_audio_format(struct snd_usb_audio *chip,
- struct audioformat *fp, int format,
+ struct audioformat *fp, unsigned int format,
struct uac_format_type_i_continuous_descriptor *fmt,
int stream, struct usb_host_interface *iface);