]> 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)
commit27027a8636867b8c7738bd7f6bad595bdaed0e35
tree589d52a2ac9a32bde59593fb897abd186bc37e28
parent8201763b05c13dd86ee9a2c0d3c38a328835520b
[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