]> git.hungrycats.org Git - linux/commit
[media] bttv: Width must be a multiple of 16 when capturing planar formats
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 Feb 2016 11:24:29 +0000 (09:24 -0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 18 Apr 2016 12:50:44 +0000 (08:50 -0400)
commit463c16b5e65df60c9404e0755378a85f581a3145
tree30eadd368063b2e9a3dae60b204c9baee8c4498c
parent179e72b561d3d331c850e1a5779688d7a7de5246
[media] bttv: Width must be a multiple of 16 when capturing planar formats

[ Upstream commit 5c915c68763889f0183a1cc61c84bb228b60124a ]

On my bttv card "Hauppauge WinTV [card=10]" capturing in YV12 fmt at max
size results in a solid green rectangle being captured (all colors 0 in
YUV).

This turns out to be caused by max-width (924) not being a multiple of 16.

We've likely never hit this problem before since normally xawtv / tvtime,
etc. will prefer packed pixel formats. But when using a video card which
is using xf86-video-modesetting + glamor, only planar XVideo fmts are
available, and xawtv will chose a matching capture format to avoid needing
to do conversion, triggering the solid green window problem.

Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/media/pci/bt8xx/bttv-driver.c