So here is a bit of a progress report on the 74041: I compiled a new kernel with i2c debug options turned on. This is a 2.6.22.9 kernel under Mythbuntu (i.e. Ubuntu 7.10) using cx18-a52f6755ca2b. After doing a "modprobe i2c_algo_bit i2c_debug=3" and a "modprobe cx18 debug=511" I get this:
[ 2248.267003] Linux video capture interface: v2.00 [ 2248.303802] i2c-core: driver [tveeprom] registered [ 2248.319450] cx18: Start initialization, version 0.1.0 [ 2248.320731] cx18-0: Initializing card #0 [ 2248.320747] cx18-0: Autodetected Hauppauge card [ 2248.320754] cx18-0 info: base addr: 0xdc000000 [ 2248.320757] cx18-0 info: Enabling pci device [ 2248.320785] ACPI: PCI Interrupt 0000:00:0d.0[A] -> GSI 18 (level, low) -> IRQ 17 [ 2248.320803] cx18-0 info: cx23418 (rev 0) at 00:0d.0, irq: 17, latency: 64, memory: 0xdc000000 [ 2248.320808] cx18-0 info: attempting ioremap at 0xdc000000 len 0x04000000 [ 2248.321179] cx18-0: cx23418 revision 01010000 (B) [ 2248.395338] cx18-0 info: GPIO initial dir: 0000ffff out: 00000000 [ 2248.395368] cx18-0 info: activating i2c... [ 2248.395372] cx18-0 i2c: i2c init [ 2248.420263] i2c-adapter i2c-1: adapter [cx18 i2c driver #0-0] registered [ 2248.421299] i2c-adapter i2c-2: adapter [cx18 i2c driver #0-1] registered [ 2248.421312] cx18-0 info: Active card count: 1. [ 2248.421317] cx18-0: EEPROM Name: cx18 internal0 [ 2248.421323] i2c-adapter i2c-1: master_xfer[0] W, addr=0x50, len=1 [ 2248.421747] i2c-adapter i2c-1: emitting start condition [ 2248.426411] i2c-adapter i2c-1: i2c_outb: 0xa0 NA [ 2248.426420] i2c-adapter i2c-1: emitting stop condition [ 2248.433859] i2c-adapter i2c-1: emitting start condition [ 2248.438541] i2c-adapter i2c-1: i2c_outb: 0xa0 NA [ 2248.438550] i2c-adapter i2c-1: emitting stop condition [ 2248.439939] i2c-adapter i2c-1: emitting start condition [ 2248.444597] i2c-adapter i2c-1: i2c_outb: 0xa0 NA [ 2248.444606] i2c-adapter i2c-1: emitting stop condition [ 2248.445698] i2c-adapter i2c-1: emitting start condition [ 2248.450348] i2c-adapter i2c-1: i2c_outb: 0xa0 NA [ 2248.450359] i2c-adapter i2c-1: NAK from device addr 0x50 msg #0 [ 2248.450362] i2c-adapter i2c-1: emitting stop condition [ 2248.450860] tveeprom 1-0050: Huh, no eeprom present (err=-121)? [ 2248.450866] tveeprom 1-0050: Encountered bad packet header [ff]. Corrupt or not a Hauppauge eeprom. [ 2248.450871] cx18-0: Invalid EEPROM [ 2248.469338] cx18-0 info: Loaded module tuner [ 2248.484569] cx18-0 info: Loaded module cs5345 [ 2248.484579] cx18-0 i2c: i2c client register [ 2248.484780] i2c-adapter i2c-2: Probing failed, no device found [ 2248.484903] i2c-adapter i2c-2: master_xfer[0] W, addr=0x43, len=0 [ 2248.485027] i2c-adapter i2c-2: emitting start condition [ 2248.487682] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.495805] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.495983] i2c-adapter i2c-2: i2c_outb: 0x86 A [ 2248.496156] i2c-adapter i2c-2: emitting stop condition [ 2248.497892] i2c-adapter i2c-2: client [] registered with bus id 2-0043 [ 2248.498085] i2c 2-0043: uevent [ 2248.498965] tuner 2-0043: probe [ 2248.498979] i2c-adapter i2c-2: master_xfer[0] W, addr=0x43, len=1 [ 2248.499174] i2c-adapter i2c-2: emitting start condition [ 2248.507617] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.510104] i2c-adapter i2c-2: i2c_outb: 0x86 A [ 2248.515891] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.520679] i2c-adapter i2c-2: i2c_outb: 0x00 A [ 2248.520853] i2c-adapter i2c-2: wrote 1 byte [ 2248.520855] i2c-adapter i2c-2: emitting stop condition [ 2248.522007] i2c-adapter i2c-2: master_xfer[0] R, addr=0x43, len=8 [ 2248.522889] i2c-adapter i2c-2: emitting start condition [ 2248.527853] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.533792] i2c-adapter i2c-2: i2c_outb: 0x87 A [ 2248.542542] i2c-adapter i2c-2: i2c_inb: 0x00 A [ 2248.551924] i2c-adapter i2c-2: i2c_inb: 0x00 A [ 2248.555709] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.559678] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.561349] i2c-adapter i2c-2: i2c_inb: 0x00 A [ 2248.570761] i2c-adapter i2c-2: i2c_inb: 0x00 A [ 2248.580144] i2c-adapter i2c-2: i2c_inb: 0x00 A [ 2248.589533] i2c-adapter i2c-2: i2c_inb: 0x00 A [ 2248.598912] i2c-adapter i2c-2: i2c_inb: 0x00 A [ 2248.599566] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.603699] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.607668] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.608020] i2c-adapter i2c-2: i2c_inb: 0x00 NA [ 2248.608841] i2c-adapter i2c-2: read 8 bytes [ 2248.608844] i2c-adapter i2c-2: emitting stop condition [ 2248.610012] tuner 2-0043: chip found @ 0x86 (cx18 i2c driver #0-1) [ 2248.610019] tda9887 2-0043: tda988[5/6/7] found [ 2248.610026] i2c-adapter i2c-2: master_xfer[0] W, addr=0x43, len=4 [ 2248.612485] i2c-adapter i2c-2: emitting start condition [ 2248.619748] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.623374] i2c-adapter i2c-2: i2c_outb: 0x86 A [ 2248.633936] i2c-adapter i2c-2: i2c_outb: 0x00 A [ 2248.639723] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.644512] i2c-adapter i2c-2: i2c_outb: 0xc0 A [ 2248.655061] i2c-adapter i2c-2: i2c_outb: 0x00 A [ 2248.659678] i2c-algo-bit: needed 1 jiffies for SCL to go high [ 2248.665616] i2c-adapter i2c-2: i2c_outb: 0x00 A [ 2248.665784] i2c-adapter i2c-2: wrote 4 bytes [ 2248.665787] i2c-adapter i2c-2: emitting stop condition [ 2248.667992] i2c-adapter i2c-2: master_xfer[0] W, addr=0x61, len=0 [ 2248.668116] i2c-adapter i2c-2: emitting start condition [ 2248.679004] i2c-adapter i2c-2: i2c_outb: 0xc2 A [ 2248.679177] i2c-adapter i2c-2: emitting stop condition [ 2248.680638] i2c-adapter i2c-2: client [] registered with bus id 2-0061 [ 2248.680840] i2c 2-0061: uevent [ 2248.681975] tuner 2-0061: probe [ 2248.681991] tuner 2-0061: chip found @ 0xc2 (cx18 i2c driver #0-1) [ 2248.682005] cx18-0 i2c: i2c client register [ 2248.682290] i2c-adapter i2c-1: client [] registered with bus id 1-004c [ 2248.682466] i2c 1-004c: uevent [ 2248.683385] cs5345 1-004c: probe [ 2248.683395] cs5345 1-004c: chip found @ 0x98 (cx18 i2c driver #0-0) [ 2248.683405] i2c-adapter i2c-1: master_xfer[0] W, addr=0x4c, len=2 [ 2248.683756] i2c-adapter i2c-1: emitting start condition [ 2248.688397] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.688407] i2c-adapter i2c-1: emitting stop condition [ 2248.751139] i2c-adapter i2c-1: emitting start condition [ 2248.755824] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.755833] i2c-adapter i2c-1: emitting stop condition [ 2248.757104] i2c-adapter i2c-1: emitting start condition [ 2248.761766] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.761775] i2c-adapter i2c-1: emitting stop condition [ 2248.763001] i2c-adapter i2c-1: emitting start condition [ 2248.767688] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.767699] i2c-adapter i2c-1: NAK from device addr 0x4c msg #0 [ 2248.767702] i2c-adapter i2c-1: emitting stop condition [ 2248.768212] i2c-adapter i2c-1: master_xfer[0] W, addr=0x4c, len=2 [ 2248.768734] i2c-adapter i2c-1: emitting start condition [ 2248.773382] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.773391] i2c-adapter i2c-1: emitting stop condition [ 2248.774980] i2c-adapter i2c-1: emitting start condition [ 2248.779633] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.779642] i2c-adapter i2c-1: emitting stop condition [ 2248.780748] i2c-adapter i2c-1: emitting start condition [ 2248.785398] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.785406] i2c-adapter i2c-1: emitting stop condition [ 2248.786515] i2c-adapter i2c-1: emitting start condition [ 2248.791164] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.791174] i2c-adapter i2c-1: NAK from device addr 0x4c msg #0 [ 2248.791177] i2c-adapter i2c-1: emitting stop condition [ 2248.791688] i2c-adapter i2c-1: master_xfer[0] W, addr=0x4c, len=2 [ 2248.792203] i2c-adapter i2c-1: emitting start condition [ 2248.796860] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.796869] i2c-adapter i2c-1: emitting stop condition [ 2248.798475] i2c-adapter i2c-1: emitting start condition [ 2248.803124] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.803133] i2c-adapter i2c-1: emitting stop condition [ 2248.804277] i2c-adapter i2c-1: emitting start condition [ 2248.808922] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.808931] i2c-adapter i2c-1: emitting stop condition [ 2248.810050] i2c-adapter i2c-1: emitting start condition [ 2248.814699] i2c-adapter i2c-1: i2c_outb: 0x98 NA [ 2248.814709] i2c-adapter i2c-1: NAK from device addr 0x4c msg #0 [ 2248.814712] i2c-adapter i2c-1: emitting stop condition [ 2248.815244] cx18-0 info: Allocate encoder MPEG stream: 64 x 32768 buffers (2048kB total) [ 2248.816009] cx18-0 info: Allocate TS stream: 32 x 32768 buffers (1024kB total) [ 2248.816209] cx18-0 info: Allocate encoder YUV stream: 16 x 131072 buffers (2048kB total) [ 2248.816418] cx18-0 info: Allocate encoder PCM audio stream: 227 x 4608 buffers (1021kB total) [ 2248.816869] cx18-0: Disabled encoder IDX device [ 2248.818035] cx18-0: Registered device video0 for encoder MPEG (2 MB) [ 2248.819064] cx18-0: Registered device video16 for TS (1 MB) [ 2248.819074] cx18_reg_dev() Calling DVB Register [ 2248.819077] cx18_dvb_register() [ 2248.819358] DVB: registering new adapter (cx18) [ 2248.821085] dvb_register() [ 2248.821469] i2c-adapter i2c-1: master_xfer[0] W, addr=0x19, len=1 [ 2248.821474] i2c-adapter i2c-1: master_xfer[1] R, addr=0x19, len=2 [ 2248.821715] i2c-adapter i2c-1: emitting start condition [ 2248.826385] i2c-adapter i2c-1: i2c_outb: 0x32 NA [ 2248.826394] i2c-adapter i2c-1: emitting stop condition [ 2248.939596] i2c-adapter i2c-1: emitting start condition [ 2248.944260] i2c-adapter i2c-1: i2c_outb: 0x32 NA [ 2248.944269] i2c-adapter i2c-1: emitting stop condition [ 2248.967577] i2c-adapter i2c-1: emitting start condition [ 2248.972238] i2c-adapter i2c-1: i2c_outb: 0x32 NA [ 2248.972247] i2c-adapter i2c-1: emitting stop condition [ 2249.007601] i2c-adapter i2c-1: emitting start condition [ 2249.012297] i2c-adapter i2c-1: i2c_outb: 0x32 NA [ 2249.012309] i2c-adapter i2c-1: NAK from device addr 0x19 msg #0 [ 2249.012313] i2c-adapter i2c-1: emitting stop condition [ 2249.012808] s5h1409_readreg: readreg error (ret == -121) [ 2249.013109] cx18: frontend initialization failed [ 2249.015006] cx18_reg_dev() DVB failed to register [ 2249.015198] cx18-0: Registered device video32 for encoder YUV (2 MB) [ 2249.015386] cx18-0: Registered device vbi0 for encoder VBI (1 MB) [ 2249.015545] cx18-0: Registered device video24 for encoder PCM audio (1 MB) [ 2249.015718] cx18-0: Registered device radio0 for encoder radio [ 2249.015724] cx18-0: Initialized card #0: Hauppauge HVR-1600 [ 2249.015976] cx18: End initialization [ 2250.348424] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.348972] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.428374] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.428927] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.476339] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.540300] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.540852] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.556285] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.620247] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.620799] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.716178] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.796131] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.796686] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.860086] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.940039] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.940591] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 [ 2250.956023] cx180 irq: SW1: 800 SW2: 40000 HW2: 0 I noticed there are problems with 0x32 (cx24227 tuner) which is also on i2c bus #1. So, it appears as if there is a problem with i2c bus #1. I verified the eeprom address using the data sheet and tracing the address lines. So I hook up my logic analyser on the i2c bus on the eeprom. Sure enough both the SCL and SDA lines are held high and never change during the cx18 initialization. I double checked on windows and I do get correct SCL and SDA data. I fiddled with the source a bit to try and get the lines to at least change state, but nothing happens. I suspect some registers are changed, but I am not positive. The MPEG decoder is a "cx23418 22zz". I wouldn't think the chip has changed but you never know. Anyone have any ideas or can suggest more testing options? Thanks, Ryan > > > _______________________________________________ > 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
