[media] pwc: Avoid sending mode info to the camera when it is not needed
authorHans de Goede <hdegoede@redhat.com>
Tue, 10 Jan 2012 16:14:46 +0000 (13:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 16 Jan 2012 13:08:57 +0000 (11:08 -0200)
commit938d5b9e7c2e20a7e609ad5874c6e7d8d391e6e9
treeccd8b97d63894834c3ee7778ce10491ca27edffc
parentd167a85c5fb45b1ecdacdb9b7733833a9af78da8
[media] pwc: Avoid sending mode info to the camera when it is not needed

Since we always do a set_video_mode on stream start, there is no need
to actually send the mode info to the device on a s_fmt / s_parm ioctl.
Not doing this saves us doing (slow) usb io.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-ctrl.c
drivers/media/video/pwc/pwc-if.c
drivers/media/video/pwc/pwc-v4l.c
drivers/media/video/pwc/pwc.h