Hi Hans,

I noticed that if I switch the order of the cpu/apu firmware load, the
74041 will start up.  The change is attached.  I still get errors when
I try to tune and get video from the card.

[82638.996481] Linux video capture interface: v2.00
[82639.004193] cx18:  Start initialization, version 0.1.0
[82639.004494] cx18-0: Initializing card #0
[82639.004501] cx18-0: Autodetected Hauppauge card
[82639.004526] ACPI: PCI Interrupt 0000:02:02.0[A] -> GSI 17 (level,
low) -> IRQ 22
[82639.004757] cx18-0: cx23418 revision 01010000 (B)
[82639.176211] tveeprom 0-0050: Hauppauge model 74041, rev C5B2, serial# 2558553
[82639.176219] tveeprom 0-0050: MAC address is 00-0D-FE-27-0A-59
[82639.176226] tveeprom 0-0050: tuner model is TCL M2523_5N_E (idx 112, type 50)
[82639.176231] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
[82639.176235] tveeprom 0-0050: audio processor is CX23418 (idx 38)
[82639.176240] tveeprom 0-0050: decoder processor is CX23418 (idx 31)
[82639.176247] tveeprom 0-0050: has no radio, has IR receiver, has IR
transmitter
[82639.176254] cx18-0: Autodetected Hauppauge HVR-1600
[82639.216175] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
[82639.216220] cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
[82639.218662] cx18-0: Disabled encoder IDX device
[82639.218712] cx18-0: Registered device video0 for encoder MPEG (2 MB)
[82639.218746] cx18-0: Registered device video16 for TS (2 MB)
[82639.218780] cx18-0: Registered device video32 for encoder YUV (2 MB)
[82639.218813] cx18-0: Registered device vbi0 for encoder VBI (1 MB)
[82639.218847] cx18-0: Registered device video24 for encoder PCM audio (1 MB)
[82639.218858] tuner-simple 1-0061: type set to 50 (TCL 2002N)
[82639.220055] cx18-0: Initialized card #0: Hauppauge HVR-1600
[82639.220080] cx18:  End initialization
[82646.279325] cx18-0: loaded v4l-cx23418-cpu.fw firmware (174716 bytes)
[82646.826642] cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000
(141200 bytes)
[82647.023115] cx18-0: Took ~10 mS for FW to start
[82647.107970] tuner-simple 1-0061: i2c i/o error: rc == -121 (should be 4)
[82647.130696] tuner-simple 1-0061: i2c i/o error: rc == -121 (should be 4)

Here is what happens with mplayer:

[EMAIL PROTECTED]:~$ mplayer pvr:// -tv
normid=10:device=/dev/video0:chanlist=us-bcast:channel=7
MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 3, Stepping: 4)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing pvr://.
[pvr] Using device /dev/video0
[pvr] Detected Hauppauge HVR-1600
[v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2,
Composite 1' '#3, S-Video 2' '#4, Composite 2'
[v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1' '#2, Line In 2'
[v4l2] Available norms: '#0, PAL-BGH' '#1, PAL-DK' '#2, PAL-I' '#3,
PAL-M' '#4, PAL-N' '#5, PAL-Nc' '#6, SECAM-BGH' '#7, SECAM-DK' '#8,
SECAM-L' '#9, SECAM-L'' '#10, NTSC-M' '#11, NTSC-J' '#12, NTSC-K'
[v4l2] Video input: Tuner 1
[v4l2] Audio input: Tuner 1
[v4l2] Norm: NTSC-M.
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes

And this gets logged to dmesg:

[82742.370589] cx18-0: Unknown cmd 9b
[82742.370593] cx18-0: Unknown cmd 9f
[82742.370596] cx18-0: Unknown cmd a1
[82742.370599] cx18-0: Unknown cmd 9d

Maybe this helps?

-Andrew

On Dec 31, 2007 8:53 AM, Hans Verkuil <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Various people seem to have problems loading the firmware. In almost all
> cases the common factor seems to be that they have HVR-1600 model
> 74041, whereas I have model 74021.
>
> I'm not aware of any serious differences between the two, but apparently
> something really is different. I'll see if I can figure out what the
> differences are.
>
> Happy New Year!
>
>         Hans
>
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-devel
>
--- cx18-firmware.c.orig	2007-12-31 12:31:22.000000000 -0600
+++ cx18-firmware.c	2007-12-31 13:58:16.000000000 -0600
@@ -343,7 +343,7 @@
 
 	/* Only if the processor is not running */
 	if (read_reg(CX18_PROC_SOFT_RESET) & 8) {
-		int sz = load_apu_fw_direct("v4l-cx23418-apu.fw", cx->enc_mem, cx, CX18_FW_APU_SIZE);
+		int sz = load_fw_direct("v4l-cx23418-cpu.fw", cx->enc_mem, cx, CX18_FW_CPU_SIZE);
 #if 1
 		/* this might be needed after all, check later */
 		write_enc(0xE51FF004, 0);
@@ -352,7 +352,7 @@
 		cx18_msleep_timeout(500, 0);
 #endif
 
-		sz = sz <= 0 ? sz : load_fw_direct("v4l-cx23418-cpu.fw", cx->enc_mem, cx, CX18_FW_CPU_SIZE);
+		sz = sz <= 0 ? sz : load_apu_fw_direct("v4l-cx23418-apu.fw", cx->enc_mem, cx, CX18_FW_APU_SIZE);
 
 		if (sz > 0) {
 			int retries = 0;
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to