Re: v4l2 Bttv coding problems?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
Video4linux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/video4linux-list



--
Bill Eldridge
Radio Free Asia
bill@xxxxxxx






[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux