]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx23885: fix format/crop handling
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 30 Nov 2015 11:59:18 +0000 (09:59 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 18 Dec 2015 15:29:13 +0000 (13:29 -0200)
commit89792d00450a7ab0b0268803b9dfd77eddfbcb86
tree589d52a2ac9a32bde59593fb897abd186bc37e28
parenta2d63f3b5a1c6ea3ec2ac682588402e2e023a289
[media] cx23885: fix format/crop handling

While testing the cx23885 driver with various TV standards I found
a number of bugs:

1) norm_maxw() returned 768 instead of 720 for PAL formats. This should
   always be 720, so drop this inline function and just always use 720.
2) cropcap() was missing, so the pixelaspect was never known and qv4l2 would
   scale the image incorrectly. Add cropcap support.
3) cx23885_set_tvnorm() should just return 0 if the same standard was
   set again. If another standard is set, then reset the width/height and
   call set_fmt for the subdevs.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/cx23885/cx23885-video.c
drivers/media/pci/cx23885/cx23885.h