[media] pwc: Fix pixfmt handling
authorHans de Goede <hdegoede@redhat.com>
Tue, 10 Jan 2012 16:01:41 +0000 (13:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 16 Jan 2012 13:08:26 +0000 (11:08 -0200)
commitd167a85c5fb45b1ecdacdb9b7733833a9af78da8
treebc04587bbd8d77b7a7d4eeea3e8ebb9007ae6e75
parent56ae24aad8f9e25dfef995c3e898e5f394cf0beb
[media] pwc: Fix pixfmt handling

Before this patch various code in the mode setting patch checked
pdev->pixfmt, but that was not set until the mode setting succeeded, so
it was looking at the old pixfmt! This patch fixes this by making the
pixfmt a parameter to set_video_mode, and setting it from set_video_mode
on success.

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-misc.c
drivers/media/video/pwc/pwc-v4l.c
drivers/media/video/pwc/pwc.h