From: Hans de Goede Date: Wed, 4 Jan 2012 22:46:53 +0000 (-0300) Subject: [media] pwc: Properly fill all fields on try_fmt X-Git-Tag: v3.3-rc1~48^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e582e9263277173e097e5ef8ce8fdfd2e9bc45;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed