提交 991bd3c2 编写于 作者: M Mauro Carvalho Chehab

[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: NMauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: NJarod Wilson <jarod@redhat.com>
上级 04efa85e
......@@ -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[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册