VeSCeRa Tux's lil' helper
Joined: 11 Apr 2004 Posts: 111
|
Posted: Fri Feb 11, 2005 1:46 pm Post subject: Lirc - Something simple left |
|
|
hi i have a tvtuner card type 70 ( pixelview_pro )
i have emerged lirc with
Quote: |
LIRC_OPTS="--with-driver=pixelview_pro" emerge lirc
|
i have started /etc/init.d/lircd
and morprobed lirc_dev , lirc_i2c , lirc_gpio
and from dmesg
Quote: |
Linux video capture interface: v1.00
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 11 (level, low) -> IRQ 11
bttv0: Bt878 (rev 17) at 0000:00:09.0, irq: 11, latency: 32, mmio: 0xdddfe000
bttv0: using: Prolink Pixelview PV-BT878P+ (Rev.4C,8E) [card=70,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=003fffff [init]
bttv0: using tuner=5
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
tvaudio: Ignoring new-style parameters in presence of obsolete ones
tvaudio: TV audio decoder + audio/video mux driver
tvaudio: known chips: tda9840,tda9873h,tda9874h/a,tda9850,tda9855,tea6300,tea6420,tda8425,pic16c54 (PV951),ta8874z
tuner: Ignoring new-style parameters in presence of obsolete ones
tuner: chip found at addr 0xc0 i2c-bus bt878 #0 [sw]
tuner: type set to 5 (Philips PAL_BG (FI1216 and compatibles)) by bt878 #0 [sw]
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv0: add subdevice "remote0"
lirc_dev: IR Remote Control driver registered, at major 61
lirc_gpio (-1): card type 0x46, id 0x0
lirc_dev: lirc_register_plugin:sample_rate: 12
lirc_gpio (0): driver registered
|
and some info about devices registered
Quote: |
root@localhost vescera # ls /dev/lirc*
/dev/lircd /dev/lircm
/dev/lirc:
0
|
ihave changed the /etc/conf.d/lircd file as told in the howtos
and i have LIRCD_OPTS="--with-driver=pixelview_pro" in make conf also
Quote: |
# Options to pass to the lircd process
LIRCD_OPTS="-d /dev/lirc/0"
|
and i could not record anything with irw or irrecord
ii have also tried this; in the lirc.org manual it says;
Quote: |
lirc_gpio
This module receives scan codes from the GPIO register of bt8[47]8 chips using polling or interrupts if the card supports this. It is a "plugin" for the lirc_dev module. It loads bttv and lirc_dev modules if they are not loaded yet.
The following gives a list of parameters for the module. If your TV card is already listed as supported than you don't need to care about parameters except debug and card because all other are set to the correct values automatically. Setting the values manually only makes sense while adding support for a new TV card so that you don't have to recompile the module each time you try a different value.
* debug (0) - value other than 0 (zero) enables printing more log messages
* card (0) - number of TV card from which receive scan codes
* minor (-1) - minor device number for /dev/lirc device
* gpio_mask (0) - bit mask used for extracting usable bits from GPIO value
If this parameter is equal to 0 then the module tries to autodetect the TV card and the remaining parameters are ignored.
* gpio_lock_mask (0) - if this value "anded" with GPIO value is non zero than it indicates that scan code is not ready (value of 0 of this parameter disables checking)
* gpio_xor_mask (0) - bitmask applied (by xor operation) to GPIO value before lock_mask is checked
* soft_gap (0) - minimal gap (in milliseconds) between two scan codes (value of 0 disables checking)
* sample_rate (10) - how often (times per second) GPIO will be polled, set to 0 for interrupt driven input
* bttv_id (unknown) - force given bttv id, signals from some cards are translated to match original codes
Usage example would be e.g:
modprobe lirc_gpio gpio_mask=0x1f00 gpio_lock_mask=0x8000 gpio_xor_mask=0 soft_gap=400 sample_rate=12
Autodetection is performed using the API from the bttv module - this means that if bttv doesn't properly recognize the card type the remote control won't work.
|
and here i have my btspy report from windows with everything working
Quote: |
### BtSpy Report ###
General information:
Name:inca tv wizard
Chip: Bt878 , Rev: 0x00
Subsystem: 0x00000000
Vendor: Gammagraphx, Inc.
Values to MUTE audio:
Mute_GPOE : 0x00006f
Mute_GPDATA: 0x00002b
Has TV Tuner: Yes
TV_Mux : 2
TV_GPOE : 0x00006f
TV_GPDATA: 0x000028
Number of Composite Ins: 1
Composite in #1
Composite1_Mux : 3
Composite1_GPOE : 0x00006f
Composite1_GPDATA: 0x000028
Has SVideo: Yes
SVideo_Mux : 1
SVideo_GPOE : 0x00006f
SVideo_GPDATA: 0x000028
Has Radio: Yes
Radio_GPOE : 0x00006f
Radio_GPDATA: 0x000029
|
so i have tried something stupid like this ( stupid becouse i think the values dont match )
Quote: |
rmmod lirc_gpio
modprobe lirc_gpio gpio_mask=0x00006f gpio_lock_mask=0x000028 gpio_xor_mask=0 soft_gap=400 sample_rate=12
|
and after in dmesg
Quote: |
lirc_dev: lirc_register_plugin:sample_rate: 12
lirc_gpio (0): driver registered
|
and i still have /dev/lirc/0
and when i try irrecord
Quote: |
irrecord -d /dev/lirc/0 /etc/lircd.conf
|
it says
Quote: |
Press RETURN to continue.
Hold down an arbitrary button.
irrecord: gap not found, can't continue
|
as i hold down my channel up or channel down or power
i think i deserve some help here!
at last my info
Quote: |
root@localhost vescera # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 23:28:50)]
dev-lang/python: 2.3.4-r1
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -mfpmath=sse -msse3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mfpmath=sse -msse3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi aim alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts caps cdr cpdflib crypt cups dedicated dga directfb divx4linux dvd encode esd evo f77 fam fbcon flac font-server foomaticdb fortran ftp gb gd gdbm ggi gif gnome gpm gstreamer gtk gtk2 iconv icq imagemagick imlib ipv6 jabber java jpeg ldap libg++ libwww mad mikmod mmx mng motif mozilla mpeg msn mysql mysqli ncurses nls nptl oggvorbis openal opengl oscar oss pam pda pdflib perl php png posix python quicktime readline recode sdl sndfile sockets speex spell spl sqlite sse ssl svga tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts usb xml xml2 xmms xosd xpm xv xvid yahoo zeo zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
|
|
|