Hi,
I bought this card and after quite a few late nights,
I figured
which card and tuner settings work for the card.   
Making LIRC
work took more time. I have summarized what I had to
do to make
it work for benefit of anyone interested. The
distribution  was
Redhat9.0, lirc version was lirc-0.7.0pre6.

The patch was not included in the lirc distribution as
it   may
potentially not work for original card 78.

Note that the this and the latest version of lirc
(lirc-0.7.0pre7)
did not compile on Fedora2.



Card and tuner
==============

I absolutely had no documentation; so it took me some
time to get
the sound working.

I have reasons to believe that this card is a clone of
KWORLD/JETWAY
(bttv card = 78). Their physical appearance were same
and finally
when I got lirc working, the remotes seemed to be
same.

I had to put the following lines in the
/etc/modules.conf file:
option bttv card=78 tuner=12

I tried with other tuner settings but 12 seems to work
best. But
still I do not seem to be getting few channels. If you
ever find a
better setting let me know.

Remote
======

I downloaded lirc code from www.lirc.org.

Choosing KWORLD in lirc configuration, however, did
not work.
It appears that I need to toggle gpio pin
corresponding to value
0x008000 to read IR code from the decoder. I got the
hint from
code I saw in girder project: (Generic BT8x8 plugin
from
www.girder.ln/developer.php). I modified lirc_gpio
accordingly
and it worked.

irrecord did not work for me since it could find a
"gap". So I
made  a temporary edit in that as well just to record
the codes.

Finally, the lircd.conf for KWORLD almost worked. The
only change
that I had to make is that I commented out fm-freq+
and fm-freq-.
These have the same code as ch+ and ch- but occur
first in the
conf file.  xawtv would get fm-freq+ when I press ch+
and would
not respond!

I am attaching the diff of lirc_gpio.c and irrecord.
Hope it helps somebody.


------------------------------------------------------------------

diff -r lirc-0.7.0pre6_fix/daemons/irrecord.c
lirc-0.7.0pre6/daemons/irrecord.c
479c479
< /*            if(!get_gap_length(&remote))
---
>               if(!get_gap_length(&remote))
488d487
< */

diff -r
lirc-0.7.0pre6_fix/drivers/lirc_gpio/lirc_gpio.c
lirc-0.7.0pre6/drivers/lirc_gpio/lirc_gpio.c
125c125
<       {BTTV_KWORLD,                 0, 0x00007f00,
0x00008000, 0x0004000,          0,   0, 12, 32},
---
>       {BTTV_KWORLD,                 0, 0x00007f00,  
       0, 0x0004000,          0,   0, 12, 32},
324,331d323
< #ifdef BTTV_KWORLD
<       if (gpio_enable) {
<               if(bttv_gpio_enable(card, gpio_enable,
gpio_enable)) {
<                       printk(LOGHEAD "gpio_enable
failure\n", minor);
<                       return -EIO;
<               }
<       }
< #endif
336,351d327
< #ifdef BTTV_KWORLD
<       if((code & 0xc000) == 0) {
<               /* Set the right gpio bit */
<               if(bttv_write_gpio(card, gpio_enable,
gpio_enable)) {
<                       printk(LOGHEAD
"write_gpio(set) failure\n", minor);
<                       return -EIO;
<               }
<       }
<       else  {
<               /* Clear the right gpio bit */
<               if(bttv_write_gpio(card, gpio_enable,
~gpio_enable)) {
<                       printk(LOGHEAD
"write_gpio(clear) failure\n", minor);
<                       return -EIO;
<               }
<       }
< #endif
---------------------------------------------------------------------------



        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to