diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-04-13 12:41:54 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-13 12:41:54 +0200 |
commit | 85f71932e5f22c8f4a28e09b2c27083839aa5bed (patch) | |
tree | ccac135799248f8caa314352f30c83b74c271cf6 /sound/usb | |
parent | c5ee4ec82801d11c67836565539acd3b47100208 (diff) | |
download | linux-85f71932e5f22c8f4a28e09b2c27083839aa5bed.tar.gz linux-85f71932e5f22c8f4a28e09b2c27083839aa5bed.tar.bz2 linux-85f71932e5f22c8f4a28e09b2c27083839aa5bed.zip |
ALSA: usb: Fix fill_max flag set
ep->fill_max is a 1 bit flag, thus it has to be boolean.
sound/usb/endpoint.c: In function 'snd_usb_endpoint_set_params':
sound/usb/endpoint.c:785: warning: overflow in implicit constant conversion
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/endpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 8b695d5562e6..12e5a951a143 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c @@ -771,7 +771,7 @@ int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep, ep->datainterval = fmt->datainterval; ep->maxpacksize = fmt->maxpacksize; - ep->fill_max = fmt->attributes & UAC_EP_CS_ATTR_FILL_MAX; + ep->fill_max = !!(fmt->attributes & UAC_EP_CS_ATTR_FILL_MAX); if (snd_usb_get_speed(ep->chip->dev) == USB_SPEED_FULL) ep->freqn = get_usb_full_speed_rate(params_rate(hw_params)); |