[linux-dvb] Patch Avermedia A169
wouter lists
wouter.lists at gmail.com
Mon Nov 13 22:50:14 CET 2006
Hi all,
Please find attached 2 patches, which enable the dual tuner
functionality of the Avermedia A169.
Before I forget: all credits for these patches go to Rickard Osser.
I'm running these patches without problems for more then 4 months.
Although you have to keep 2 things in mind when running these patches.
I think that's why Rickard hasn't yet sent these patches to the
mailing-list, but I don't want his work to get lost.
First: you have to unload and load the tuner module to get both cards working:
modprobe -r tuner ; modprobe tuner
dmesg before modprobe:
saa7134[0]: i2c scan: found device @ 0x86 [tda9887]
saa7134[0]: i2c scan: found device @ 0xa0 [eeprom]
saa7134[0]: i2c scan: found device @ 0xc0 [tuner (analog)]
saa7134[0]: i2c scan: found device @ 0xc2 [???]
tuner 1-0060: All bytes are equal. It is not a TEA5767
tuner 1-0060: chip found @ 0xc0 (saa7134[0])
tuner 1-0060: type set to 66 (LG TALN series)
tuner 1-0061: chip found @ 0xc2 (saa7134[0])
saa7134[1]: i2c scan: found device @ 0xa0 [eeprom]
saa7134[1]: i2c scan: found device @ 0xc0 [tuner (analog)]
tuner 2-0060: TEA5767 detected.
tuner 2-0060: chip found @ 0xc0 (saa7134[1])
tuner 2-0060: type set to 62 (Philips TEA5767HN FM Radio)
dmesg after modprobe:
tuner 1-0043: chip found @ 0x86 (saa7134[0])
tda9887 1-0043: tda988[5/6/7] found @ 0x43 (tuner)
tuner 1-0060: All bytes are equal. It is not a TEA5767
tuner 1-0060: chip found @ 0xc0 (saa7134[0])
tuner 1-0060: type set to 66 (LG TALN series)
tuner 1-0061: chip found @ 0xc2 (saa7134[0])
tuner 2-0043: chip found @ 0x86 (saa7134[1])
tda9887 2-0043: tda988[5/6/7] found @ 0x43 (tuner)
tuner 2-0060: Returned more than 5 bytes. It is not a TEA5767
tuner 2-0060: chip found @ 0xc0 (saa7134[1])
tuner 2-0060: type set to 66 (LG TALN series)
tuner 2-0061: chip found @ 0xc2 (saa7134[1])
It has something to do with the i2c-scan; but I haven't found what.
Second: I have to run my system with the irqpoll option
I have no idea what is causing this error. If I run my system with the
irqpoll option, everything works great.
tuner 2-0061: chip found @ 0xc2 (saa7134[1])
irq 74: nobody cared (try booting with the "irqpoll" option)
Call Trace:
<IRQ> [<ffffffff802a4bde>] __report_bad_irq+0x30/0x7d
[<ffffffff802a4e18>] note_interrupt+0x1ed/0x22e
[<ffffffff802a4325>] __do_IRQ+0xc7/0x105
[<ffffffff80210381>] __do_softirq+0x5e/0xd5
[<ffffffff80263fdf>] do_IRQ+0x65/0x73
[<ffffffff80252de0>] mwait_idle+0x0/0x4a
[<ffffffff80258989>] ret_from_intr+0x0/0xa
<EOI> [<ffffffff80252e16>] mwait_idle+0x36/0x4a
[<ffffffff80245415>] cpu_idle+0x95/0xb8
[<ffffffff80538799>] start_kernel+0x216/0x21b
[<ffffffff80538288>] _sinittext+0x288/0x28c
handlers:
[<ffffffff882101d0>] (saa7134_irq+0x0/0x284 [saa7134])
[<ffffffff882b39d6>] (saa7134_alsa_irq+0x0/0x2b0 [saa7134_alsa])
Disabling IRQ #74
# cat /proc/interrupts
CPU0 CPU1
0: 41586 0 IO-APIC-edge timer
8: 0 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-level acpi
14: 38 0 IO-APIC-edge ide0
58: 143 0 IO-APIC-level uhci_hcd:usb1, ehci_hcd:usb5
66: 605 0 IO-APIC-level eth0
74: 100000 0 IO-APIC-level saa7134[0], saa7134[0]
169: 7178 0 IO-APIC-level uhci_hcd:usb4, HDA Intel,
radeon at pci:0000:01:00.0
177: 261 0 IO-APIC-level ohci1394
185: 0 0 IO-APIC-level uhci_hcd:usb3, saa7134[1],
saa7134[1]
193: 4583 0 IO-APIC-level libata, uhci_hcd:usb2
NMI: 64 43
LOC: 41544 41522
ERR: 0
MIS: 0
Now it's up to you guys to decide whether to include these patches or
not. I hope they get included.
Thanks,
Wouter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A169_patch-20060630.patch
Type: text/x-patch
Size: 5340 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20061113/ee9ffadd/A169_patch-20060630-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A169_patch-20060630-2.patch
Type: text/x-patch
Size: 840 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20061113/ee9ffadd/A169_patch-20060630-2-0001.bin
More information about the linux-dvb
mailing list