Return-path: Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m31NqrO5019267 for ; Tue, 1 Apr 2008 19:52:53 -0400 Received: from smtp7.yandex.ru (smtp7.yandex.ru [213.180.200.45]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id m31Nqf8Q027078 for ; Tue, 1 Apr 2008 19:52:41 -0400 Received: from ppp83-237-254-81.pppoe.mtu-net.ru ([83.237.254.81]:55219 "EHLO [192.168.1.5]" smtp-auth: "nshmyrev" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S737382AbYDAXw1 (ORCPT ); Wed, 2 Apr 2008 03:52:27 +0400 From: "Nickolay V. Shmyrev" To: =?ISO-8859-1?Q?D=E2niel?= Fraga In-Reply-To: <20080401190033.68c821ed@tux.abusar.org.br> References: <20080401190033.68c821ed@tux.abusar.org.br> Date: Wed, 02 Apr 2008 03:49:54 +0400 Message-Id: <1207093795.16537.4.camel@localhost.localdomain> Mime-Version: 1.0 Cc: video4linux-list@redhat.com Subject: Re: Remote controller for Powercolor Real Angel 330 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0738076300==" Sender: video4linux-list-bounces@redhat.com Errors-To: video4linux-list-bounces@redhat.com List-ID: --===============0738076300== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-FLP9Cc0JAvnfVyGaMAkk" --=-FLP9Cc0JAvnfVyGaMAkk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =D0=92 =D0=92=D1=82=D1=80, 01/04/2008 =D0=B2 19:00 -0300, D=C3=A2niel Fraga= =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > The support for Powercolor Real Angel 330 is almost complete. > Everything works. I just need to finish the codes for remote controller. >=20 > I have the following: >=20 > 1) cx88-input.c >=20 > ir_codes =3D ir_codes_powercolor_real_angel; > ir->gpio_addr =3D MO_GP2_IO; > ir->mask_keycode =3D 0x7f; > ir->polling =3D 1; /* ms */ >=20 > 2) ir-keymaps.c: >=20 > [0x03] =3D KEY_1, > [0x05] =3D KEY_2, > [0x07] =3D KEY_3, > [0x11] =3D KEY_8, > [0x13] =3D KEY_9, > [0x71] =3D KEY_SWITCHVIDEOMODE, /* switch inputs */ > [0x41] =3D KEY_UP, > [0x43] =3D KEY_DOWN, > [0x21] =3D KEY_RIGHT, > [0x23] =3D KEY_LEFT, > [0x25] =3D KEY_PAUSE, > [0x27] =3D KEY_PLAY, > [0x17] =3D KEY_STOP, > [0x47] =3D KEY_FASTFORWARD, > [0x45] =3D KEY_REWIND, > [0x37] =3D KEY_RECORD, > [0x35] =3D KEY_SEARCH, /* autoscan */ > [0x15] =3D KEY_SHUFFLE, /* snapshot */ > [0x53] =3D KEY_PREVIOUS, /* previous channel */ > [0x15] =3D KEY_DIGITS, /* single, double, tripple digi= t */=20 > [0x57] =3D KEY_MODE, /* stereo/mono */=20 > [0x51] =3D KEY_TEXT, /* teletext */ =20 >=20 > 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". >=20 > *** >=20 > 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? >=20 > Could the mask_keycode be wrong? Any hints? >=20 Keymask is wrong most probably. Get the right one with RegSpy application from Dscaler project in Windows. --=-FLP9Cc0JAvnfVyGaMAkk Content-Type: application/pgp-signature; name=signature.asc Content-Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBH8soiLCDh4YwOt9kRAm5aAKCLJImOR0MeSBxuItf5aDLHLWEIQQCffwmb VESZmoQoyrm3u97j7JMLoqM= =1iBn -----END PGP SIGNATURE----- --=-FLP9Cc0JAvnfVyGaMAkk-- --===============0738076300== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list --===============0738076300==--