[mythtv-users] LIRC with capture card

mian mythtv at mian.net.au
Tue Jan 27 08:07:37 EST 2004


Hi,

I've just been doing the same thing, I can get it partially working
however not recognise buttons 100% enough to be usable yet, just finished
patching 2.6.1 to fully auto-detect the card and correctly configure the
s-video and composite inputs with remote the last thing to get working.

The trick is you have to specify the correct mask values for the lirc_gpio
module but the driver also has some other AverMedia specific code inside
that won't get called unless the card ID matches which it won't.  If you
take a look at the Windows DLL you can figure out what GPIO bits are used
to determine a mask.

>From what I have determined so far bit 5 = is remote data available, bits
4,5,6,7 and 10,11,12,13 combine to form the actual scan code and bit 2 is
enable.

> Hi,
>
> 	I have for some time now ( without mucch luck ) been trying to get the
> infrared receiver that came with my capture card ( avermedia dvb-t ) to
> work
> with Lirc. I'm using the 2.6.1mm4 kernel with the lirc patch ( so lirc
> support is built into the kernel ). But am having no luck with getting
> this
> to work. I still use the apps that you get of the lirc website right ?
> I'll
> attach my dmesg, any help on this would be greatly appreciated.
>
> Linux version 2.6.1-mm4 (root at localhost.localdomain) (gcc version 3.3.2
> 20031022 (Red Hat Linux 3.3.2-1)) #8 Fri Jan 23 22:33:18 EST 2004
> BIOS-provided physical RAM map:
>  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
>  BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
>  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
>  BIOS-e820: 0000000000100000 - 0000000020000000 (usable)
>  BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
> 0MB HIGHMEM available.
> 512MB LOWMEM available.
> zapping low mappings.
> On node 0 totalpages: 131072
>   DMA zone: 4096 pages, LIFO batch:1
>   Normal zone: 126976 pages, LIFO batch:16
>   HighMem zone: 0 pages, LIFO batch:1
> DMI 2.3 present.
> ACPI: Unable to locate RSDP
> Built 1 zonelists
> Local APIC disabled by BIOS -- reenabling.
> Found and enabled local APIC!
> current: c0567a60
> current->thread_info: c060c000
> Initializing CPU#0
> Kernel command line: ro root=LABEL=/ rhgb
> PID hash table entries: 4096 (order 12: 32768 bytes)
> Detected 1050.389 MHz processor.
> Using tsc for high-res timesource
> Console: colour VGA+ 80x25
> Memory: 512484k/524288k available (3869k kernel code, 11028k reserved,
> 1291k
> data, 180k init, 0k highmem)
> Calibrating delay loop... 2064.38 BogoMIPS
> Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
> Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
> Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
> checking if image is initramfs...it isn't (no cpio magic); looks like an
> initrd
> Freeing initrd memory: 97k freed
> CPU:     After generic identify, caps: 0183fbff c1c3fbff 00000000 00000000
> CPU:     After vendor identify, caps: 0183fbff c1c3fbff 00000000 00000000
> Enabling disabled K7/SSE Support.
> CPU: CLK_CTL MSR was fff7f37f. Reprogramming to 2007f37f
> CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
> CPU: L2 Cache: 64K (64 bytes/line)
> CPU:     After all inits, caps: 0383fbff c1c3fbff 00000000 00000020
> Intel machine check architecture supported.
> Intel machine check reporting enabled on CPU#0.
> CPU: AMD Athlon(tm) Processor stepping 01
> Enabling fast FPU save and restore... done.
> Enabling unmasked SIMD FPU exception support... done.
> Checking 'hlt' instruction... OK.
> POSIX conformance testing by UNIFIX
> enabled ExtINT on CPU#0
> ESR value before enabling vector: 00000000
> ESR value after enabling vector: 00000000
> Using local APIC timer interrupts.
> calibrating APIC timer ...
> ..... CPU clock speed is 1049.0807 MHz.
> ..... host bus clock speed is 199.0963 MHz.
> NET: Registered protocol family 16
> PCI: PCI BIOS revision 2.10 entry at 0xfb3c0, last bus=1
> PCI: Using configuration type 1
> mtrr: v2.0 (20020519)
> ACPI: Subsystem revision 20031203
> ACPI: Interpreter disabled.
> Linux Plug and Play Support v0.97 (c) Adam Belay
> SCSI subsystem initialized
> drivers/usb/core/usb.c: registered new driver usbfs
> drivers/usb/core/usb.c: registered new driver hub
> ACPI: ACPI tables contain no PCI IRQ routing entries
> PCI: Invalid ACPI-PCI IRQ routing table
> PCI: Probing PCI hardware
> PCI: Probing PCI hardware (bus 00)
> Disabling VIA memory write queue (PCI ID 0305, rev 03): [55] 89 & 1f -> 09
> PCI: Using IRQ router VIA [1106/0686] at 0000:00:07.0
> spurious 8259A interrupt: IRQ7.
> NET: Registered protocol family 23
> rivafb: nVidia device/chipset 10DE0110
> rivafb: Detected CRTC controller 0 being used
> rivafb: RIVA MTRR set to ON
> rivafb: PCI nVidia NV10 framebuffer ver 0.9.5b (nVidiaGeForce2-M, 64MB @
> 0xD0000000)
> vga16fb: initializing
> vga16fb: mapped to 0xc00a0000
> fb1: VGA16 VGA frame buffer device
> powernow: AMD K7 CPU detected.
> powernow: PowerNOW! Technology present. Can scale: nothing.
> IA-32 Microcode Update Driver: v1.13 <tigran at veritas.com>
> apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
> VFS: Disk quotas dquot_6.5.1
> NTFS driver 2.1.5 [Flags: R/W].
> SGI XFS for Linux with no debug enabled
> Initializing Cryptographic API
> Applying VIA southbridge workaround.
> pty: 2048 Unix98 ptys configured
> lirc_dev: IR Remote Control driver registered, at major 61
> ATIR: pci_prob failed
> request_module: failed /sbin/modprobe -- bttv. error = -16
> Real Time Clock Driver v1.12
> Linux agpgart interface v0.100 (c) Dave Jones
> agpgart: Detected VIA Twister-K/KT133x/KM133 chipset
> agpgart: Maximum main memory to use for agp memory: 440M
> agpgart: AGP aperture is 64M @ 0xd8000000
> Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
> ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
> Using anticipatory io scheduler
> FDC 0 is a post-1991 82077
> RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
> loop: loaded (max 8 devices)
> nbd: registered device at major 43
> Linux Tulip driver version 1.1.13 (May 11, 2002)
> PCI: Found IRQ 11 for device 0000:00:0b.0
> PCI: Sharing IRQ 11 with 0000:00:07.2
> PCI: Sharing IRQ 11 with 0000:00:07.3
> tulip0:  EEPROM default media type Autosense.
> tulip0:  Index #0 - Media MII (#11) described by a 21140 MII PHY (1)
> block.
> tulip0:  MII transceiver #0 config 1000 status 782d advertising 01e1.
> eth0: Digital DS21140 Tulip rev 34 at 0xe800, 00:80:C8:F7:A7:92, IRQ 11.
> Linux video capture interface: v1.00
> bttv: driver version 0.9.12 loaded
> bttv: using 8 buffers with 2080k (520 pages) each for capture
> bttv: Bt8xx card found (0).
> PCI: Found IRQ 9 for device 0000:00:09.0
> PCI: Sharing IRQ 9 with 0000:00:09.1
> PCI: Sharing IRQ 9 with 0000:00:0d.0
> bttv0: Bt878 (rev 17) at 0000:00:09.0, irq: 9, latency: 32, mmio:
> 0xdf002000
> bttv0: subsystem: 1461:0761 (UNKNOWN)
> please mail id, board name and the correct card= insmod option to
> kraxel at bytesex.org
> bttv0: using:  *** UNKNOWN/GENERIC ***  [card=0,autodetected]
> bttv0: gpio: en=00000000, out=00000000 in=009c005d [init]
> bttv0: using tuner=-1
> bttv0: i2c: checking for MSP34xx @ 0x80... not found
> bttv0: i2c: checking for TDA9875 @ 0xb0... not found
> bttv0: i2c: checking for TDA7432 @ 0x8a... not found
> bttv0: registered device video0
> bttv0: registered device vbi0
> tvaudio: TV audio decoder + audio/video mux driver
> tvaudio: known chips: tda9840,tda9873h,tda9874h/
> a,tda9850,tda9855,tea6300,tea6420,tda8425,pic16c54 (PV951),ta8874z
> SAA5249 driver (SAA5249 interface) for VideoText version 1.7
> saa7146: register extension 'budget dvb'.
> saa7146: register extension 'budget dvb /w video in'.
> saa7146: register extension 'budget_ci dvb'.
> bt878: AUDIO driver version 0.0.0 loaded
> bt878: Bt878 AUDIO function found (0).
> PCI: Found IRQ 9 for device 0000:00:09.1
> PCI: Sharing IRQ 9 with 0000:00:09.0
> PCI: Sharing IRQ 9 with 0000:00:0d.0
> bt878(0): Bt878 (rev 17) at 00:09.1, irq: 9, latency: 32, memory:
> 0xdf000000
> attach: checking "bt878 #0 [sw]"
> find by pci: checking "bt878 #0 [sw]"
> attach: "bt878 #0 [sw]", to card 0
> DVB: registering new adapter (Ave).
> DVB: registering frontend 0:0 (Microtune MT7072DTF)...
> Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
> ide: Assuming 33MHz system bus speed for PIO modes; override with
> idebus=xx
> VP_IDE: IDE controller at PCI slot 0000:00:07.1
> VP_IDE: chipset revision 6
> VP_IDE: not 100% native mode: will probe irqs later
> ide: Assuming 33MHz system bus speed for PIO modes; override with
> idebus=xx
> VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1
>     ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
>     ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:pio
> hda: ST340014A, ATA DISK drive
> hdb: LITEON DVD-ROM LTD163D, ATAPI CD/DVD-ROM drive
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> hdc: SAMSUNG CD-ROM SC-152A, ATAPI CD/DVD-ROM drive
> ide1 at 0x170-0x177,0x376 on irq 15
> hda: max request size: 1024KiB
> hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=16383/255/63,
> UDMA(100)
>  hda: hda1 hda2 hda3
> cdrom: : unknown mrw mode page
> hdb: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
> Uniform CD-ROM driver Revision: 3.20
> cdrom: : unknown mrw mode page
> hdc: ATAPI 52X CD-ROM drive, 128kB Cache, DMA
> ide-floppy driver 0.99.newide
> Initializing USB Mass Storage driver...
> drivers/usb/core/usb.c: registered new driver usb-storage
> USB Mass Storage support registered.
> drivers/usb/core/usb.c: registered new driver hid
> drivers/usb/input/hid-core.c: v2.0:USB HID core driver
> drivers/usb/core/usb.c: registered new driver xpad
> drivers/usb/input/xpad.c: X-Box pad driver:v0.0.5
> drivers/usb/core/usb.c: registered new driver usbserial
> drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
> drivers/usb/serial/usb-serial.c: USB Serial support registered for
> PocketPC
> PDA
> drivers/usb/serial/ipaq.c: USB PocketPC PDA driver v0.5
> drivers/usb/core/usb.c: registered new driver ipaq
> mice: PS/2 mouse device common for all mice
> serio: i8042 AUX port at 0x60,0x64 irq 12
> input: PS/2 Generic Mouse on isa0060/serio1
> serio: i8042 KBD port at 0x60,0x64 irq 1
> input: AT Translated Set 2 keyboard on isa0060/serio0
> I2O Core - (C) Copyright 1999 Red Hat Software
> I2O: Event thread created as pid 19
> i2o: Checking for PCI I2O controllers...
> I2O configuration manager v 0.04.
>   (C) Copyright 1999 Red Hat Software
> I2O Block Storage OSM v0.9
>    (c) Copyright 1999-2001 Red Hat Software.
> i2o_block: Checking for Boot device...
> i2o_block: Checking for I2O Block devices...
> i2o_scsi.c: Version 0.1.2
>   chain_pool: 0 bytes @ c162a900
>   (512 byte buffers X 4 can_queue X 0 i2o controllers)
> i2c /dev entries driver
> attach: checking "SMBus Via Pro adapter at 5000"
> Advanced Linux Sound Architecture Driver Version 1.0.1 (Tue Dec 30
> 10:04:14
> 2003 UTC).
> request_module: failed /sbin/modprobe -- snd-card-0. error = -16
> PCI: Found IRQ 9 for device 0000:00:0d.0
> PCI: Sharing IRQ 9 with 0000:00:09.0
> PCI: Sharing IRQ 9 with 0000:00:09.1
> ALSA device list:
>   #0: Ensoniq AudioPCI ENS1371 at 0xec00, irq 9
> NET: Registered protocol family 2
> IP: routing cache hash table of 4096 buckets, 32Kbytes
> TCP: Hash tables configured (established 131072 bind 65536)
> NET: Registered protocol family 1
> NET: Registered protocol family 17
> IrCOMM protocol (Dag Brattli)
> lirc_gpio (-1): card type 0x0, id 0x7611461
> lirc_gpio (-1): cannot detect TV card nr 0!
> RAMDISK: Compressed image found at block 0
> VFS: Mounted root (ext2 filesystem).
> kjournald starting.  Commit interval 5 seconds
> EXT3-fs: mounted filesystem with ordered data mode.
> Freeing unused kernel memory: 180k freed
> atkbd.c: Unknown key released (translated set 2, code 0x7a on
> isa0060/serio0).
> atkbd.c: Unknown key released (translated set 2, code 0x7a on
> isa0060/serio0).
> EXT3 FS on hda2, internal journal
> Adding 1044216k swap on /dev/hda3.  Priority:-1 extents:1
> kjournald starting.  Commit interval 5 seconds
> EXT3 FS on hda1, internal journal
> EXT3-fs: mounted filesystem with ordered data mode.
> kudzu: numerical sysctl 1 23 is obsolete.
> request_module: failed /sbin/modprobe -- char-major-21-0. error = 256
> kudzu: numerical sysctl 1 49 is obsolete.
> kudzu: numerical sysctl 1 49 is obsolete.
> eth0: Setting full-duplex based on MII#0 link partner capability of 45e1.
> request_module: failed /sbin/modprobe -- /dev/ttyS2. error = 256
> atkbd.c: Unknown key released (translated set 2, code 0x7a on
> isa0060/serio0).
> atkbd.c: Unknown key released (translated set 2, code 0x7a on
> isa0060/serio0).
> request_module: failed /sbin/modprobe -- sound-slot-1. error = 256
>
> Sorry about the long post,
>
> Thankyou
>
> David
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>



More information about the mythtv-users mailing list