upstream: [media] em28xx: fix check for audio only usb interfaces when changing the...
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Mon, 13 Jan 2014 22:02:07 +0000 (19:02 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:31 +0000 (11:54 +0900)
commite294e4ae0f25f0d5e935200c68034c0c7ba1adec
tree3b99434ed6de93bcdd0cca1b02a08434fc8c5e5d
parent0223c06a283920923f1fdd11733c02982ebf56a6
upstream: [media] em28xx: fix check for audio only usb interfaces when changing the usb alternate setting

Previously, we've been assuming that the video endpoints are always at usb
interface 0. Hence, if vendor audio endpoints are provided at a separate
interface, they were supposed to be at interface number > 0.
Instead of checking for (interface number > 0) to determine if an interface
is a pure audio interface, dev->is_audio_only should be checked.

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