Commit 85f71932 authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarTakashi Iwai <tiwai@suse.de>
parent c5ee4ec8
...@@ -771,7 +771,7 @@ int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep, ...@@ -771,7 +771,7 @@ int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
ep->datainterval = fmt->datainterval; ep->datainterval = fmt->datainterval;
ep->maxpacksize = fmt->maxpacksize; 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) if (snd_usb_get_speed(ep->chip->dev) == USB_SPEED_FULL)
ep->freqn = get_usb_full_speed_rate(params_rate(hw_params)); ep->freqn = get_usb_full_speed_rate(params_rate(hw_params));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment