* v4l2-subdev missing video ops
@ 2009-03-19 23:55 Pete Eberlein
2009-03-20 0:22 ` Andy Walls
2009-03-20 7:11 ` Hans Verkuil
0 siblings, 2 replies; 3+ messages in thread
From: Pete Eberlein @ 2009-03-19 23:55 UTC (permalink / raw)
To: Hans Verkuil; +Cc: linux-media
Hello Hans,
I'm looking at converting the go7007 staging driver to use the subdev
API. I don't see any v4l2_subdev_video_ops for VIDIOC_S_INPUT nor
VIDIOC_S_STD. Were those overlooked, or should I use the generic
v4l2_subdev_core_ops->ioctl? (The chip in particular does not have a
tuner, but it does have multiple inputs (svidio, composite) and supports
NTSC or PAL.)
Thanks.
--
Pete Eberlein
Sensoray Co., Inc.
Email: pete@sensoray.com
http://www.sensoray.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: v4l2-subdev missing video ops
2009-03-19 23:55 v4l2-subdev missing video ops Pete Eberlein
@ 2009-03-20 0:22 ` Andy Walls
2009-03-20 7:11 ` Hans Verkuil
1 sibling, 0 replies; 3+ messages in thread
From: Andy Walls @ 2009-03-20 0:22 UTC (permalink / raw)
To: Pete Eberlein; +Cc: Hans Verkuil, linux-media
On Thu, 2009-03-19 at 16:55 -0700, Pete Eberlein wrote:
> Hello Hans,
>
> I'm looking at converting the go7007 staging driver to use the subdev
> API. I don't see any v4l2_subdev_video_ops for VIDIOC_S_INPUT
I believe you want
v4l2_subdev_video_ops.s_routing
and
v4l2_subdev_audio_ops.s_routing
to effect an input change.
> nor
> VIDIOC_S_STD.
The cx25840 module and the cx18 driver use
v4l2_subdev_tuner_ops.s_std
for the digitizer, whether or not it's a tuner input for which the
standard is being set.
A quick grep in linux/drivers/media/video:
$ grep -R -B3 '\.s_std[^_]' *
shows this is likely the case for quite a driver modules.
Regards,
Andy
> Were those overlooked, or should I use the generic
> v4l2_subdev_core_ops->ioctl?
> (The chip in particular does not have a
> tuner, but it does have multiple inputs (svidio, composite) and supports
> NTSC or PAL.)
>
> Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: v4l2-subdev missing video ops
2009-03-19 23:55 v4l2-subdev missing video ops Pete Eberlein
2009-03-20 0:22 ` Andy Walls
@ 2009-03-20 7:11 ` Hans Verkuil
1 sibling, 0 replies; 3+ messages in thread
From: Hans Verkuil @ 2009-03-20 7:11 UTC (permalink / raw)
To: Pete Eberlein; +Cc: linux-media
On Friday 20 March 2009 00:55:20 Pete Eberlein wrote:
> Hello Hans,
>
> I'm looking at converting the go7007 staging driver to use the subdev
> API.
Hoorah! :-)
> I don't see any v4l2_subdev_video_ops for VIDIOC_S_INPUT nor
> VIDIOC_S_STD. Were those overlooked, or should I use the generic
> v4l2_subdev_core_ops->ioctl? (The chip in particular does not have a
> tuner, but it does have multiple inputs (svidio, composite) and supports
> NTSC or PAL.)
S_STD exists, but it is in tuner_ops. I know, I know, that's the wrong
place. I'll move it to video_ops once all conversions are done.
S_INPUT must not be used in subdevices. S_INPUT deals with user-level inputs
(e.g. "Composite", "S-Video", "Tuner"), not with the sub-device-level
inputs/outputs (e.g. PIN-X, PIN-Y). Sub-devices know nothing about the
user-level since that's a board-level informations. Sub-devices only know
about their own input and output pins. The adapter driver is responsible
for mapping an S_INPUT ioctl to video/s_routing and audio/s_routing subdev
ops. These routing commands tell the sub-device on what pin(s) it receives
its input data and what pin(s) are used for the output.
What values you put in the v4l2_routing struct is sub-device dependent and
is defined in the include/media/<subdev>.h header.
Regards,
Hans
--
Hans Verkuil - video4linux developer - sponsored by TANDBERG
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-20 7:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 23:55 v4l2-subdev missing video ops Pete Eberlein
2009-03-20 0:22 ` Andy Walls
2009-03-20 7:11 ` Hans Verkuil
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.