[media] em28xx-audio: fix return code on device disconnect
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 12 Jan 2014 15:57:08 +0000 (12:57 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 14 Jan 2014 16:34:23 +0000 (14:34 -0200)
commit229295f1d6713bc8c8ba900ba62bca03e34bba52
tree6103e6cc81c1d015f946a6fbda6844435597ace2
parente847022a8e1d732da96ddbd8d4170500f4c3f8b1
[media] em28xx-audio: fix return code on device disconnect

Alsa has an special non-negative return code to indicate device removal
at snd_em28xx_capture_pointer(). Use it, instead of an error code.

Reviewed-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Tested-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-audio.c