diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-06-19 17:15:35 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-28 00:53:04 +0400 |
commit | debb7241498001a0da10ee01b72f9ec1f9b1edc8 (patch) | |
tree | 0ebc6755b8ff1625972f7361552f9580b5eeb486 /drivers/media/video/em28xx | |
parent | 66cb6957d338383157d4fdafef7c85e488e9e535 (diff) | |
download | linux-debb7241498001a0da10ee01b72f9ec1f9b1edc8.tar.xz |
[media] em28xx-audio: Properly report failures to start stream
If the audio stream fails for any reason, it should:
1) Report an error via dmesg;
2) Mark internally that the stream didn't started.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-audio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-audio.c b/drivers/media/video/em28xx/em28xx-audio.c index 56739a462169..5381f6d7427d 100644 --- a/drivers/media/video/em28xx/em28xx-audio.c +++ b/drivers/media/video/em28xx/em28xx-audio.c @@ -213,9 +213,12 @@ static int em28xx_init_audio_isoc(struct em28xx *dev) for (i = 0; i < EM28XX_AUDIO_BUFS; i++) { errCode = usb_submit_urb(dev->adev.urb[i], GFP_ATOMIC); if (errCode) { + em28xx_errdev("submit of audio urb failed\n"); em28xx_deinit_isoc_audio(dev); + atomic_set(&dev->stream_started, 0); return errCode; } + } return 0; |