public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [REVIEW PATCH 0/3] Add g_tvnorms video op
@ 2014-02-17 11:44 Hans Verkuil
  2014-02-17 11:44 ` [REVIEW PATCH 1/3] v4l2-subdev.h: add " Hans Verkuil
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Hans Verkuil @ 2014-02-17 11:44 UTC (permalink / raw)
  To: linux-media; +Cc: laurent.pinchart, g.liakhovetski

This patch series addresses a problem that was exposed by commit a5338190e.
The issue is that soc_camera implements s/g_std ioctls and just forwards
those to the subdev, whether or not the subdev actually implements them.

In addition, tvnorms is never set, so even if the subdev implements the
s/g_std the ENUMSTD ioctl will not report anything.

The solution is to add a g_tvnorms video op to v4l2_subdev (there was already
a g_tvnorms_output, so that fits nicely) and to let soc_camera call that so
the video_device tvnorms field is set correctly.

Before registering the video node it will check if tvnorms == 0 and disable
the STD ioctls if that's the case.

While this problem cropped up in soc_camera it is really a problem for any
generic bridge driver, so this is useful to have.

Note that it is untested. The plan is that Laurent tests and Guennadi pulls
it into his tree.

Regards,

	Hans


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

end of thread, other threads:[~2014-03-11  9:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 11:44 [REVIEW PATCH 0/3] Add g_tvnorms video op Hans Verkuil
2014-02-17 11:44 ` [REVIEW PATCH 1/3] v4l2-subdev.h: add " Hans Verkuil
2014-03-10 23:23   ` Guennadi Liakhovetski
2014-03-10 23:32     ` Hans Verkuil
2014-03-11  9:33       ` Laurent Pinchart
2014-03-11  9:36         ` Hans Verkuil
2014-02-17 11:44 ` [REVIEW PATCH 2/3] tw9910: " Hans Verkuil
2014-02-17 11:44 ` [REVIEW PATCH 3/3] soc_camera: disable STD ioctls if no tvnorms are set Hans Verkuil
2014-03-10 15:57 ` [REVIEW PATCH 0/3] Add g_tvnorms video op Laurent Pinchart

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