On Thursday 12 October 2006 16:07, Duncan Webb wrote:
> Duncan Webb wrote:
> > Duncan Webb wrote:
>
> The unprocessed calls are:
> 1) VIDIOCGCAP (0x803c7601) the old v4l get capabilities actually
> calls VIDIOC_QUERYCAP (0x80685600), so this is okay.

> 2) VIDIOC_ENUM_FMT (0xc0405602)to enumerate image formats, IIRC this
> was supported in earlier ivtv drivers.

Nope, this ioctl was never part of ivtv. But I've added it to ivtv-0.8 
and later. It's in subversion and so will appear in new driver 
releases.

        Hans

>
> >> I seem to have a problem after some ioctl calls have been made and
> >> xine -V xv -A alsa pvr:///timeshift/buf-
> >
> > I know what is causing this, I set the input to 4 (Tuner on
> > PVR-350) and it should have been 0 for the PVR-500.
> >
> > Sorry...
> >
> >> I'm using a PVR-500, ivtv log is attached. This problem *doesn't*
> >> affect the PVR-350
> >> The firmware versions I'm using are:
> >> d85cb08382395390dc95ac6ebc2205f9  v4l-cx2341x-enc.fw
> >> 99836e41ccb28c7b373e87686f93712a  v4l-cx25840.fw
> >> and for the PVR-350
> >> 305dba74bbe5905447add8883f3ecb68  v4l-cx2341x-dec.fw
> >>
> >> Not yet tested 0.4.6 as I got the PVR-500 after installing 0.4.7.
> >>
> >> But will try this next and will decode the ioctls that are
> >> incorrect.
> >>
> >> The ioctls that I don't like are:
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc0405602
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0x803c7601
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0x80685600
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: VIDIOC_QUERYCAP
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0xc04c561a
> >>
> >>
> >> Oct 12 12:27:21 hawk kernel: ivtv0 ioctl: IVTV_IOC_G_CODEC
> >> Oct 12 12:27:21 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0x403c4031
> >> Oct 12 12:27:21 hawk kernel: ivtv0 ioctl: IVTV_IOC_S_CODEC
> >> Oct 12 12:28:35 hawk kernel: ivtv-enc: page allocation failure.
> >> order:4, mode:0xd0
> >> Oct 12 12:28:35 hawk kernel:  [__alloc_pages+533/784]
> >> __alloc_pages+0x215/0x310
> >> Oct 12 12:28:35 hawk kernel:  [kmem_getpages+61/192]
> >> kmem_getpages+0x3d/0xc0 Oct 12 12:28:35 hawk kernel: 
> >> [cache_grow+192/496] cache_grow+0xc0/0x1f0 Oct 12 12:28:35 hawk
> >> kernel:  [cache_alloc_refill+498/576]
> >> cache_alloc_refill+0x1f2/0x240
> >> Oct 12 12:28:35 hawk kernel:  [__kmalloc+119/128]
> >> __kmalloc+0x77/0x80 Oct 12 12:28:35 hawk kernel: 
> >> [pg0+574922279/1068889088]
> >> ivtv_init_buffer+0x47/0x190 [ivtv]
> >> Oct 12 12:28:35 hawk kernel:  [pg0+574926593/1068889088]
> >> enc_gather_free_buffers+0xa1/0x260 [ivtv]
> >> Oct 12 12:28:35 hawk kernel:  [__wake_up+83/128]
> >> __wake_up+0x53/0x80 Oct 12 12:28:35 hawk kernel: 
> >> [pg0+574988298/1068889088]
> >> ivtv_sched_DMA+0x5da/0xa60 [ivtv]
> >> Oct 12 12:28:35 hawk kernel:  [handle_IRQ_event+61/112]
> >> handle_IRQ_event+0x3d/0x70
> >> Oct 12 12:28:35 hawk kernel:  [schedule+946/1648]
> >> schedule+0x3b2/0x670 Oct 12 12:28:35 hawk kernel: 
> >> [default_wake_function+0/32] default_wake_function+0x0/0x20
> >> Oct 12 12:28:35 hawk kernel:  [pg0+575003862/1068889088]
> >> enc_work_handler+0x26/0x40 [ivtv]
> >> Oct 12 12:28:35 hawk kernel:  [autoremove_wake_function+0/96]
> >> autoremove_wake_function+0x0/0x60
> >> Oct 12 12:28:35 hawk kernel:  [pg0+575009829/1068889088]
> >> ivtv_enc_thread+0x125/0x1e0 [ivtv]
> >> Oct 12 12:28:35 hawk kernel:  [pg0+575009536/1068889088]
> >> ivtv_enc_thread+0x0/0x1e0 [ivtv]
> >> Oct 12 12:28:35 hawk kernel:  [autoremove_wake_function+0/96]
> >> autoremove_wake_function+0x0/0x60
> >> Oct 12 12:28:35 hawk kernel:  [pg0+575009536/1068889088]
> >> ivtv_enc_thread+0x0/0x1e0 [ivtv]
> >> Oct 12 12:28:35 hawk kernel:  [kernel_thread_helper+5/24]
> >> kernel_thread_helper+0x5/0x18
> >> Oct 12 12:28:35 hawk kernel: Mem-info:
> >> Oct 12 12:28:35 hawk kernel: DMA per-cpu:
> >> Oct 12 12:28:35 hawk kernel: cpu 0 hot: low 0, high 0, batch 1
> >> used:0 Oct 12 12:28:35 hawk kernel: cpu 0 cold: low 0, high 0,
> >> batch 1 used:0 Oct 12 12:28:35 hawk kernel: DMA32 per-cpu: empty
> >> Oct 12 12:28:35 hawk kernel: Normal per-cpu:
> >> Oct 12 12:28:35 hawk kernel: cpu 0 hot: low 0, high 186, batch 31
> >> used:11 Oct 12 12:28:35 hawk kernel: cpu 0 cold: low 0, high 62,
> >> batch 15 used:60 Oct 12 12:28:35 hawk kernel: HighMem per-cpu:
> >> empty
> >> Oct 12 12:28:35 hawk kernel: Free pages:       88576kB (0kB
> >> HighMem)
> >>
> >> The ioctls that have been executed prior the this crash are:
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0x803c7601
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0x80685600
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: VIDIOC_QUERYCAP
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc0405602
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0x803c7601
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0x80685600
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: VIDIOC_QUERYCAP
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0xc04c561a
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: VIDIOC_ENUMINPUT
> >> Oct 12 12:26:05 hawk kernel: ivtv1 ioctl: v4l2 ioctl 0xc0405602
> >> Oct 12 12:27:13 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0x80685600
> >> Oct 12 12:27:13 hawk kernel: ivtv0 ioctl: VIDIOC_QUERYCAP
> >> Oct 12 12:27:13 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0x80085617
> >> Oct 12 12:27:13 hawk kernel: ivtv0 ioctl: VIDIOC_G_STD
> >> Oct 12 12:27:13 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc02c5638
> >> Oct 12 12:27:13 hawk kernel: ivtv0 ioctl: VIDIOC_G_FREQUENCY
> >> Oct 12 12:27:13 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0xc054561d
> >> Oct 12 12:27:13 hawk kernel: ivtv0 ioctl: VIDIOC_G_TUNER
> >> Oct 12 12:27:21 hawk kernel: ivtv0 ioctl: v4l2 ioctl 0x803c4030
> >> Oct 12 12:27:21 hawk kernel: ivtv0 ioctl: IVTV_IOC_G_CODEC
> >>
> >>
> >>
> >> ------------------------------------------------------------------
> >>------
> >>
> >> ivtv:  ==================== START INIT IVTV ====================
> >> ivtv:  version 0.4.7 (tagged release) loading
> >> ivtv:  Linux version: 2.6.15.7-hawk-r1 preempt PENTIUMIII gcc-4.1
> >> ivtv:  In case of problems please include the debug info between
> >> ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
> >> ivtv:  any module options, when mailing the ivtv-users
> >> mailinglist. ivtv0: Autodetected WinTV PVR 150 card (cx23416
> >> based)
> >> ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 9
> >> ACPI: PCI Interrupt 0000:03:08.0[A] -> Link [LNKH] -> GSI 9
> >> (level, low) -> IRQ 9 ivtv0: Unreasonably low latency timer,
> >> setting to 64 (was 32) tveeprom: Second (radio) tuner idx 101
> >> tveeprom: ivtv version
> >> tveeprom: Hauppauge: model = 23559, rev = D596, serial# = 9822755
> >> tveeprom: tuner = Samsung TCPG 6221P30A (idx = 96, type = 69)
> >> tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom
> >> = 0x74, v4l2 = 0x00400e17) tveeprom: audio processor = CX25843
> >> (type = 25)
> >> tveeprom: decoder processor = CX25843 (type = 1e)
> >> ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
> >> ivtv0: This is the first unit of a PVR500
> >> tuner (ivtv): chip found at addr 0xc0 i2c-bus ivtv i2c driver #0
> >> TEA5767 detected.
> >> ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=60]
> >> tuner: type set to 62 (Philips TEA5767HN FM Radio) by autodetect
> >> type set to 62 (Philips TEA5767HN FM Radio)
> >> tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
> >> ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
> >> cx25840 4-0044: ivtv driver
> >> cx25840 4-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
> >> cx25840 4-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
> >> ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
> >> wm8775 4-001b: chip found @ 0x36 (ivtv i2c driver #0)
> >> ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
> >> tda9887 4-0043: (ivtv) chip found @ 0x86 (ivtv i2c driver #0)
> >> ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
> >> ivtv0: Detected a TEA5767 radio tuner. Enabling radio support.
> >> ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
> >> ivtv0: Encoder revision: 0x02050032
> >> ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers
> >> (4096KB total) ivtv0: Allocate DMA encoder YUV stream: 161 x 12960
> >> buffers (2048KB total) ivtv0: Allocate DMA encoder VBI stream: 80
> >> x 26208 buffers (2048KB total) ivtv0: Allocate DMA encoder PCM
> >> audio stream: 455 x 4608 buffers (2048KB total) ivtv0: Create
> >> encoder radio stream
> >> tuner: type set to 69 (Samsung TCPG 6221P30A) by ivtv i2c driver
> >> #0 ivtv0 ioctl: VIDIOC_S_STD
> >> ivtv0 ioctl: VIDIOC_S_FREQUENCY
> >> ivtv0: Initialized WinTV PVR 500 (unit #1), card #0
> >> ivtv:  ======================  NEXT CARD  ======================
> >> ivtv1: Autodetected WinTV PVR 150 card (cx23416 based)
> >> ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 9
> >> ACPI: PCI Interrupt 0000:03:09.0[A] -> Link [LNKE] -> GSI 9
> >> (level, low) -> IRQ 9 ivtv1: Unreasonably low latency timer,
> >> setting to 64 (was 32) tveeprom: Second (radio) tuner idx 101
> >> tveeprom: ivtv version
> >> tveeprom: Hauppauge: model = 23559, rev = D596, serial# = 9822755
> >> tveeprom: tuner = Samsung TCPG 6221P30A (idx = 96, type = 69)
> >> tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom
> >> = 0x74, v4l2 = 0x00400e17) tveeprom: audio processor = CX25843
> >> (type = 25)
> >> tveeprom: decoder processor = CX25843 (type = 1e)
> >> ivtv1: i2c attach to card #1 ok [client=tveeprom, addr=50]
> >> tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #1
> >> ivtv1: i2c attach to card #1 ok [client=(tuner unset), addr=61]
> >> cx25840 5-0044: ivtv driver
> >> cx25840 5-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)
> >> cx25840 5-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
> >> ivtv1: i2c attach to card #1 ok [client=cx25840, addr=44]
> >> wm8775 5-001b: chip found @ 0x36 (ivtv i2c driver #1)
> >> ivtv1: i2c attach to card #1 ok [client=wm8775, addr=1b]
> >> tda9887 5-0043: (ivtv) chip found @ 0x86 (ivtv i2c driver #1)
> >> ivtv1: i2c attach to card #1 ok [client=tda9887, addr=43]
> >> ivtv1: This is the second unit of a PVR500
> >> ivtv1: Correcting tveeprom data: no radio present on second unit
> >> ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
> >> ivtv1: Encoder revision: 0x02050032
> >> ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768 buffers
> >> (4096KB total) ivtv1: Allocate DMA encoder YUV stream: 161 x 12960
> >> buffers (2048KB total) ivtv1: Allocate DMA encoder VBI stream: 80
> >> x 26208 buffers (2048KB total) ivtv1: Allocate DMA encoder PCM
> >> audio stream: 455 x 4608 buffers (2048KB total) tuner: type set to
> >> 69 (Samsung TCPG 6221P30A) by ivtv i2c driver #1 ivtv1 ioctl:
> >> VIDIOC_S_STD
> >> ivtv1 ioctl: VIDIOC_S_FREQUENCY
> >> ivtv1: Initialized WinTV PVR 500 (unit #2), card #1
> >> ivtv:  ====================  END INIT IVTV  ====================
>
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-devel

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

Reply via email to