]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit1bb2d79bd440cacee2fb9658ac34a9b915d988a5
treeccd8b97d63894834c3ee7778ce10491ca27edffc
parent471c719c051bc640601c9828db8de310eae23bdb
[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