public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/2] v4l2-ioctl: cropcap improvements
@ 2016-03-21  8:47 Hans Verkuil
  2016-03-21  8:47 ` [PATCHv2 1/2] v4l2-ioctl: simplify code Hans Verkuil
  2016-03-21  8:48 ` [PATCHv2 2/2] v4l2-ioctl: improve cropcap handling Hans Verkuil
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Verkuil @ 2016-03-21  8:47 UTC (permalink / raw)
  To: linux-media; +Cc: Niklas Söderlund

From: Hans Verkuil <hans.verkuil@cisco.com>

The first patch just simplifies the logic in the code and makes no
functional changes.

The second patch improves the vidioc_cropcap handling with respect to
obtaining the pixel aspect ratio.

It was a bit buggy which I realized after reviewing the new rcar-vin driver.

Regards,

	Hans

Changes for v2:

- Added a sanity check for ops->vidioc_cropcap. While it shouldn't be NULL
  (determine_valid_ioctls() guards against that), it is not obvious from the
  code and since determine_valid_ioctls() is in a different source as well
  there is too much chance for someone to mess this up. I feel happier with
  a check in place.

Hans Verkuil (2):
  v4l2-ioctl: simplify code
  v4l2-ioctl: improve cropcap handling

 drivers/media/v4l2-core/v4l2-ioctl.c | 78 ++++++++++++++++++++++++------------
 1 file changed, 52 insertions(+), 26 deletions(-)

-- 
2.7.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-13 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21  8:47 [PATCHv2 0/2] v4l2-ioctl: cropcap improvements Hans Verkuil
2016-03-21  8:47 ` [PATCHv2 1/2] v4l2-ioctl: simplify code Hans Verkuil
2016-04-13 19:57   ` Mauro Carvalho Chehab
2016-04-13 21:51     ` Hans Verkuil
2016-04-13 22:09       ` Mauro Carvalho Chehab
2016-03-21  8:48 ` [PATCHv2 2/2] v4l2-ioctl: improve cropcap handling Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox