On Tue, 2009-12-08 at 07:24 +0000, Greg Ferguson wrote:
> I'm attempting to install a HVR-1600 on mythbuntu 9.10. I've gone
> through all the suggested troubleshooting I can find with no luck.
>
> It seems like the digital tuner is failing for some reason.
> (s5h1409 state =-6???)
That's -ENXIO coming from the linux I2C subsystem
linux/drivers/i2c/algos/i2c-algo-bit.c:bit_xfer()
linux/drivers/i2c/algos/i2c-algo-bit.c:bit_doAddress()
when the cx18 driver asks the DVB subsystem to talk to the S5H1409
Digital ATSC/QAM demodulator chip using the CX23418's I2C master.
> I do have 2 NVIDIA graphics drivers, but I have seen no symptoms
> related to these cards (1 onboard, 1 card). I have added the
> vmalloc=xxxm to my grub boot conf files, but it made no difference.
>
> I've installed the card in a different box and have verified the
> analog portion is functional via the s-video input in windows. (don't
> currently
> have digital signal to test with, but may once my cable gets hooked up)
>
> I've installed the drivers and firmware as described here:
> http://www.mythtv.org/wiki/Hauppauge_HVR-1600
>
> I've tried blacklisting cx18 and trying to fire it manually.
> No difference in the symptoms listed here.
>
> Any suggestions are greatly appreciated!
It is not a very good sign if the driver can't talk to this chip even
when loaded while the system is not busy (i.e. blacklisted and loaded
later).
1. Please check the card in a Windows box, if you can, and see if you
can tune to digital channels. This should rule out bad hardware.
2. Add the "bit_test=1" option for the i2c_algo_bit module in your
modprobe configuration. This will test the i2c_bus to see if it is
stuck. If the bus is OK then "Test OK" will appear in the logs, when
the cx18 driver first tries to initialize the card.
3. In
v4l-dvb/linux/drivers/media/video/cx18/cx18-cards.c
for the HVR-1600 you can lengthen the reset delays for some of the chips
on the I2C bus on the card by upping the .msecs_asserted
and .msecs_recovery:
.gpio_i2c_slave_reset = {
.active_lo_mask = 0x3001,
.msecs_asserted = 10,
.msecs_recovery = 40,
The units are in milliseconds. Throw in 100 msec for both of them and
recompile and reinstall the driver. Let me know if that helps.
Regards,
Andy
> -Greg
>
>
>
> Full dmesg output is below, but the specific errors are here:
> [ 5.592652] DVB: registering new adapter (cx18)
> [ 5.661762] s5h1409_readreg: readreg error (ret == -6)
> [ 5.661818] cx18-0: frontend initialization failed
> [ 5.661922] cx18-0: DVB failed to register
> [ 5.661946] cx18-0: Registered device video32 for encoder YUV (20 x 101.25
> kB)
> [ 5.661961] cx18-0: Registered device vbi0 for encoder VBI (20 x 51984
> bytes)
> [ 5.661975] cx18-0: Registered device video24 for encoder PCM audio (256 x
> 4.00 kB)
> [ 5.662129] cx18-0: Error -1 registering devices
> [ 5.662136] cx18-0: i2c: i2c exit
> [ 5.662191] tuner-simple 2-0061: destroying instance
> [ 5.662208] cx18-0: info: releasing enc_mem
> [ 5.662731] cx18-0: Error -1 on initialization
> [ 5.662737] cx18: probe of 0000:01:04.0 failed with error -1
> [ 5.662755] cx18: End initialization
>
>
> here's my lspci -vnn output for the card (full output below):
>
> 01:04.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23418
> Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast Audio
> Decoder [14f1:5b7a]
> Subsystem: Hauppauge computer works Inc. Device [0070:7444]
> Flags: bus master, medium devsel, latency 64, IRQ 18
> Memory at f4000000 (32-bit, non-prefetchable) [size=64M]
> Capabilities: [44] Vital Product Data <?>
> Capabilities: [4c] Power Management version 2
> Kernel modules: cx18
>
>
>
>
> Full dmesg:
> [ 4.924033] cx18: Start initialization, version 1.3.0
> [ 5.087924] phy0: Selected rate control algorithm 'minstrel'
> [ 5.088385] phy0: hwaddr 00:17:3f:d3:d4:4a, RTL8185vD + rtl8225z2
> [ 5.088513] cx18-0: Initializing card 0
> [ 5.088515] cx18-0: info: Stream type 0 options: 2 MB, 64 buffers, 32768
> bytes
> [ 5.088517] cx18-0: info: Stream type 1 options: 1 MB, 32 buffers, 32768
> bytes
> [ 5.088519] cx18-0: info: Stream type 2 options: 2 MB, 20 buffers, 103680
> bytes
> [ 5.088521] cx18-0: info: Stream type 3 options: 1 MB, 20 buffers, 51984
> bytes
> [ 5.088523] cx18-0: info: Stream type 4 options: 1 MB, 256 buffers, 4096
> bytes
> [ 5.088525] cx18-0: info: Stream type 5 options: 1 MB, 32 buffers, 32768
> bytes
> [ 5.088527] cx18-0: Autodetected Hauppauge card
> [ 5.092700] cx18-0: info: base addr: 0xf4000000
> [ 5.092702] cx18-0: info: Enabling pci device
> [ 5.093033] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 18
> [ 5.093038] cx18 0000:01:04.0: PCI INT A -> Link[LNKA] -> GSI 18 (level,
> low) -> IRQ 18
> [ 5.093047] cx18-0: Unreasonably low latency timer, setting to 64 (was 32)
> [ 5.093051] cx18-0: info: cx23418 (rev 0) at 01:04.0, irq: 18, latency:
> 64, memory: 0xf4000000
> [ 5.093053] cx18-0: info: attempting ioremap at 0xf4000000 len 0x04000000
> [ 5.093813] cx18-0: cx23418 revision 01010000 (B)
> [ 5.115513] HDA Intel 0000:00:07.0: power state changed by ACPI to D0
> [ 5.115814] ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 22
> [ 5.115818] HDA Intel 0000:00:07.0: PCI INT A -> Link[LAZA] -> GSI 22
> (level, low) -> IRQ 22
> [ 5.115835] HDA Intel 0000:00:07.0: setting latency timer to 64
> [ 5.193439] cx18-0: info: GPIO initial dir: 0000ffff/0000ffff out:
> 00000000/00000000
> [ 5.193457] cx18-0: info: activating i2c...
> [ 5.193458] cx18-0: i2c: i2c init
> [ 5.313515] tveeprom 1-0050: Hauppauge model 74041, rev C6B2, serial#
> 6381277
> [ 5.313518] tveeprom 1-0050: MAC address is 00-0D-FE-61-5E-DD
> [ 5.313520] tveeprom 1-0050: tuner model is TCL M2523_5N_E (idx 112, type
> 50)
> [ 5.313523] tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
> [ 5.313524] tveeprom 1-0050: audio processor is CX23418 (idx 38)
> [ 5.313526] tveeprom 1-0050: decoder processor is CX23418 (idx 31)
> [ 5.313528] tveeprom 1-0050: has no radio, has IR receiver, has IR
> transmitter
> [ 5.313530] cx18-0: Autodetected Hauppauge HVR-1600
> [ 5.313531] cx18-0: info: NTSC tuner detected
> [ 5.313532] cx18-0: Simultaneous Digital and Analog TV capture supported
> [ 5.409370] IRQ 18/cx18-0: IRQF_DISABLED is not guaranteed on shared IRQs
> [ 5.491295] tuner 2-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
> [ 5.506028] cs5345 1-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
> [ 5.591567] tuner-simple 2-0061: creating new instance
> [ 5.591571] tuner-simple 2-0061: type set to 50 (TCL 2002N)
> [ 5.592450] cx18-0: info: Allocate encoder MPEG stream: 64 x 32768
> buffers (2048.00 kB total)
> [ 5.592480] cx18-0: info: Allocate TS stream: 32 x 32768 buffers (1024.00
> kB total)
> [ 5.592493] cx18-0: info: Allocate encoder YUV stream: 20 x 103680
> buffers (2025.00 kB total)
> [ 5.592518] cx18-0: info: Allocate encoder VBI stream: 20 x 51984 buffers
> (1015.31 kB total)
> [ 5.592530] cx18-0: info: Allocate encoder PCM audio stream: 256 x 4096
> buffers (1024.00 kB total)
> [ 5.592594] cx18-0: info: Allocate encoder IDX stream: 32 x 32768 buffers
> (1024.00 kB total)
> [ 5.592650] cx18-0: Registered device video0 for encoder MPEG (64 x 32.00
> kB)
> [ 5.592652] DVB: registering new adapter (cx18)
> [ 5.661762] s5h1409_readreg: readreg error (ret == -6)
> [ 5.661818] cx18-0: frontend initialization failed
> [ 5.661922] cx18-0: DVB failed to register
> [ 5.661946] cx18-0: Registered device video32 for encoder YUV (20 x 101.25
> kB)
> [ 5.661961] cx18-0: Registered device vbi0 for encoder VBI (20 x 51984
> bytes)
> [ 5.661975] cx18-0: Registered device video24 for encoder PCM audio (256 x
> 4.00 kB)
> [ 5.662129] cx18-0: Error -1 registering devices
> [ 5.662136] cx18-0: i2c: i2c exit
> [ 5.662191] tuner-simple 2-0061: destroying instance
> [ 5.662208] cx18-0: info: releasing enc_mem
> [ 5.662731] cx18-0: Error -1 on initialization
> [ 5.662737] cx18: probe of 0000:01:04.0 failed with error -1
> [ 5.662755] cx18: End initialization
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users