Commit 85f71932e5f22c8f4a28e09b2c27083839aa5bed

Authored by Takashi Iwai
1 parent c5ee4ec828

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/usb/endpoint.c
... ... @@ -771,7 +771,7 @@
771 771  
772 772 ep->datainterval = fmt->datainterval;
773 773 ep->maxpacksize = fmt->maxpacksize;
774   - ep->fill_max = fmt->attributes & UAC_EP_CS_ATTR_FILL_MAX;
  774 + ep->fill_max = !!(fmt->attributes & UAC_EP_CS_ATTR_FILL_MAX);
775 775  
776 776 if (snd_usb_get_speed(ep->chip->dev) == USB_SPEED_FULL)
777 777 ep->freqn = get_usb_full_speed_rate(params_rate(hw_params));