summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorCheah Kok Cheong <thrust73@gmail.com>2015-11-15 05:31:30 +0800
committerTakashi Iwai <tiwai@suse.de>2015-11-16 09:03:06 +0100
commit3c7a09358729e64119669f454fb1ac3c5cd20b63 (patch)
tree0027e9e6362db53ef47adf0f9c3c0f0561b6abf4 /sound
parentf257f1d8482c59d9b0ebfb4191e142d72111d9be (diff)
downloadlinux-stable-3c7a09358729e64119669f454fb1ac3c5cd20b63.tar.gz
linux-stable-3c7a09358729e64119669f454fb1ac3c5cd20b63.tar.bz2
linux-stable-3c7a09358729e64119669f454fb1ac3c5cd20b63.zip
ALSA: ua101: replace le16_to_cpu() with usb_endpoint_maxp()
Commit 939f325f4a0f ("usb: add usb_endpoint_maxp() macro") and commit 29cc88979a88 ("USB: use usb_endpoint_maxp() instead of le16_to_cpu()") introduced a new helper macro. This trivial patch convert remaining users found in ua101 driver. Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com> Acked-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/usb/misc/ua101.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/misc/ua101.c b/sound/usb/misc/ua101.c
index 9581089c28c5..c19a5dd05631 100644
--- a/sound/usb/misc/ua101.c
+++ b/sound/usb/misc/ua101.c
@@ -1037,7 +1037,7 @@ static int detect_usb_format(struct ua101 *ua)
return -ENXIO;
}
ua->capture.usb_pipe = usb_rcvisocpipe(ua->dev, usb_endpoint_num(epd));
- ua->capture.max_packet_bytes = le16_to_cpu(epd->wMaxPacketSize);
+ ua->capture.max_packet_bytes = usb_endpoint_maxp(epd);
epd = &ua->intf[INTF_PLAYBACK]->altsetting[1].endpoint[0].desc;
if (!usb_endpoint_is_isoc_out(epd)) {
@@ -1045,7 +1045,7 @@ static int detect_usb_format(struct ua101 *ua)
return -ENXIO;
}
ua->playback.usb_pipe = usb_sndisocpipe(ua->dev, usb_endpoint_num(epd));
- ua->playback.max_packet_bytes = le16_to_cpu(epd->wMaxPacketSize);
+ ua->playback.max_packet_bytes = usb_endpoint_maxp(epd);
return 0;
}