[media] dw2102: Use multimedia keys instead of an app-specific mapping

This driver uses an app-specific keymap for one of the tables. This
is wrong. Instead, use the standard keycodes.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2011-01-24 12:18:40 -03:00
parent 04efa85e03
commit 991bd3c25e
1 changed files with 20 additions and 20 deletions

View File

@ -1224,8 +1224,8 @@ static int dw3101_tuner_attach(struct dvb_usb_adapter *adap)
}
static struct rc_map_table rc_map_dw210x_table[] = {
{ 0xf80a, KEY_Q }, /*power*/
{ 0xf80c, KEY_M }, /*mute*/
{ 0xf80a, KEY_POWER2 }, /*power*/
{ 0xf80c, KEY_MUTE }, /*mute*/
{ 0xf811, KEY_1 },
{ 0xf812, KEY_2 },
{ 0xf813, KEY_3 },
@ -1236,25 +1236,25 @@ static struct rc_map_table rc_map_dw210x_table[] = {
{ 0xf818, KEY_8 },
{ 0xf819, KEY_9 },
{ 0xf810, KEY_0 },
{ 0xf81c, KEY_PAGEUP }, /*ch+*/
{ 0xf80f, KEY_PAGEDOWN }, /*ch-*/
{ 0xf81a, KEY_O }, /*vol+*/
{ 0xf80e, KEY_Z }, /*vol-*/
{ 0xf804, KEY_R }, /*rec*/
{ 0xf809, KEY_D }, /*fav*/
{ 0xf808, KEY_BACKSPACE }, /*rewind*/
{ 0xf807, KEY_A }, /*fast*/
{ 0xf80b, KEY_P }, /*pause*/
{ 0xf802, KEY_ESC }, /*cancel*/
{ 0xf803, KEY_G }, /*tab*/
{ 0xf81c, KEY_CHANNELUP }, /*ch+*/
{ 0xf80f, KEY_CHANNELDOWN }, /*ch-*/
{ 0xf81a, KEY_VOLUMEUP }, /*vol+*/
{ 0xf80e, KEY_VOLUMEDOWN }, /*vol-*/
{ 0xf804, KEY_RECORD }, /*rec*/
{ 0xf809, KEY_FAVORITES }, /*fav*/
{ 0xf808, KEY_REWIND }, /*rewind*/
{ 0xf807, KEY_FASTFORWARD }, /*fast*/
{ 0xf80b, KEY_PAUSE }, /*pause*/
{ 0xf802, KEY_ESC }, /*cancel*/
{ 0xf803, KEY_TAB }, /*tab*/
{ 0xf800, KEY_UP }, /*up*/
{ 0xf81f, KEY_ENTER }, /*ok*/
{ 0xf801, KEY_DOWN }, /*down*/
{ 0xf805, KEY_C }, /*cap*/
{ 0xf806, KEY_S }, /*stop*/
{ 0xf840, KEY_F }, /*full*/
{ 0xf81e, KEY_W }, /*tvmode*/
{ 0xf81b, KEY_B }, /*recall*/
{ 0xf81f, KEY_OK }, /*ok*/
{ 0xf801, KEY_DOWN }, /*down*/
{ 0xf805, KEY_CAMERA }, /*cap*/
{ 0xf806, KEY_STOP }, /*stop*/
{ 0xf840, KEY_ZOOM }, /*full*/
{ 0xf81e, KEY_TV }, /*tvmode*/
{ 0xf81b, KEY_LAST }, /*recall*/
};
static struct rc_map_table rc_map_tevii_table[] = {