From: Eldad Zack Date: Wed, 28 Nov 2012 22:55:32 +0000 (+0100) Subject: ALSA: usb-audio: replace hardcoded value with const X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fde854bdaf603a99a80b9545c0aaca9ccd02dd31;p=openwrt%2Fstaging%2Fblogic.git ALSA: usb-audio: replace hardcoded value with const In this context, 0x01 is USB_ENDPOINT_XFER_ISOC. Signed-off-by: Eldad Zack Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 7c64b9560b18..f488a493a98e 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -384,7 +384,7 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt) /* ... and check descriptor size before accessing bSynchAddress because there is a version of the SB Audigy 2 NX firmware lacking the audio fields in the endpoint descriptors */ - if ((get_endpoint(alts, 1)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != 0x01 || + if ((get_endpoint(alts, 1)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != USB_ENDPOINT_XFER_ISOC || (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && get_endpoint(alts, 1)->bSynchAddress != 0 && !implicit_fb)) {