Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ivtv: devel

input signal detection

 

 

ivtv devel RSS feed   Index | Next | Previous | View Threaded


babal at via

Jul 18, 2008, 2:20 PM

Post #1 of 3 (1883 views)
Permalink
input signal detection

Hi guys,

Is there a way with version 0.10.6 to ask the saa711x chip if it has
detected an input signal (I mean in a C/C++ program, not with "v4l2-ctl
--log-status") ? I need this to determine if the cable set-top box must
be powered on (with an LIRC transmitter) before recording.

In 0.4.4, I used "ioctl( fd, IVTV_IOC_G_DECODER_REG, &saa7115_reg )"
and interpreted the result just as it was done in "ivtvctl -I".

The same can probably be done in 0.10.6, but "ivtvctl
--list-registers" (which seemed the logical place to look, right ?)
fails whatever the parameters are (but I'm not sure what they should be
actually).

Thanks.

--
Boris Dorès

_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


hverkuil at xs4all

Jul 18, 2008, 2:31 PM

Post #2 of 3 (1754 views)
Permalink
Re: input signal detection [In reply to]

On Friday 18 July 2008 23:20:39 Boris Dores wrote:
> Hi guys,
>
> Is there a way with version 0.10.6 to ask the saa711x chip if it
> has detected an input signal (I mean in a C/C++ program, not with
> "v4l2-ctl --log-status") ? I need this to determine if the cable
> set-top box must be powered on (with an LIRC transmitter) before
> recording.
>
> In 0.4.4, I used "ioctl( fd, IVTV_IOC_G_DECODER_REG, &saa7115_reg
> )" and interpreted the result just as it was done in "ivtvctl -I".
>
> The same can probably be done in 0.10.6, but "ivtvctl
> --list-registers" (which seemed the logical place to look, right ?)
> fails whatever the parameters are (but I'm not sure what they should
> be actually).
>
> Thanks.


The V4L2 ioctl VIDIOC_G_TUNER has a signal field that is 65535 when a
signal is present. I guess that's what you want.

Regards,

Hans

_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


babal at via

Jul 18, 2008, 6:01 PM

Post #3 of 3 (1764 views)
Permalink
Re: input signal detection [In reply to]

On Fri, Jul 18, 2008 at 11:31:24PM (GMT+0200), Hans Verkuil wrote:
> The V4L2 ioctl VIDIOC_G_TUNER has a signal field that is 65535 when a
> signal is present. I guess that's what you want.

That's exactly what I need (I can't explain how I missed that :( ).
Thank you very much !

--
Boris Dorès

_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

ivtv devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.