summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-14 14:34:13 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-14 19:26:07 -0200
commitbf6e8aaa32081ff3f639334ca6b3ca0eaec5adc0 (patch)
tree418ad803c12779b0fb1a75d51f7874b3f27e56ce /drivers/media
parent0191a2a28cdc34a57fee2c027c101a023f9a61f9 (diff)
downloadlinux-bf6e8aaa32081ff3f639334ca6b3ca0eaec5adc0.tar.gz
linux-bf6e8aaa32081ff3f639334ca6b3ca0eaec5adc0.tar.bz2
linux-bf6e8aaa32081ff3f639334ca6b3ca0eaec5adc0.zip
[media] em28xx-audio: provide an error code when URB submit fails
Instead of just saying: [ 1646.412419] em2882/3 #0: submit of audio urb failed Print the reason why it failed, to help debugging and fixing it. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/usb/em28xx/em28xx-audio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-audio.c b/drivers/media/usb/em28xx/em28xx-audio.c
index 332abf7b32f8..e57616ecd2cb 100644
--- a/drivers/media/usb/em28xx/em28xx-audio.c
+++ b/drivers/media/usb/em28xx/em28xx-audio.c
@@ -163,10 +163,9 @@ static void em28xx_audio_isocirq(struct urb *urb)
urb->status = 0;
status = usb_submit_urb(urb, GFP_ATOMIC);
- if (status < 0) {
+ if (status < 0)
em28xx_errdev("resubmit of audio urb failed (error=%i)\n",
status);
- }
return;
}
@@ -183,7 +182,8 @@ static int em28xx_init_audio_isoc(struct em28xx *dev)
errCode = usb_submit_urb(dev->adev.urb[i], GFP_ATOMIC);
if (errCode) {
- em28xx_errdev("submit of audio urb failed\n");
+ em28xx_errdev("submit of audio urb failed (error=%i)\n",
+ errCode);
em28xx_deinit_isoc_audio(dev);
atomic_set(&dev->stream_started, 0);
return errCode;