]> git.baikalelectronics.ru Git - kernel.git/commit
[media] pwc: Properly fill all fields on try_fmt
authorHans de Goede <hdegoede@redhat.com>
Wed, 4 Jan 2012 22:46:53 +0000 (19:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 12:48:00 +0000 (10:48 -0200)
commite4442720b61f484b1fd38f648c71bdea20928aa6
tree31f4a4b0f95e3dca7dc94defa76450f7bb4bfe0f
parentfa47e032a0bd6b0929233488132aef647f91b0af
[media] pwc: Properly fill all fields on try_fmt

Before this patch the resulting values from a try_fmt were different then
those from a s_fmt with the same parameters. try_fmt simply did not
touch / fill some values like bytesperline at all.

This patch also corrects bytesperline to the proper value for a planar
format such as the YUV420P format the pwc driver produces, which is
the bytesperline value for the biggest plane, rather then those
of all planes added together.

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