Remote controller for Powercolor Real Angel 330
The support for Powercolor Real Angel 330 is almost complete.
Everything works. I just need to finish the codes for remote controller.
I have the following:
1) cx88-input.c
ir_codes = ir_codes_powercolor_real_angel;
ir->gpio_addr = MO_GP2_IO;
ir->mask_keycode = 0x7f;
ir->polling = 1; /* ms */2) ir-keymaps.c:
[0x03] = KEY_1,
[0x05] = KEY_2,
[0x07] = KEY_3,
[0x11] = KEY_8,
[0x13] = KEY_9,
[0x71] = KEY_SWITCHVIDEOMODE, /* switch inputs */
[0x41] = KEY_UP,
[0x43] = KEY_DOWN,
[0x21] = KEY_RIGHT,
[0x23] = KEY_LEFT,
[0x25] = KEY_PAUSE,
[0x27] = KEY_PLAY,
[0x17] = KEY_STOP,
[0x47] = KEY_FASTFORWARD,
[0x45] = KEY_REWIND,
[0x37] = KEY_RECORD,
[0x35] = KEY_SEARCH, /* autoscan */
[0x15] = KEY_SHUFFLE, /* snapshot */
[0x53] = KEY_PREVIOUS, /* previous channel */
[0x15] = KEY_DIGITS, /* single, double, tripple digit */
[0x57] = KEY_MODE, /* stereo/mono */
[0x51] = KEY_TEXT, /* teletext */
All these keys work perfectly. But some keys use the same code.For example, if I press "5" on the remote, I get "1" and if I press "6", I get "2".
*** I noticed that some keys generate more than one code... I tried
all ir types (RC5, PD, OTHER) without success. Does anybody have any clues about that?
Could the mask_keycode be wrong? Any hints?
Signature · 8 lines
Linux 2.6.24: Arr Matey! A Hairy Bilge Rat! http://u-br.net http://www.abusar.org/FELIZ_2008.html -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
В Втр, 01/04/2008 в 19:00 -0300, Dâniel Fraga пишет:
Quoted 41 lines
The support for Powercolor Real Angel 330 is almost complete.
Everything works. I just need to finish the codes for remote controller.I have the following:
1)
cx88-input.cir_codes = ir_codes_powercolor_real_angel; ir->gpio_addr = MO_GP2_IO; ir->mask_keycode = 0x7f; ir->polling = 1; /* ms */2)
ir-keymaps.c:[0x03] = KEY_1, [0x05] = KEY_2, [0x07] = KEY_3, [0x11] = KEY_8, [0x13] = KEY_9, [0x71] = KEY_SWITCHVIDEOMODE, /* switch inputs */ [0x41] = KEY_UP, [0x43] = KEY_DOWN, [0x21] = KEY_RIGHT, [0x23] = KEY_LEFT, [0x25] = KEY_PAUSE, [0x27] = KEY_PLAY, [0x17] = KEY_STOP, [0x47] = KEY_FASTFORWARD, [0x45] = KEY_REWIND, [0x37] = KEY_RECORD, [0x35] = KEY_SEARCH, /* autoscan */ [0x15] = KEY_SHUFFLE, /* snapshot */ [0x53] = KEY_PREVIOUS, /* previous channel */ [0x15] = KEY_DIGITS, /* single, double, tripple digit */ [0x57] = KEY_MODE, /* stereo/mono */ [0x51] = KEY_TEXT, /* teletext */ All these keys work perfectly. But some keys use the same code.For example, if I press "5" on the remote, I get "1" and if I press "6", I get "2".
Quoted 8 lines
*** I noticed that some keys generate more than one code... I triedall ir types (RC5, PD, OTHER) without success. Does anybody have any clues about that?
Could the
mask_keycodebe wrong? Any hints?
Keymask is wrong most probably. Get the right one with RegSpy application from Dscaler project in Windows.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 2 lines · On Wed, 02 Apr 2008 03:49:54 +0400 "Nickolay V. Shmyrev" <[email protected]>…
Keymask is wrong most probably. Get the right one with RegSpy application from Dscaler project in Windows.
I don't have Windows, so I'll try to find someone who has the
same board and Windows. Thanks.
Signature · 4 lines
-- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 49 lines · On Wed, 02 Apr 2008 03:49:54 +0400 "Nickolay V. Shmyrev" <[email protected]>…
В Втр, 01/04/2008 в 19:00 -0300, Dâniel Fraga пишет:
Quoted 47 lines
The support for Powercolor Real Angel 330 is almost complete.
Everything works. I just need to finish the codes for remote controller.I have the following:
1)
cx88-input.cir_codes = ir_codes_powercolor_real_angel; ir->gpio_addr = MO_GP2_IO; ir->mask_keycode = 0x7f; ir->polling = 1; /* ms */2)
ir-keymaps.c:[0x03] = KEY_1, [0x05] = KEY_2, [0x07] = KEY_3, [0x11] = KEY_8, [0x13] = KEY_9, [0x71] = KEY_SWITCHVIDEOMODE, /* switch inputs */ [0x41] = KEY_UP, [0x43] = KEY_DOWN, [0x21] = KEY_RIGHT, [0x23] = KEY_LEFT, [0x25] = KEY_PAUSE, [0x27] = KEY_PLAY, [0x17] = KEY_STOP, [0x47] = KEY_FASTFORWARD, [0x45] = KEY_REWIND, [0x37] = KEY_RECORD, [0x35] = KEY_SEARCH, /* autoscan */ [0x15] = KEY_SHUFFLE, /* snapshot */ [0x53] = KEY_PREVIOUS, /* previous channel */ [0x15] = KEY_DIGITS, /* single, double, tripple digit */ [0x57] = KEY_MODE, /* stereo/mono */ [0x51] = KEY_TEXT, /* teletext */ All these keys work perfectly. But some keys use the same code.For example, if I press "5" on the remote, I get "1" and if I press "6", I get "2".
*** I noticed that some keys generate more than one code... I triedall ir types (RC5, PD, OTHER) without success. Does anybody have any clues about that?
Quoted 5 lines
Quoted 2 lines
Could the
mask_keycodebe wrong? Any hints?Keymask is wrong most probably. Get the right one with RegSpy application from Dscaler project in Windows.
Hi Nicholas. Thanks for the answer.
I got Regspy running and I can monitor MO_GP2_IO. The problem
is:
1) when I press key "1", MO_GP2_IO changes to 0x883. Then if I press it again (the same key "1") it changes to 0x803. And it will switch between 883 and 803 each time I press "1"
2) for key "2" it alternates between 0x885 and 0x805
3) for key "3" it alternates between 0x887 and 0x807
4) for key "4" it alternates between 0x881 and 0x801
5) for key "5" it alternates between 0x883 and 0x803
What exactly should I look at Regspy? Thank you!
Signature · 4 lines
-- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
В Срд, 02/04/2008 в 18:38 -0300, Dâniel Fraga пишет:
Quoted 69 lines
Quoted 49 lines · On Wed, 02 Apr 2008 03:49:54 +0400 "Nickolay V. Shmyrev" <[email protected]>…
В Втр, 01/04/2008 в 19:00 -0300, Dâniel Fraga пишет:
Quoted 47 lines
The support for Powercolor Real Angel 330 is almost complete.
Everything works. I just need to finish the codes for remote controller.I have the following:
1)
cx88-input.cir_codes = ir_codes_powercolor_real_angel; ir->gpio_addr = MO_GP2_IO; ir->mask_keycode = 0x7f; ir->polling = 1; /* ms */2)
ir-keymaps.c:[0x03] = KEY_1, [0x05] = KEY_2, [0x07] = KEY_3, [0x11] = KEY_8, [0x13] = KEY_9, [0x71] = KEY_SWITCHVIDEOMODE, /* switch inputs */ [0x41] = KEY_UP, [0x43] = KEY_DOWN, [0x21] = KEY_RIGHT, [0x23] = KEY_LEFT, [0x25] = KEY_PAUSE, [0x27] = KEY_PLAY, [0x17] = KEY_STOP, [0x47] = KEY_FASTFORWARD, [0x45] = KEY_REWIND, [0x37] = KEY_RECORD, [0x35] = KEY_SEARCH, /* autoscan */ [0x15] = KEY_SHUFFLE, /* snapshot */ [0x53] = KEY_PREVIOUS, /* previous channel */ [0x15] = KEY_DIGITS, /* single, double, tripple digit */ [0x57] = KEY_MODE, /* stereo/mono */ [0x51] = KEY_TEXT, /* teletext */ All these keys work perfectly. But some keys use the same code.For example, if I press "5" on the remote, I get "1" and if I press "6", I get "2".
*** I noticed that some keys generate more than one code... I triedall ir types (RC5, PD, OTHER) without success. Does anybody have any clues about that?
Quoted 5 lines
Quoted 2 lines
Could the
mask_keycodebe wrong? Any hints?Keymask is wrong most probably. Get the right one with RegSpy application from Dscaler project in Windows.
Hi Nicholas. Thanks for the answer.
I got Regspy running and I can monitor
MO_GP2_IO. The problem
is:1) when I press key "1",
MO_GP2_IOchanges to0x883. Then if I press it again (the same key "1") it changes to0x803. And it will switch between 883 and 803 each time I press "1"2) for key "2" it alternates between
0x885and0x805
Quoted 7 lines
3) for key "3" it alternates between
0x887and0x8074) for key "4" it alternates between
0x881and0x8015) for key "5" it alternates between
0x883and0x803What exactly should I look at Regspy? Thank you!
Hm, looks strange. Probably something else is not powered properly. Did you check your initial mask and gpio? Could you just share regspy output and give us a link? Also please show use the changes you've made to add your card support.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 75 lines · On Thu, 03 Apr 2008 10:29:04 +0400 "Nickolay V. Shmyrev" <[email protected]>…
В Срд, 02/04/2008 в 18:38 -0300, Dâniel Fraga пишет:
Quoted 73 lines
Quoted 49 lines · On Wed, 02 Apr 2008 03:49:54 +0400 "Nickolay V. Shmyrev" <[email protected]>…
В Втр, 01/04/2008 в 19:00 -0300, Dâniel Fraga пишет:
Quoted 47 lines
The support for Powercolor Real Angel 330 is almost complete.
Everything works. I just need to finish the codes for remote controller.I have the following:
1)
cx88-input.cir_codes = ir_codes_powercolor_real_angel; ir->gpio_addr = MO_GP2_IO; ir->mask_keycode = 0x7f; ir->polling = 1; /* ms */2)
ir-keymaps.c:[0x03] = KEY_1, [0x05] = KEY_2, [0x07] = KEY_3, [0x11] = KEY_8, [0x13] = KEY_9, [0x71] = KEY_SWITCHVIDEOMODE, /* switch inputs */ [0x41] = KEY_UP, [0x43] = KEY_DOWN, [0x21] = KEY_RIGHT, [0x23] = KEY_LEFT, [0x25] = KEY_PAUSE, [0x27] = KEY_PLAY, [0x17] = KEY_STOP, [0x47] = KEY_FASTFORWARD, [0x45] = KEY_REWIND, [0x37] = KEY_RECORD, [0x35] = KEY_SEARCH, /* autoscan */ [0x15] = KEY_SHUFFLE, /* snapshot */ [0x53] = KEY_PREVIOUS, /* previous channel */ [0x15] = KEY_DIGITS, /* single, double, tripple digit */ [0x57] = KEY_MODE, /* stereo/mono */ [0x51] = KEY_TEXT, /* teletext */ All these keys work perfectly. But some keys use the same code.For example, if I press "5" on the remote, I get "1" and if I press "6", I get "2".
*** I noticed that some keys generate more than one code... I triedall ir types (RC5, PD, OTHER) without success. Does anybody have any clues about that?
Quoted 5 lines
Quoted 2 lines
Could the
mask_keycodebe wrong? Any hints?Keymask is wrong most probably. Get the right one with RegSpy application from Dscaler project in Windows.
Hi Nicholas. Thanks for the answer.
I got Regspy running and I can monitor
MO_GP2_IO. The problem
is:1) when I press key "1",
MO_GP2_IOchanges to0x883. Then if I press it again (the same key "1") it changes to0x803. And it will switch between 883 and 803 each time I press "1"2) for key "2" it alternates between
0x885and0x8053) for key "3" it alternates between
0x887and0x8074) for key "4" it alternates between
0x881and0x801
Quoted 9 lines
Quoted 3 lines
5) for key "5" it alternates between
0x883and0x803What exactly should I look at Regspy? Thank you!
Hm, looks strange. Probably something else is not powered properly. Did you check your initial mask and gpio? Could you just share regspy output and give us a link? Also please show use the changes you've made to add your card support.
1) how can i check the initial mask and gpio? From regspy?
2) regspy output:
http://img201.imageshack.us/my.php?image=regspyed9.gif
You can notice that MO_GP2_IO is what changes when I press a
key. But for every press, it change values according my previous message.
3) the changes already merged in the v4l-dvb tree are:
********************* cx88-cards.c ***********************
[CX88_BOARD_POWERCOLOR_REAL_ANGEL] = {
.name = "PowerColor Real Angel 330",
.tuner_type = TUNER_XC2028,
.tuner_addr = 0x61,
.input = { {
.type = CX88_VMUX_TELEVISION,
.vmux = 0,
.gpio0 = 0x0400, /* pin 2:mute = 0 (off?) */
.gpio1 = 0xf35d,
.gpio2 = 0x0800, /* pin 19:audio = 0 (tv) */
}, {
.type = CX88_VMUX_COMPOSITE1,
.vmux = 1,
.gpio0 = 0x0400, /* probably? or 0x0404 to turn mute on */ .gpio1 = 0x0000,
.gpio2 = 0x0808, /* pin 19:audio = 1 (line) */
}, {
.type = CX88_VMUX_SVIDEO,
.vmux = 2,
.gpio0 = 0x000ff,
.gpio1 = 0x0f37d,
.gpio2 = 0x00019,
.gpio3 = 0x00000,
} },
.radio = {
.type = CX88_RADIO,
.gpio0 = 0x000ff,
.gpio1 = 0x0f35d,
.gpio2 = 0x00019,
.gpio3 = 0x00000,
},
},
This need to be merged (but I need to finish the key codes first ;)******************* cx88-input.c *************************
case CX88_BOARD_POWERCOLOR_REAL_ANGEL:
ir_codes = ir_codes_powercolor_real_angel;
ir->gpio_addr = MO_GP2_IO;
ir->mask_keycode = 0x7f;
ir->polling = 1; /* ms */
break;****************** ir-keymaps.c **************************
IR_KEYTAB_TYPE ir_codes_powercolor_real_angel[IR_KEYTAB_SIZE] = {
/* Keys 0 to 9 */
[0x03] = KEY_1,
[0x05] = KEY_2,
[0x07] = KEY_3,
[0x11] = KEY_8,
[0x13] = KEY_9,
[0x71] = KEY_SWITCHVIDEOMODE, /* switch inputs */
[0x41] = KEY_UP,
[0x43] = KEY_DOWN,
[0x21] = KEY_RIGHT,
[0x23] = KEY_LEFT,
[0x25] = KEY_PAUSE,
[0x27] = KEY_PLAY,
[0x17] = KEY_STOP,
[0x47] = KEY_FASTFORWARD,
[0x45] = KEY_REWIND,
[0x37] = KEY_RECORD,
[0x35] = KEY_SEARCH, /* autoscan */
[0x15] = KEY_SHUFFLE, /* snapshot */
[0x53] = KEY_PREVIOUS, /* previous channel */
[0x15] = KEY_DIGITS, /* single, double, tripple digit */
[0x57] = KEY_MODE, /* stereo/mono */
[0x51] = KEY_TEXT, /* teletext */
};EXPORT_SYMBOL_GPL(ir_codes_powercolor_real_angel);
********************** ir-common.c *****************************
extern IR_KEYTAB_TYPE ir_codes_powercolor_real_angel[IR_KEYTAB_SIZE];
Signature · 4 lines
-- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 1 line · Dâniel Fraga
3) the changes already merged in the v4l-dvb tree are:
Those changes are wrong, especially WRT gpio2, which carries the IR signal. It's possible that I may be able to order a PSU for the box containing my RA330 today or tomorrow. After that, I may be able to port my patch to the current tree. In the meantime, download
http://www.mcentral.de/hg/~mrec/v4l-dvb-experimental/archive/tip.tar.gz
and apply my patch at: http://pastebin.com/f44a13031
Then, you can closely examine the differences between the working code and the development tree yourselves, thereby gaining a head start in porting to the active development tree over me. It's possible that you may even get everything working based on that before I even get to it.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 1 line · On Thu, 03 Apr 2008 13:14:56 -0700 Daniel Gimpelevich…
Those changes are wrong, especially WRT gpio2, which carries the IR
You're completely right ;) Now everything is ok. I'm sending a
unified patch to this list so you can review it. If it's ok, I'll ask Mauro Chehab to merge it.
Thank you very much!
Signature · 8 lines
Linux 2.6.24: Arr Matey! A Hairy Bilge Rat! http://u-br.net -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list