Check out:

http://techweb.rfa.org/staff/bill/channelchanger.c

vFrq should be an unsigned long, not a struct,
from what I see.

Brian W Grasby wrote:
> Hello,
> I'm running kernel 2.4.7-10 with bttv2 (20020219) and trying to write a
> capture routine for a project. My problem is that the following ioctls
> fail:
> VIDIOC_G_FREQUENCY
> VIDIOC_S_FREQUENCY
> 
> When i try to change the frequency of the tuner. They both return "Invalid
> Argument". I am coding like this:
> 
> ioctl(*fd, VIDIOC_G_FREQUENCY, &vFrq)
> 
> where vFrq is a struct v4l2_frequency and i am using vFrq.input = 0 (i
> checked that it has a tuner attached) and *fd is my /dev/video0 - opened
> fine. The error code specifies that the problem is with the request or
> third argument - does anyone have an idea as to which/why the argument is
> invalid?
> 
> Thanks
> -Brian
> 
> 
> 
> _______________________________________________
> Video4linux-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/video4linux-list



-- 
Bill Eldridge
Radio Free Asia
[EMAIL PROTECTED]




_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to