diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-14 12:34:13 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-14 16:26:07 -0500 |
commit | bf6e8aaa32081ff3f639334ca6b3ca0eaec5adc0 (patch) | |
tree | 418ad803c12779b0fb1a75d51f7874b3f27e56ce /drivers/media/usb/em28xx/em28xx-audio.c | |
parent | 0191a2a28cdc34a57fee2c027c101a023f9a61f9 (diff) |
[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/usb/em28xx/em28xx-audio.c')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-audio.c | 6 |
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) | |||
163 | urb->status = 0; | 163 | urb->status = 0; |
164 | 164 | ||
165 | status = usb_submit_urb(urb, GFP_ATOMIC); | 165 | status = usb_submit_urb(urb, GFP_ATOMIC); |
166 | if (status < 0) { | 166 | if (status < 0) |
167 | em28xx_errdev("resubmit of audio urb failed (error=%i)\n", | 167 | em28xx_errdev("resubmit of audio urb failed (error=%i)\n", |
168 | status); | 168 | status); |
169 | } | ||
170 | return; | 169 | return; |
171 | } | 170 | } |
172 | 171 | ||
@@ -183,7 +182,8 @@ static int em28xx_init_audio_isoc(struct em28xx *dev) | |||
183 | 182 | ||
184 | errCode = usb_submit_urb(dev->adev.urb[i], GFP_ATOMIC); | 183 | errCode = usb_submit_urb(dev->adev.urb[i], GFP_ATOMIC); |
185 | if (errCode) { | 184 | if (errCode) { |
186 | em28xx_errdev("submit of audio urb failed\n"); | 185 | em28xx_errdev("submit of audio urb failed (error=%i)\n", |
186 | errCode); | ||
187 | em28xx_deinit_isoc_audio(dev); | 187 | em28xx_deinit_isoc_audio(dev); |
188 | atomic_set(&dev->stream_started, 0); | 188 | atomic_set(&dev->stream_started, 0); |
189 | return errCode; | 189 | return errCode; |