diff options
author | Daniel Mack <zonque@gmail.com> | 2013-03-17 08:07:24 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-03-18 03:47:04 -0400 |
commit | 2fcdb06d4919da89ed6d52742dcc83ae4669ac30 (patch) | |
tree | 02cefac4b439af920296a6e9d6a0655ef0bc5dee /sound/usb/stream.c | |
parent | 59ea586f54f27fde1202214f1525713356a44918 (diff) |
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/stream.c')
-rw-r--r-- | sound/usb/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/stream.c b/sound/usb/stream.c index ad181d538bd9..ad0704656fe5 100644 --- a/sound/usb/stream.c +++ b/sound/usb/stream.c | |||
@@ -463,7 +463,7 @@ int snd_usb_parse_audio_interface(struct snd_usb_audio *chip, int iface_no) | |||
463 | struct usb_host_interface *alts; | 463 | struct usb_host_interface *alts; |
464 | struct usb_interface_descriptor *altsd; | 464 | struct usb_interface_descriptor *altsd; |
465 | int i, altno, err, stream; | 465 | int i, altno, err, stream; |
466 | int format = 0, num_channels = 0; | 466 | unsigned int format = 0, num_channels = 0; |
467 | struct audioformat *fp = NULL; | 467 | struct audioformat *fp = NULL; |
468 | int num, protocol, clock = 0; | 468 | int num, protocol, clock = 0; |
469 | struct uac_format_type_i_continuous_descriptor *fmt; | 469 | struct uac_format_type_i_continuous_descriptor *fmt; |