]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:12:45 +0000 (09:12 -0700)
commit99c6a13bc3becce56f8dbf3a6c5944b5b09a051f
tree06f67be2ecc63fe4499f28b12e1b759939178349
parent78360919e519a7ffcd4bdfab1f0610dead54b00b
bttv: Width must be a multiple of 16 when capturing planar formats

commit 5c915c68763889f0183a1cc61c84bb228b60124a upstream.

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.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/bt8xx/bttv-driver.c