On Monday 16 January 2006 01:28, Tony Scholl wrote:
> Hello!
>
> I recently bought a PVR-150MCE. After initial failures I succeeded in
> getting capture from composite video/audio inputs to work. My kernel
> is 2.6.15 and my success was with ivtv-0.4.1. I thought that would be
> the end of my troubles...
>
> Then when I tried to set the inputs again using ivtvctl, /dev/video0
> froze, and I now get the "warning: Encoder mailbox not found" error
> whenever I load the driver. Cold reboot doesn't make any difference.
>
> After trying the patches to the source suggested in Hans's earlier
> postings in this thread to no avail, I upgraded to 0.4.2. Still no
> joy. I wonder if maybe the card is faulty - unfortunately (?) I don't
> have an XP installation on which to test it. I've read the howto,
> troubleshooting page and looked in the lists - so would be grateful
> for any ideas of where to go.
>
> Tony
Interesting. Can you try the attached patch (against 0.4.2)?
Hans
>
>
> System details: debian sarge with home-built 2.6.15 kernel.
>
> dmesg|grep ivtv --->
>
> ivtv: ==================== START INIT IVTV ====================
> ivtv: version 0.4.2 (tagged release) loading
> ivtv: Linux version: 2.6.15 preempt PENTIUMIII gcc-3.3
> 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)
> i2c_adapter i2c-1: adapter [ivtv i2c driver #0] registered
> ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
> tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
> ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
> cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
> ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
> wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
> ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
> tda9887 1-0043: chip found @ 0x86 (ivtv i2c driver #0)
> ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
> ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
> ivtv0 warning: Encoder mailbox not found
> ivtv0 warning: Decoder mailbox not found
> ivtv0: Error locating firmware.
> i2c_adapter i2c-1: adapter [ivtv i2c driver #0] unregistered
> ivtv0: Error -12 on initialization
> ivtv: probe of 0000:01:08.0 failed with error -12
> ivtv: ==================== END INIT IVTV ====================
>
> lspci -v --->
>
> 0000:00:00.0 Host bridge: Intel Corp. 82810 GMCH [Graphics Memory
> Controller Hub] (rev 03)
> Flags: bus master, fast devsel, latency 0
>
> 0000:00:01.0 VGA compatible controller: Intel Corp. 82810 CGC
> [Chipset Graphics Controller] (rev 03) (prog-if 00 [VGA])
> Subsystem: Intel Corp.: Unknown device 7123
> Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 9
> Memory at f4000000 (32-bit, prefetchable) [size=64M]
> Memory at f0000000 (32-bit, non-prefetchable) [size=512K]
> Capabilities: <available only to root>
>
> 0000:00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 02)
> (prog-if 00 [Normal decode])
> Flags: bus master, fast devsel, latency 0
> Bus: primary=00, secondary=01, subordinate=01,
> sec-latency=80 I/O behind bridge: 00002000-00002fff
> Memory behind bridge: f0100000-f01fffff
> Prefetchable memory behind bridge: f8000000-fbffffff
>
> 0000:00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev
> 02) Flags: bus master, medium devsel, latency 0
>
> 0000:00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 02) (prog-if
> 80 [Master])
> Subsystem: Intel Corp. 82801AA IDE
> Flags: bus master, medium devsel, latency 0
> I/O ports at 10a0 [size=16]
>
> 0000:00:1f.2 USB Controller: Intel Corp. 82801AA USB (rev 02)
> (prog-if 00 [UHCI])
> Subsystem: Intel Corp. 82801AA USB
> Flags: bus master, medium devsel, latency 0, IRQ 11
> I/O ports at 1080 [size=32]
>
> 0000:00:1f.3 SMBus: Intel Corp. 82801AA SMBus (rev 02)
> Subsystem: Intel Corp. 82801AA SMBus
> Flags: medium devsel, IRQ 9
> I/O ports at 10b0 [size=16]
>
> 0000:01:08.0 Multimedia video controller: Internext Compression Inc
> iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
> Subsystem: Hauppauge computer works Inc.: Unknown device
> 8801 Flags: bus master, medium devsel, latency 64, IRQ 9 Memory at
> f8000000 (32-bit, prefetchable) [size=64M] Capabilities: <available
> only to root>
>
> 0000:01:09.0 Multimedia audio controller: VIA Technologies Inc.
> VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)
> Subsystem: TERRATEC Electronic GmbH: Unknown device 1145
> Flags: bus master, medium devsel, latency 64, IRQ 9
> I/O ports at 2480 [size=32]
> I/O ports at 2400 [size=128]
> Capabilities: <available only to root>
>
> 0000:01:0a.0 Ethernet controller: Davicom Semiconductor, Inc. 21x4x
> DEC-Tulip compatible 10/100 Ethernet (rev 40)
> Subsystem: Davicom Semiconductor, Inc.: Unknown device 8212
> Flags: bus master, medium devsel, latency 165, IRQ 10
> I/O ports at 2000 [size=256]
> Memory at f0100000 (32-bit, non-prefetchable) [size=256]
> Expansion ROM at f0140000 [disabled] [size=256K]
> Capabilities: <available only to root>
>
> lsmod --->
>
> Module Size Used by
> parport_pc 22724 1
> lp 8612 0
> parport 21088 2 parport_pc,lp
> ide_cd 38852 0
> cdrom 38880 1 ide_cd
> pcspkr 1668 0
> dmfe 19036 0
> crc32 3936 1 dmfe
> snd_ice1724 67108 0
> snd_ice17xx_ak4xxx 3264 1 snd_ice1724
> snd_ac97_codec 93568 1 snd_ice1724
> snd_ac97_bus 1888 1 snd_ac97_codec
> snd_ak4114 7776 1 snd_ice1724
> snd_pcm_oss 48992 0
> snd_mixer_oss 17152 1 snd_pcm_oss
> snd_pcm 82088 4
> snd_ice1724,snd_ac97_codec,snd_ak4114,snd_pcm_oss
> snd_timer 21572 1 snd_pcm
> snd_page_alloc 8712 1 snd_pcm
> snd_ak4xxx_adda 5792 2 snd_ice1724,snd_ice17xx_ak4xxx
> snd_mpu401_uart 6368 1 snd_ice1724
> snd_rawmidi 20544 1 snd_mpu401_uart
> snd_seq_device 7020 1 snd_rawmidi
> snd 48484 11
> snd_ice1724,snd_ac97_codec,snd_ak4114,snd_pcm_oss,snd_mixer_oss,snd_p
>cm,snd_timer,snd_ak4xxx_adda,snd_mpu401_uart,snd_rawmidi,snd_seq_devic
>e tda9887 15184 0
> wm8775 5068 0
> cx25840 25328 0
> tuner 44452 0
> tveeprom 14000 0
> ivtv 220436 0
> firmware_class 8192 2 cx25840,ivtv
> i2c_algo_bit 9192 1 ivtv
> videodev 7360 1 ivtv
> i2c_i801 10188 0
> i2c_core 19632 8
> tda9887,wm8775,cx25840,tuner,tveeprom,ivtv,i2c_algo_bit,i2c_i801
> intel_agp 20316 1
> agpgart 29736 2 intel_agp
> sd_mod 13808 0
>
>
>
>
> _______________________________________________
> ivtv-users mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-users
Index: driver/ivtv-firmware.c
===================================================================
--- driver/ivtv-firmware.c (revision 3143)
+++ driver/ivtv-firmware.c (working copy)
@@ -107,13 +107,18 @@
int retval = -ENOMEM;
if (request_firmware(&fw, fn, FWDEV(pdev)) == 0) {
+ int i;
+ long *dst = (long *)mem;
+ const long *src = (const long *)fw->data;
+
if (fw->size >= size) {
retval = size;
- memcpy_toio(mem, fw->data, size);
} else {
retval = fw->size;
- memcpy_toio(mem, fw->data, fw->size);
}
+ for (i = 0; i < retval; i += 4) {
+ *dst++ = *src++;
+ }
release_firmware(fw);
IVTV_INFO("loaded %s firmware (%d bytes)\n", fn, retval);
} else {
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users