2.6.25-rc[12] Video4Linux Bttv Regression - Kernel

This is a discussion on 2.6.25-rc[12] Video4Linux Bttv Regression - Kernel ; On Sunday 23 March 2008 03:01:42 Mauro Carvalho Chehab wrote: > On Sat, 22 Mar 2008, Bongani Hlope wrote: > > On Saturday 22 March 2008 02:05:57 Robert Fitzsimons wrote: > >> Signed-off-by: Robert Fitzsimons > >> --- > >> ...

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 21 to 23 of 23

Thread: 2.6.25-rc[12] Video4Linux Bttv Regression

  1. Re: [PATCH] bttv: Add a radio compat_ioctl file operation.

    On Sunday 23 March 2008 03:01:42 Mauro Carvalho Chehab wrote:
    > On Sat, 22 Mar 2008, Bongani Hlope wrote:
    > > On Saturday 22 March 2008 02:05:57 Robert Fitzsimons wrote:
    > >> Signed-off-by: Robert Fitzsimons
    > >> ---
    > >> drivers/media/video/bt8xx/bttv-driver.c | 1 +
    > >> 1 files changed, 1 insertions(+), 0 deletions(-)
    > >>
    > >>
    > >> Hi Bongani
    > >>
    > >> I only noticed that you might be using a 32 bit userspace, so the radio
    > >> compat_ioctl needs to be implmented.
    > >>
    > >> Robert
    > >>
    > >>
    > >>
    > >> diff --git a/drivers/media/video/bt8xx/bttv-driver.c
    > >> b/drivers/media/video/bt8xx/bttv-driver.c index 5404fcc..1bdb726 100644
    > >> --- a/drivers/media/video/bt8xx/bttv-driver.c
    > >> +++ b/drivers/media/video/bt8xx/bttv-driver.c
    > >> @@ -3601,6 +3601,7 @@ static const struct file_operations radio_fops =
    > >> .read = radio_read,
    > >> .release = radio_release,
    > >> .ioctl = video_ioctl2,
    > >> + .compat_ioctl = v4l_compat_ioctl32,
    > >> .llseek = no_llseek,
    > >> .poll = radio_poll,
    > >> };

    > >
    > > I run a 64-bit kernel and 64-bit user-space, only a chrooted version of
    > > mplayer and it's dependencies are 32 bit, and I don't use them that
    > > often.
    > >
    > > file /usr/bin/radio
    > > /usr/bin/radio: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for
    > > GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped
    > >
    > > That patch doesn't help also...

    >
    > Unfortunately, I coudn't reproduce your bug here.
    >
    > I tested with a bttv board, plus two radio applications - radio and kradio
    > (radio-3.95-7mdv2008.0 and kradio-1.0-0.r497.3mdv2008.0 packages). None of
    > them used V4L1 API. I also tested reading frequency, using
    > v4l-info /dev/radio0
    >


    rpm -qa | grep radio
    radio-3.95-7mdv2008.0

    strace of radio
    ....
    munmap(0x7f9796ebc000, 168278) = 0
    open("/dev/radio", O_RDONLY) = 3
    ioctl(3, SONYPI_IOCGBAT2CAP or VIDIOCGTUNER
    ^^^^
    v4l1 API
    +++ killed by SIGKILL +++
    Process 5164 detached


    > I also used ioctl-test, running all V4L1 API calls, with this result
    > (I've enabled debug on v4l1-compat, and added a small patch to bttv to use
    > video_ioctl2 debug):
    >
    > Linux video capture interface: v2.00
    > bttv: driver version 0.9.17 loaded
    > bttv: using 8 buffers with 2080k (520 pages) each for capture
    > bttv: Bt8xx card found (0).
    > bttv0: Bt848 (rev 17) at 0000:05:06.0, irq: 16, latency: 32, mmio:
    > 0xce000000 bttv0: using: STB, Gateway P/N 6000699 (bt848) [card=3,insmod
    > option] bttv0: gpio: en=00000000, out=00000000 in=00fbffff [init]
    > bttv0: tuner type=2
    > bttv0: i2c: checking for TDA9875 @ 0xb0... not found
    > bttv0: i2c: checking for TDA7432 @ 0x8a... not found
    > bttv0: registered device video0
    > bttv0: registered device vbi0
    > bttv0: registered device radio0
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_STREAMOFF, dir=-w
    > (0x40045613) BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_OVERLAY, dir=-w
    > (0x4004560e) v4l1-compat: VIDIOCCAPTURE / VIDIOC_PREVIEW: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_AUDIO, dir=r-
    > (0x80345621) BT848 radio (STB, Gateway P/N 6: Get for index=0
    > BT848 radio (STB, Gateway P/N 6: index=0, name=Radio, capability=0, mode=0
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB,
    > Gateway P/N 6: id=0, type=0, name=42, min/max=0/0, step=0, default=0,
    > flags=0x00000001 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl
    > VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB, Gateway P/N 6:
    > id=0, type=0, name=42, min/max=0/0, step=0, default=0, flags=0x00000001
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB,
    > Gateway P/N 6: id=9963785, type=2, name=Mute, min/max=0/1, step=0,
    > default=0, flags=0x00000000 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl
    > VIDIOC_G_CTRL, dir=rw (0xc008561b) BT848 radio (STB, Gateway P/N 6: Enum
    > for index=9963785
    > BT848 radio (STB, Gateway P/N 6: id=9963785, value=-32512
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_G_TUNER, dir=rw (0xc054561d) BT848 radio (STB,
    > Gateway P/N 6: index=0, name=Radio, type=1, capability=0, rangelow=0,
    > rangehigh=0, signal=0, afc=0, rxsubchans=0, audmode=0 BT848 radio (STB,
    > Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCAP, dir=r- (0x80685600) BT848 radio
    > (STB, Gateway P/N 6: driver=bttv, card=BT848 radio (STB, Gateway P/N 6,
    > bus=PCI:0000:05:06.0, version=0x00000911, capabilities=0x00010000 BT848
    > radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_ENUMINPUT, dir=rw (0xc050561a)
    > BT848 radio (STB, Gateway P/N 6: index=0, name=Radio, type=1, audioset=0,
    > tuner=0, std=00000000, status=0 BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_ENUMINPUT, dir=rw
    > (0xc050561a) BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_ENUM_FMT, dir=rw
    > (0xc0405602) BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_ENUMINPUT,
    > dir=rw (0xc050561a) BT848 radio (STB, Gateway P/N 6: index=0, name=Radio,
    > type=1, audioset=0, tuner=0, std=00000000, status=0 BT848 radio (STB,
    > Gateway P/N 6: v4l2 ioctl VIDIOC_G_STD, dir=r- (0x80085617) BT848 radio
    > (STB, Gateway P/N 6: value=00000000
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FBUF, dir=r-
    > (0x8030560a) v4l1-compat: VIDIOCGFBUF / VIDIOC_G_FBUF: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FREQUENCY, dir=rw
    > (0xc02c5638) BT848 radio (STB, Gateway P/N 6: tuner=0, type=1, frequency=0
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB,
    > Gateway P/N 6: id=0, type=0, name=42, min/max=0/0, step=0, default=0,
    > flags=0x00000001 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl
    > VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB, Gateway P/N 6:
    > id=0, type=0, name=42, min/max=0/0, step=0, default=0, flags=0x00000001
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB,
    > Gateway P/N 6: id=0, type=0, name=42, min/max=0/0, step=0, default=0,
    > flags=0x00000001 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT,
    > dir=rw (0xc0d05604) BT848 radio (STB, Gateway P/N 6: type=video-cap
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) v4l1-compat: VIDIOCGPICT / VIDIOC_G_FMT: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_TUNER, dir=rw
    > (0xc054561d) BT848 radio (STB, Gateway P/N 6: index=0, name=Radio, type=1,
    > capability=0, rangelow=0, rangehigh=0, signal=0, afc=0, rxsubchans=0,
    > audmode=0 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_STD, dir=r-
    > (0x80085617) BT848 radio (STB, Gateway P/N 6: value=00000000
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) BT848 radio (STB, Gateway P/N 6: type=vbi-cap
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) v4l1-compat: VIDIOCGVBIFMT / VIDIOC_G_FMT: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) BT848 radio (STB, Gateway P/N 6: type=video-over
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) v4l1-compat: VIDIOCGWIN / VIDIOC_G_WIN: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) BT848 radio (STB, Gateway P/N 6: type=video-cap
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) v4l1-compat: VIDIOCGWIN / VIDIOC_G_FMT: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) BT848 radio (STB, Gateway P/N 6: type=video-cap
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) v4l1-compat: VIDIOCMCAPTURE / VIDIOC_G_FMT: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_S_AUDIO, dir=-w
    > (0x40345622) BT848 radio (STB, Gateway P/N 6: index=0, name=, capability=0,
    > mode=0 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB,
    > Gateway P/N 6: id=0, type=0, name=42, min/max=0/0, step=0, default=0,
    > flags=0x00000001 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl
    > VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB, Gateway P/N 6:
    > id=0, type=0, name=42, min/max=0/0, step=0, default=0, flags=0x00000001
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB,
    > Gateway P/N 6: id=9963785, type=2, name=Mute, min/max=0/1, step=0,
    > default=0, flags=0x00000000 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl
    > VIDIOC_S_CTRL, dir=rw (0xc008561c) BT848 radio (STB, Gateway P/N 6:
    > id=9963785, value=0
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_TUNER, dir=rw
    > (0xc054561d) BT848 radio (STB, Gateway P/N 6: index=0, name=Radio, type=1,
    > capability=0, rangelow=0, rangehigh=0, signal=0, afc=0, rxsubchans=0,
    > audmode=0 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_S_TUNER,
    > dir=-w (0x4054561e) BT848 radio (STB, Gateway P/N 6: index=0, name=Radio,
    > type=1, capability=0, rangelow=0, rangehigh=0, signal=0, afc=0,
    > rxsubchans=0, audmode=0 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl
    > VIDIOC_S_INPUT, dir=rw (0xc0045627) BT848 radio (STB, Gateway P/N 6:
    > value=0
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_S_STD, dir=-w
    > (0x40085618) BT848 radio (STB, Gateway P/N 6: value=000000ff
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_S_FBUF, dir=-w
    > (0x4030560b) v4l1-compat: VIDIOCSFBUF / VIDIOC_S_FBUF: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FREQUENCY, dir=rw
    > (0xc02c5638) BT848 radio (STB, Gateway P/N 6: tuner=0, type=1, frequency=0
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_S_FREQUENCY, dir=-w
    > (0x402c5639) BT848 radio (STB, Gateway P/N 6: tuner=0, type=1, frequency=0
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB,
    > Gateway P/N 6: id=0, type=0, name=42, min/max=0/0, step=0, default=0,
    > flags=0x00000001 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl
    > VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB, Gateway P/N 6:
    > id=0, type=0, name=42, min/max=0/0, step=0, default=0, flags=0x00000001
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw
    > (0xc0445624) BT848 radio (STB, Gateway P/N 6: id=0, type=0, name=42,
    > min/max=0/0, step=0, default=0, flags=0x00000001 BT848 radio (STB, Gateway
    > P/N 6: v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) BT848 radio (STB,
    > Gateway P/N 6: id=0, type=0, name=42, min/max=0/0, step=0, default=0,
    > flags=0x00000001 BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT,
    > dir=rw (0xc0d05604) BT848 radio (STB, Gateway P/N 6: type=video-cap
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) v4l1-compat: VIDIOCSPICT / VIDIOC_G_FMT: -22
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FBUF, dir=r-
    > (0x8030560a) v4l1-compat: VIDIOCSPICT / VIDIOC_G_FBUF: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_S_INPUT, dir=rw
    > (0xc0045627) BT848 radio (STB, Gateway P/N 6: value=0
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_STREAMOFF, dir=-w
    > (0x40045613) BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT,
    > dir=rw (0xc0d05604) BT848 radio (STB, Gateway P/N 6: type=video-cap
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_G_FMT, dir=rw
    > (0xc0d05604) v4l1-compat: VIDIOCSWIN / VIDIOC_G_FMT: -22
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_S_FMT, dir=rw
    > (0xc0d05605) BT848 radio (STB, Gateway P/N 6: type=video-over
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_S_FMT, dir=rw
    > (0xc0d05605) v4l1-compat: VIDIOCSWIN / VIDIOC_S_FMT #2: -22
    > BT848 radio (STB, Gateway P/N 6: err:
    > BT848 radio (STB, Gateway P/N 6: v4l2 ioctl VIDIOC_QUERYBUF, dir=rw
    > (0xc0585609) v4l1-compat: VIDIOCSYNC / VIDIOC_QUERYBUF: -22
    >
    > I got no oops. The tests were done also on a 64bit kernel, on a dual-core
    > machine.
    >


    My machine is a 2 x Opteron 244, 2GB RAM, MSI K Master 2FAR Board

    bttv: driver version 0.9.17 loaded
    bttv: using 8 buffers with 2080k (520 pages) each for capture
    bttv: Bt8xx card found (0).
    bttv0: Bt878 (rev 17) at 0000:00:05.0, irq: 16, latency: 32, mmio: 0xfa015000
    bttv0: using: Lifeview FlyVideo 98FM LR50 [card=56,insmod option]
    bttv0: gpio: en=00000000, out=00000000 in=00e8ff00 [init]
    bttv0: FlyVideo_gpio: unknown tuner type.
    bttv0: FlyVideo Radio=yes RemoteControl=yes Tuner=-1 gpio=0xe8ff00
    bttv0: FlyVideo LR90=no tda9821/tda9820=no capture_only=no
    bttv0: tuner type=1
    bttv0: i2c: checking for MSP34xx @ 0x80... not found
    bttv0: i2c: checking for TDA9875 @ 0xb0... not found
    bttv0: i2c: checking for TDA7432 @ 0x8a... not found
    bttv0: registered device video0
    bttv0: registered device vbi0
    bttv0: registered device radio0
    bttv0: PLL: 28636363 => 35468950 .. ok


    lspci
    00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge
    (rev 01)
    00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890
    South]
    00:05.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture
    (rev 11)
    00:05.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev
    11)
    00:08.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
    00:08.1 Input device controller: Creative Labs SB Audigy Game Port (rev 04)
    00:08.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
    00:0b.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705 Gigabit
    Ethernet (rev 03)
    00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID
    Controller (rev 80)
    00:0f.1 IDE interface: VIA Technologies, Inc.
    VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
    00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
    Controller (rev 81)
    00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
    Controller (rev 81)
    00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
    Controller (rev 81)
    00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
    00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge
    [KT600/K8T800/K8T890 South]
    00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
    HyperTransport Technology Configuration
    00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
    Address Map
    00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM
    Controller
    00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
    Miscellaneous Control
    00:19.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
    HyperTransport Technology Configuration
    00:19.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
    Address Map
    00:19.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM
    Controller
    00:19.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
    Miscellaneous Control
    01:00.0 VGA compatible controller: nVidia Corporation NV36 [GeForce FX 5700LE]
    (rev a1)


    > Cheers,
    > Mauro
    >
    > ---
    >
    > I've patched the ioctl-test program (at v4l2-apps/test dir, on v4l/dvb
    > development environment, available at http://linuxtv.org/hg/v4l-dvb) with
    > this diff:
    >
    > diff -r f24051885fe9 v4l2-apps/test/ioctl-test.c
    > --- a/v4l2-apps/test/ioctl-test.c Tue Mar 18 18:10:06 2008 -0300
    > +++ b/v4l2-apps/test/ioctl-test.c Sat Mar 22 21:52:16 2008 -0300
    > @@ -47,6 +47,8 @@ typedef __u32 u32;
    > #else
    > typedef u_int32_t u32;
    > #endif
    > +
    > +#define CONFIG_VIDEO_V4L1_COMPAT
    >
    > /* All possible parameters used on v4l ioctls */
    > union v4l_parms {
    > @@ -142,7 +144,7 @@ int ioctls[] = {
    > VIDIOCSYNC,/* int */
    > #endif
    > /* V4L2 ioctls */
    > -
    > +#if 0
    > VIDIOC_CROPCAP,/* struct v4l2_cropcap */
    > VIDIOC_DQBUF,/* struct v4l2_buffer */
    > VIDIOC_ENUMAUDIO,/* struct v4l2_audio */
    > @@ -173,7 +175,7 @@ int ioctls[] = {
    > VIDIOC_S_OUTPUT,/* int */
    > VIDIOC_S_PARM,/* struct v4l2_streamparm */
    > VIDIOC_TRY_FMT,/* struct v4l2_format */
    > -
    > +#endif
    > #if 0
    > VIDIOC_G_AUDIO_OLD,/* struct v4l2_audio */
    > VIDIOC_G_AUDOUT_OLD,/* struct v4l2_audioout */
    > @@ -214,7 +216,7 @@ int main (void)
    > {
    > int fd=0, ret=0;
    > unsigned i;
    > - char *device="/dev/video0";
    > + char *device="/dev/radio0";
    > union v4l_parms p;
    >
    > if ((fd = open(device, O_RDONLY)) < 0) {
    > --
    > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    > Please read the FAQ at http://www.tux.org/lkml/



    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [PATCH] bttv: Add a radio compat_ioctl file operation.

    On Sun, 23 Mar 2008 15:25:22 +0200
    Bongani Hlope wrote:

    >
    > rpm -qa | grep radio
    > radio-3.95-7mdv2008.0


    Hmm... exactly the same version I have here.

    > 00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge (rev 01)
    > 00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890 South]
    > 00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]


    It used to have some issues with VIA and PCI, if you're using overlay mode
    (this is the default, for xawtv).

    This is due to some issues on buggy VIA bridges, when handling PCI2PCI data
    transfers, used in overlay mode. If a PCI2PCI conflicts with a PCI2MEM transfer
    (or a MEM2PCI), you may suffer data loss.

    Are you trying to use radio just after a clean reboot, or are you experiencing
    those troubles after running a video application that might be using overlay
    mode?

    Could you please send me your .config? I'll try to run the same config as you,
    with the latest -rc.

    Cheers,
    Mauro
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  3. Re: [PATCH] bttv: Add a radio compat_ioctl file operation.

    On Sunday 23 March 2008 15:50:17 Mauro Carvalho Chehab wrote:
    > On Sun, 23 Mar 2008 15:25:22 +0200
    >
    > Bongani Hlope wrote:
    > > rpm -qa | grep radio
    > > radio-3.95-7mdv2008.0

    >
    > Hmm... exactly the same version I have here.
    >
    > > 00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host
    > > Bridge (rev 01) 00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI
    > > bridge [K8T800/K8T890 South] 00:11.0 ISA bridge: VIA Technologies, Inc.
    > > VT8237 ISA bridge [KT600/K8T800/K8T890 South]

    >
    > It used to have some issues with VIA and PCI, if you're using overlay mode
    > (this is the default, for xawtv).
    >


    xawtv works fine, it's only radio that has a problem since 2.6.25-rc?

    > This is due to some issues on buggy VIA bridges, when handling PCI2PCI data
    > transfers, used in overlay mode. If a PCI2PCI conflicts with a PCI2MEM
    > transfer (or a MEM2PCI), you may suffer data loss.
    >
    > Are you trying to use radio just after a clean reboot, or are you
    > experiencing those troubles after running a video application that might be
    > using overlay mode?
    >


    I'm trying to use radio after a clean reboot, as I said above; xatwv and
    tvtime don't seem to have a problem.

    > Could you please send me your .config? I'll try to run the same config as
    > you, with the latest -rc.
    >


    attached

    > Cheers,
    > Mauro


    Oh...

    v4l-info /dev/radio

    causes this oops (clean reboot)

    BUG: unable to handle kernel NULL pointer dereference at 0000000000000250
    IP: [] strlcpy+0x11/0x36
    PGD 68650067 PUD 7526f067 PMD 0
    Oops: 0000 [1] PREEMPT SMP
    CPU 1
    Modules linked in: snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
    binfmt_misc loop nls_cp437 vfat fat nls_iso8859_1 ntfs thermal processor fan
    container button pcspkr snd_pcm_oss snd_mixer_oss tuner snd_emu10k1 tea5767
    tda8290 tuner_xc2028 tda9887 tuner_simple snd_rawmidi mt20xx snd_ac97_codec
    tea5761 bttv ac97_bus snd_pcm ir_common snd_seq_device compat_ioctl32
    snd_timer firewire_ohci videodev snd_page_alloc uhci_hcd firewire_core
    ehci_hcd snd_util_mem v4l1_compat v4l2_common snd_hwdep usbcore crc_itu_t
    ide_cd_mod videobuf_dma_sg snd sr_mod ohci1394 videobuf_core btcx_risc
    emu10k1_gp ieee1394 cdrom i2c_viapro tg3 gameport soundcore sg tveeprom evdev
    Pid: 4756, comm: v4l-info Tainted: G M 2.6.25-rc5 #44
    RIP: 0010:[] [] strlcpy+0x11/0x36
    RSP: 0018:ffff81006414fcb8 EFLAGS: 00010286
    RAX: 0000000000000000 RBX: ffff81006414fdf8 RCX: ffffffffffffffff
    RDX: 0000000000000020 RSI: 0000000000000250 RDI: 0000000000000250
    RBP: ffff81006414fcb8 R08: ffff81006414fe08 R09: ffff81006414fdf8
    R10: ffff81007d885788 R11: 0000000000000202 R12: ffff81007fbe7800
    R13: 0000000080685600 R14: ffff81007e76d800 R15: ffffffff88165110
    FS: 00007f00eb5666f0(0000) GS:ffff81007fb6adc0(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: 0000000000000250 CR3: 000000007686f000 CR4: 00000000000006e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Process v4l-info (pid: 4756, threadinfo ffff81006414e000, task
    ffff81007e8da180)
    Stack: ffff81006414fcd8 ffffffff88145d33 ffff81007d885788 ffff81006414fdf8
    ffff81006414fdb8 ffffffff88100e58 ffffffffc008561c ffff81006414fd28
    ffff81006414fd08 ffffffff88149b72 ffff81006414fd58 ffffffff88142ed2
    Call Trace:
    [] :bttv:radio_querycap+0x39/0x6b
    [] :videodev:__video_do_ioctl+0x579/0x2e16
    [] ? :bttv:bttv_call_i2c_clients+0x16/0x18
    [] ? :bttv:audio_mux+0x105/0x1b5
    [] ? filemap_fault+0x1fe/0x371
    [] :videodev:video_ioctl2+0x1b8/0x259
    [] ? handle_mm_fault+0x341/0x69b
    [] vfs_ioctl+0x5e/0x77
    [] do_vfs_ioctl+0x24d/0x262
    [] ? do_page_fault+0x434/0x7aa
    [] sys_ioctl+0x42/0x67
    [] system_call_after_swapgs+0x7b/0x80


    Code: 4c 29 c2 48 39 d0 72 04 48 8d 4a ff fc 4c 89 cf 4c 01 c0 f3 a4 c6 07 00
    c9 c3 55 31 c0 48 83 c9 ff fc 49 89 f8 48 89 f7 48 89 e5 ae 48 85 d2 48
    f7 d1 48 8d 41 ff 74 15 48 39 d0 48 89 c1 72
    RIP [] strlcpy+0x11/0x36
    RSP
    CR2: 0000000000000250
    ---[ end trace 7e58c9e343c88870 ]---

    but

    v4l-info /dev/video works fine

    ### v4l2 device info [/dev/video] ###
    general info
    VIDIOC_QUERYCAP
    driver : "bttv"
    card : "BT878 video (Lifeview FlyVideo "
    bus_info : "PCI:0000:00:05.0"
    version : 0.9.17
    capabilities : 0x5010015
    [VIDEO_CAPTURE,VIDEO_OVERLAY,VBI_CAPTURE,TUNER,READ WRITE,STREAMING]

    standards
    VIDIOC_ENUMSTD(0)
    index : 0
    id : 0xff
    [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K]
    name : "PAL"
    frameperiod.numerator : 1
    frameperiod.denominator : 25
    framelines : 625
    VIDIOC_ENUMSTD(1)
    index : 1
    id : 0x100 [PAL_M]
    name : "PAL-M"
    frameperiod.numerator : 1001
    frameperiod.denominator : 30000
    framelines : 525
    VIDIOC_ENUMSTD(2)
    index : 2
    id : 0x200 [PAL_N]
    name : "PAL-N"
    frameperiod.numerator : 1
    frameperiod.denominator : 25
    framelines : 625
    VIDIOC_ENUMSTD(3)
    index : 3
    id : 0x400 [PAL_Nc]
    name : "PAL-Nc"
    frameperiod.numerator : 1
    frameperiod.denominator : 25
    framelines : 625
    VIDIOC_ENUMSTD(4)
    index : 4
    id : 0x800 [PAL_60]
    name : "PAL-60"
    frameperiod.numerator : 1001
    frameperiod.denominator : 30000
    framelines : 525
    VIDIOC_ENUMSTD(5)
    index : 5
    id : 0xb000 [NTSC_M,NTSC_M_JP,?]
    name : "NTSC"
    frameperiod.numerator : 1001
    frameperiod.denominator : 30000
    framelines : 525
    VIDIOC_ENUMSTD(6)
    index : 6
    id : 0xff0000
    [SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,S ECAM_L,?ATSC_8_VSB]
    name : "SECAM"
    frameperiod.numerator : 1
    frameperiod.denominator : 25
    framelines : 625

    inputs
    VIDIOC_ENUMINPUT(0)
    index : 0
    name : "Television"
    type : TUNER
    audioset : 1
    tuner : 0
    std : 0xffbfff
    [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K, PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM _B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_ L,?ATSC_8_VSB]
    status : 0x102 [NO_SIGNAL,NO_H_LOCK]
    VIDIOC_ENUMINPUT(1)
    index : 1
    name : "Composite1"
    type : CAMERA
    audioset : 1
    tuner : 0
    std : 0xffbfff
    [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K, PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM _B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_ L,?ATSC_8_VSB]
    status : 0x0 []
    VIDIOC_ENUMINPUT(2)
    index : 2
    name : "S-Video"
    type : CAMERA
    audioset : 1
    tuner : 0
    std : 0xffbfff
    [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K, PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM _B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_ L,?ATSC_8_VSB]
    status : 0x0 []
    VIDIOC_ENUMINPUT(3)
    index : 3
    name : "Composite3"
    type : CAMERA
    audioset : 1
    tuner : 0
    std : 0xffbfff
    [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K, PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM _B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_ L,?ATSC_8_VSB]
    status : 0x0 []

    tuners
    VIDIOC_G_TUNER(0)
    index : 0
    name : "Television"
    type : ANALOG_TV
    capability : 0x2 [NORM]
    rangelow : 704
    rangehigh : 15328
    rxsubchans : 0x1 [MONO]
    audmode : MONO
    signal : 0
    afc : 0

    video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
    index : 0
    type : VIDEO_CAPTURE
    flags : 0
    description : "8 bpp, gray"
    pixelformat : 0x59455247 [GREY]
    VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
    index : 1
    type : VIDEO_CAPTURE
    flags : 0
    description : "8 bpp, dithered color"
    pixelformat : 0x34324948 [HI24]
    VIDIOC_ENUM_FMT(2,VIDEO_CAPTURE)
    index : 2
    type : VIDEO_CAPTURE
    flags : 0
    description : "15 bpp RGB, le"
    pixelformat : 0x4f424752 [RGBO]
    VIDIOC_ENUM_FMT(3,VIDEO_CAPTURE)
    index : 3
    type : VIDEO_CAPTURE
    flags : 0
    description : "15 bpp RGB, be"
    pixelformat : 0x51424752 [RGBQ]
    VIDIOC_ENUM_FMT(4,VIDEO_CAPTURE)
    index : 4
    type : VIDEO_CAPTURE
    flags : 0
    description : "16 bpp RGB, le"
    pixelformat : 0x50424752 [RGBP]
    VIDIOC_ENUM_FMT(5,VIDEO_CAPTURE)
    index : 5
    type : VIDEO_CAPTURE
    flags : 0
    description : "16 bpp RGB, be"
    pixelformat : 0x52424752 [RGBR]
    VIDIOC_ENUM_FMT(6,VIDEO_CAPTURE)
    index : 6
    type : VIDEO_CAPTURE
    flags : 0
    description : "24 bpp RGB, le"
    pixelformat : 0x33524742 [BGR3]
    VIDIOC_ENUM_FMT(7,VIDEO_CAPTURE)
    index : 7
    type : VIDEO_CAPTURE
    flags : 0
    description : "32 bpp RGB, le"
    pixelformat : 0x34524742 [BGR4]
    VIDIOC_ENUM_FMT(8,VIDEO_CAPTURE)
    index : 8
    type : VIDEO_CAPTURE
    flags : 0
    description : "32 bpp RGB, be"
    pixelformat : 0x34424752 [RGB4]
    VIDIOC_ENUM_FMT(9,VIDEO_CAPTURE)
    index : 9
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:2:2, packed, YUYV"
    pixelformat : 0x56595559 [YUYV]
    VIDIOC_ENUM_FMT(10,VIDEO_CAPTURE)
    index : 10
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:2:2, packed, YUYV"
    pixelformat : 0x56595559 [YUYV]
    VIDIOC_ENUM_FMT(11,VIDEO_CAPTURE)
    index : 11
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:2:2, packed, UYVY"
    pixelformat : 0x59565955 [UYVY]
    VIDIOC_ENUM_FMT(12,VIDEO_CAPTURE)
    index : 12
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:2:2, planar, Y-Cb-Cr"
    pixelformat : 0x50323234 [422P]
    VIDIOC_ENUM_FMT(13,VIDEO_CAPTURE)
    index : 13
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:2:0, planar, Y-Cb-Cr"
    pixelformat : 0x32315559 [YU12]
    VIDIOC_ENUM_FMT(14,VIDEO_CAPTURE)
    index : 14
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:2:0, planar, Y-Cr-Cb"
    pixelformat : 0x32315659 [YV12]
    VIDIOC_ENUM_FMT(15,VIDEO_CAPTURE)
    index : 15
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:1:1, planar, Y-Cb-Cr"
    pixelformat : 0x50313134 [411P]
    VIDIOC_ENUM_FMT(16,VIDEO_CAPTURE)
    index : 16
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:1:0, planar, Y-Cb-Cr"
    pixelformat : 0x39565559 [YUV9]
    VIDIOC_ENUM_FMT(17,VIDEO_CAPTURE)
    index : 17
    type : VIDEO_CAPTURE
    flags : 0
    description : "4:1:0, planar, Y-Cr-Cb"
    pixelformat : 0x39555659 [YVU9]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
    type : VIDEO_CAPTURE
    fmt.pix.width : 320
    fmt.pix.height : 240
    fmt.pix.pixelformat : 0x59565955 [UYVY]
    fmt.pix.field : INTERLACED
    fmt.pix.bytesperline : 640
    fmt.pix.sizeimage : 153600
    fmt.pix.colorspace : unknown
    fmt.pix.priv : 0

    video overlay
    VIDIOC_ENUM_FMT(0,VIDEO_OVERLAY)
    index : 0
    type : VIDEO_OVERLAY
    flags : 0
    description : "8 bpp, gray"
    pixelformat : 0x59455247 [GREY]
    VIDIOC_ENUM_FMT(1,VIDEO_OVERLAY)
    index : 1
    type : VIDEO_OVERLAY
    flags : 0
    description : "8 bpp, dithered color"
    pixelformat : 0x34324948 [HI24]
    VIDIOC_ENUM_FMT(2,VIDEO_OVERLAY)
    index : 2
    type : VIDEO_OVERLAY
    flags : 0
    description : "15 bpp RGB, le"
    pixelformat : 0x4f424752 [RGBO]
    VIDIOC_ENUM_FMT(3,VIDEO_OVERLAY)
    index : 3
    type : VIDEO_OVERLAY
    flags : 0
    description : "15 bpp RGB, be"
    pixelformat : 0x51424752 [RGBQ]
    VIDIOC_ENUM_FMT(4,VIDEO_OVERLAY)
    index : 4
    type : VIDEO_OVERLAY
    flags : 0
    description : "16 bpp RGB, le"
    pixelformat : 0x50424752 [RGBP]
    VIDIOC_ENUM_FMT(5,VIDEO_OVERLAY)
    index : 5
    type : VIDEO_OVERLAY
    flags : 0
    description : "16 bpp RGB, be"
    pixelformat : 0x52424752 [RGBR]
    VIDIOC_ENUM_FMT(6,VIDEO_OVERLAY)
    index : 6
    type : VIDEO_OVERLAY
    flags : 0
    description : "24 bpp RGB, le"
    pixelformat : 0x33524742 [BGR3]
    VIDIOC_ENUM_FMT(7,VIDEO_OVERLAY)
    index : 7
    type : VIDEO_OVERLAY
    flags : 0
    description : "32 bpp RGB, le"
    pixelformat : 0x34524742 [BGR4]
    VIDIOC_ENUM_FMT(8,VIDEO_OVERLAY)
    index : 8
    type : VIDEO_OVERLAY
    flags : 0
    description : "32 bpp RGB, be"
    pixelformat : 0x34424752 [RGB4]
    VIDIOC_ENUM_FMT(9,VIDEO_OVERLAY)
    index : 9
    type : VIDEO_OVERLAY
    flags : 0
    description : "4:2:2, packed, YUYV"
    pixelformat : 0x56595559 [YUYV]
    VIDIOC_ENUM_FMT(10,VIDEO_OVERLAY)
    index : 10
    type : VIDEO_OVERLAY
    flags : 0
    description : "4:2:2, packed, YUYV"
    pixelformat : 0x56595559 [YUYV]
    VIDIOC_ENUM_FMT(11,VIDEO_OVERLAY)
    index : 11
    type : VIDEO_OVERLAY
    flags : 0
    description : "4:2:2, packed, UYVY"
    pixelformat : 0x59565955 [UYVY]
    VIDIOC_G_FMT(VIDEO_OVERLAY)
    type : VIDEO_OVERLAY
    fmt.win.w.left : 0
    fmt.win.w.top : 0
    fmt.win.w.width : 320
    fmt.win.w.height : 240
    fmt.win.field : ANY
    fmt.win.chromakey : 0
    fmt.win.clips : (nil)
    fmt.win.clipcount : 0
    fmt.win.bitmap : (nil)
    VIDIOC_G_FBUF
    capability : 0x4[LIST_CLIPPING]
    flags : 0x0 []
    base : (nil)
    fmt.width : 0
    fmt.height : 0
    fmt.pixelformat : 0x59565955 [UYVY]
    fmt.field : ANY
    fmt.bytesperline : 0
    fmt.sizeimage : 0
    fmt.colorspace : unknown
    fmt.priv : 0

    vbi capture
    VIDIOC_ENUM_FMT(0,VBI_CAPTURE)
    index : 0
    type : VBI_CAPTURE
    flags : 0
    description : "vbi data"
    pixelformat : 0x59455247 [GREY]
    VIDIOC_G_FMT(VBI_CAPTURE)
    type : VBI_CAPTURE
    fmt.vbi.sampling_rate : 35468950
    fmt.vbi.offset : 244
    fmt.vbi.samples_per_line: 2048
    fmt.vbi.sample_format : 0x59455247 [GREY]
    fmt.vbi.start[0] : 7
    fmt.vbi.start[1] : 320
    fmt.vbi.count[0] : 16
    fmt.vbi.count[1] : 16
    fmt.vbi.flags : 0

    controls
    VIDIOC_QUERYCTRL(BASE+0)
    id : 9963776
    type : INTEGER
    name : "Brightness"
    minimum : 0
    maximum : 65535
    step : 256
    default_value : 32768
    flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
    id : 9963777
    type : INTEGER
    name : "Contrast"
    minimum : 0
    maximum : 65535
    step : 128
    default_value : 32768
    flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
    id : 9963778
    type : INTEGER
    name : "Saturation"
    minimum : 0
    maximum : 65535
    step : 128
    default_value : 32768
    flags : 0
    VIDIOC_QUERYCTRL(BASE+3)
    id : 9963779
    type : INTEGER
    name : "Hue"
    minimum : 0
    maximum : 65535
    step : 256
    default_value : 32768
    flags : 0
    VIDIOC_QUERYCTRL(BASE+6)
    id : 9963782
    type : INTEGER
    name : "Balance"
    minimum : 0
    maximum : 65535
    step : 655
    default_value : 32768
    flags : 0
    VIDIOC_QUERYCTRL(BASE+7)
    id : 9963783
    type : INTEGER
    name : "Bass"
    minimum : 0
    maximum : 65535
    step : 655
    default_value : 32768
    flags : 0
    VIDIOC_QUERYCTRL(BASE+8)
    id : 9963784
    type : INTEGER
    name : "Treble"
    minimum : 0
    maximum : 65535
    step : 655
    default_value : 32768
    flags : 0
    VIDIOC_QUERYCTRL(BASE+9)
    id : 9963785
    type : BOOLEAN
    name : "Mute"
    minimum : 0
    maximum : 1
    step : 0
    default_value : 0
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+0)
    id : 134217728
    type : BOOLEAN
    name : "chroma agc"
    minimum : 0
    maximum : 1
    step : 0
    default_value : 0
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+1)
    id : 134217729
    type : BOOLEAN
    name : "combfilter"
    minimum : 0
    maximum : 1
    step : 0
    default_value : 0
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+2)
    id : 134217730
    type : BOOLEAN
    name : "automute"
    minimum : 0
    maximum : 1
    step : 0
    default_value : 0
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+3)
    id : 134217731
    type : BOOLEAN
    name : "luma decimation filter"
    minimum : 0
    maximum : 1
    step : 0
    default_value : 0
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+4)
    id : 134217732
    type : BOOLEAN
    name : "agc crush"
    minimum : 0
    maximum : 1
    step : 0
    default_value : 0
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+5)
    id : 134217733
    type : BOOLEAN
    name : "vcr hack"
    minimum : 0
    maximum : 1
    step : 0
    default_value : 0
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+6)
    id : 134217734
    type : INTEGER
    name : "whitecrush upper"
    minimum : 0
    maximum : 255
    step : 1
    default_value : 207
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+7)
    id : 134217735
    type : INTEGER
    name : "whitecrush lower"
    minimum : 0
    maximum : 255
    step : 1
    default_value : 127
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+8)
    id : 134217736
    type : INTEGER
    name : "uv ratio"
    minimum : 0
    maximum : 100
    step : 1
    default_value : 50
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+9)
    id : 134217737
    type : BOOLEAN
    name : "full luma range"
    minimum : 0
    maximum : 1
    step : 0
    default_value : 0
    flags : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+10)
    id : 134217738
    type : INTEGER
    name : "coring"
    minimum : 0
    maximum : 3
    step : 1
    default_value : 0
    flags : 0

    ### video4linux device info [/dev/video] ###
    general info
    VIDIOCGCAP
    name : "BT878 video (Lifeview FlyVideo "
    type : 0x2f
    [CAPTURE,TUNER,TELETEXT,OVERLAY,CLIPPING]
    channels : 4
    audios : 0
    maxwidth : 924
    maxheight : 576
    minwidth : 48
    minheight : 32

    channels
    VIDIOCGCHAN(0)
    channel : 0
    name : "Television"
    tuners : 1
    flags : 0x1 [TUNER]
    type : TV
    norm : 0
    VIDIOCGCHAN(1)
    channel : 1
    name : "Composite1"
    tuners : 0
    flags : 0x0 []
    type : CAMERA
    norm : 0
    VIDIOCGCHAN(2)
    channel : 2
    name : "S-Video"
    tuners : 0
    flags : 0x0 []
    type : CAMERA
    norm : 0
    VIDIOCGCHAN(3)
    channel : 3
    name : "Composite3"
    tuners : 0
    flags : 0x0 []
    type : CAMERA
    norm : 0

    tuner
    VIDIOCGTUNER
    tuner : 0
    name : "Television"
    rangelow : 0
    rangehigh : 704
    flags : 0x0 []
    mode : unknown
    signal : 0

    audio
    VIDIOCGAUDIO
    audio : 0
    volume : 0
    bass : 0
    treble : 0

    picture
    VIDIOCGPICT
    brightness : 32768
    hue : 32768
    colour : 32768
    contrast : 32768
    whiteness : 0
    depth : 16
    palette : UYVY

    buffer
    VIDIOCGFBUF
    base : (nil)
    height : 0
    width : 0
    depth : 0
    bytesperline : 0

    window
    VIDIOCGWIN
    x : 0
    y : 0
    width : 320
    height : 240
    chromakey : 0
    flags : 0



+ Reply to Thread
Page 2 of 2 FirstFirst 1 2