aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorEldad Zack <eldad@fogrefinery.com>2012-11-28 17:55:32 -0500
committerTakashi Iwai <tiwai@suse.de>2012-11-29 02:42:33 -0500
commitfde854bdaf603a99a80b9545c0aaca9ccd02dd31 (patch)
treef173eced47cc2a6857d8ecb26cbc6441eb3efbb1 /sound/usb
parent361dab3ec2c59044f420cdf232523cd4af4e833e (diff)
ALSA: usb-audio: replace hardcoded value with const
In this context, 0x01 is USB_ENDPOINT_XFER_ISOC. Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/pcm.c2
1 files changed, 1 insertions, 1 deletions
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)
384 /* ... and check descriptor size before accessing bSynchAddress 384 /* ... and check descriptor size before accessing bSynchAddress
385 because there is a version of the SB Audigy 2 NX firmware lacking 385 because there is a version of the SB Audigy 2 NX firmware lacking
386 the audio fields in the endpoint descriptors */ 386 the audio fields in the endpoint descriptors */
387 if ((get_endpoint(alts, 1)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != 0x01 || 387 if ((get_endpoint(alts, 1)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != USB_ENDPOINT_XFER_ISOC ||
388 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && 388 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
389 get_endpoint(alts, 1)->bSynchAddress != 0 && 389 get_endpoint(alts, 1)->bSynchAddress != 0 &&
390 !implicit_fb)) { 390 !implicit_fb)) {