From: Frank Schaefer Date: Mon, 13 Jan 2014 22:02:06 +0000 (-0300) Subject: [media] em28xx: fix usb alternate setting for analog and digital video endpoints > 0 X-Git-Tag: v3.14-rc1~20^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=961717b41bc1103dcd30d293fd689a614fbfa90c;p=pandora-kernel.git [media] em28xx: fix usb alternate setting for analog and digital video endpoints > 0 The current code assumes that the analog + digital video endpoints are always at interface number 0 when changing the alternate setting. This seems to work fine for most existing devices. However, at least the SpeedLink VAD Laplace webcam has the video endpoint on interface number 3 (which fortunately doesn't cause any trouble because ist uses bulk transfers only). We already consider the actual interface number for audio endpoints, so rename the the audio_ifnum variable and use it for all device types. Also get get rid of a pointless (ifnum < 0) in em28xx-audio. Signed-off-by: Frank Schäfer Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed