diff options
author | Antti Palosaari <crope@iki.fi> | 2009-09-21 19:52:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:06 -0500 |
commit | e1a7ff84a4c26893ffca19c1c35d008caa89bfde (patch) | |
tree | 2bd6ccb3d8b13b9184dd0726af8ea534498c6ef3 /drivers/media/dvb/dvb-usb | |
parent | 641342dde7f9cbfcc6b9f6c890c90f99edcae6ca (diff) |
V4L/DVB (13057): af9015: add MSI DIGIVOX mini III remote
Support for MSI DIGIVOX mini III remote.
Thanks to Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
Thanks to Roman <lists@hasnoname.de>
Cc: Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
Cc: Roman <lists@hasnoname.de>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/af9015.c | 10 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/af9015.h | 71 |
2 files changed, 81 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index 7a885264e86b..5c898b07ae1e 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c | |||
@@ -868,6 +868,16 @@ static int af9015_read_config(struct usb_device *udev) | |||
868 | af9015_config.ir_table_size = | 868 | af9015_config.ir_table_size = |
869 | ARRAY_SIZE(af9015_ir_table_avermedia); | 869 | ARRAY_SIZE(af9015_ir_table_avermedia); |
870 | break; | 870 | break; |
871 | case USB_VID_MSI_2: | ||
872 | af9015_properties[i].rc_key_map = | ||
873 | af9015_rc_keys_msi_digivox_iii; | ||
874 | af9015_properties[i].rc_key_map_size = | ||
875 | ARRAY_SIZE(af9015_rc_keys_msi_digivox_iii); | ||
876 | af9015_config.ir_table = | ||
877 | af9015_ir_table_msi_digivox_iii; | ||
878 | af9015_config.ir_table_size = | ||
879 | ARRAY_SIZE(af9015_ir_table_msi_digivox_iii); | ||
880 | break; | ||
871 | } | 881 | } |
872 | } | 882 | } |
873 | } | 883 | } |
diff --git a/drivers/media/dvb/dvb-usb/af9015.h b/drivers/media/dvb/dvb-usb/af9015.h index c1e2b7d1d412..e237c4a0702d 100644 --- a/drivers/media/dvb/dvb-usb/af9015.h +++ b/drivers/media/dvb/dvb-usb/af9015.h | |||
@@ -779,4 +779,75 @@ static u8 af9015_ir_table_trekstor[] = { | |||
779 | 0x00, 0xff, 0x84, 0x7b, 0x27, 0x07, 0x00, | 779 | 0x00, 0xff, 0x84, 0x7b, 0x27, 0x07, 0x00, |
780 | }; | 780 | }; |
781 | 781 | ||
782 | /* MSI DIGIVOX mini III */ | ||
783 | static struct dvb_usb_rc_key af9015_rc_keys_msi_digivox_iii[] = { | ||
784 | { 0x0713, KEY_POWER }, /* [red power button] */ | ||
785 | { 0x073b, KEY_VIDEO }, /* Source */ | ||
786 | { 0x073e, KEY_ZOOM }, /* Zoom */ | ||
787 | { 0x070b, KEY_POWER2 }, /* ShutDown */ | ||
788 | { 0x071e, KEY_1 }, | ||
789 | { 0x071f, KEY_2 }, | ||
790 | { 0x0720, KEY_3 }, | ||
791 | { 0x0721, KEY_4 }, | ||
792 | { 0x0722, KEY_5 }, | ||
793 | { 0x0723, KEY_6 }, | ||
794 | { 0x0724, KEY_7 }, | ||
795 | { 0x0725, KEY_8 }, | ||
796 | { 0x0726, KEY_9 }, | ||
797 | { 0x0727, KEY_0 }, | ||
798 | { 0x0752, KEY_CHANNELUP }, /* CH+ */ | ||
799 | { 0x0751, KEY_CHANNELDOWN }, /* CH- */ | ||
800 | { 0x0750, KEY_VOLUMEUP }, /* Vol+ */ | ||
801 | { 0x074f, KEY_VOLUMEDOWN }, /* Vol- */ | ||
802 | { 0x0705, KEY_ESC }, /* [back up arrow] */ | ||
803 | { 0x0708, KEY_OK }, /* [enter arrow] */ | ||
804 | { 0x073f, KEY_RECORD }, /* Rec */ | ||
805 | { 0x0716, KEY_STOP }, /* Stop */ | ||
806 | { 0x072a, KEY_PLAY }, /* Play */ | ||
807 | { 0x073c, KEY_MUTE }, /* Mute */ | ||
808 | { 0x0718, KEY_UP }, | ||
809 | { 0x0707, KEY_DOWN }, | ||
810 | { 0x070f, KEY_LEFT }, | ||
811 | { 0x0715, KEY_RIGHT }, | ||
812 | { 0x0736, KEY_RED }, | ||
813 | { 0x0737, KEY_GREEN }, | ||
814 | { 0x072d, KEY_YELLOW }, | ||
815 | { 0x072e, KEY_BLUE }, | ||
816 | }; | ||
817 | |||
818 | static u8 af9015_ir_table_msi_digivox_iii[] = { | ||
819 | 0x61, 0xd6, 0x43, 0xbc, 0x13, 0x07, 0x00, /* KEY_POWER */ | ||
820 | 0x61, 0xd6, 0x01, 0xfe, 0x3b, 0x07, 0x00, /* KEY_VIDEO */ | ||
821 | 0x61, 0xd6, 0x0b, 0xf4, 0x3e, 0x07, 0x00, /* KEY_ZOOM */ | ||
822 | 0x61, 0xd6, 0x03, 0xfc, 0x0b, 0x07, 0x00, /* KEY_POWER2 */ | ||
823 | 0x61, 0xd6, 0x04, 0xfb, 0x1e, 0x07, 0x00, /* KEY_1 */ | ||
824 | 0x61, 0xd6, 0x08, 0xf7, 0x1f, 0x07, 0x00, /* KEY_2 */ | ||
825 | 0x61, 0xd6, 0x02, 0xfd, 0x20, 0x07, 0x00, /* KEY_3 */ | ||
826 | 0x61, 0xd6, 0x0f, 0xf0, 0x21, 0x07, 0x00, /* KEY_4 */ | ||
827 | 0x61, 0xd6, 0x05, 0xfa, 0x22, 0x07, 0x00, /* KEY_5 */ | ||
828 | 0x61, 0xd6, 0x06, 0xf9, 0x23, 0x07, 0x00, /* KEY_6 */ | ||
829 | 0x61, 0xd6, 0x0c, 0xf3, 0x24, 0x07, 0x00, /* KEY_7 */ | ||
830 | 0x61, 0xd6, 0x0d, 0xf2, 0x25, 0x07, 0x00, /* KEY_8 */ | ||
831 | 0x61, 0xd6, 0x0a, 0xf5, 0x26, 0x07, 0x00, /* KEY_9 */ | ||
832 | 0x61, 0xd6, 0x11, 0xee, 0x27, 0x07, 0x00, /* KEY_0 */ | ||
833 | 0x61, 0xd6, 0x09, 0xf6, 0x52, 0x07, 0x00, /* KEY_CHANNELUP */ | ||
834 | 0x61, 0xd6, 0x07, 0xf8, 0x51, 0x07, 0x00, /* KEY_CHANNELDOWN */ | ||
835 | 0x61, 0xd6, 0x0e, 0xf1, 0x50, 0x07, 0x00, /* KEY_VOLUMEUP */ | ||
836 | 0x61, 0xd6, 0x13, 0xec, 0x4f, 0x07, 0x00, /* KEY_VOLUMEDOWN */ | ||
837 | 0x61, 0xd6, 0x10, 0xef, 0x05, 0x07, 0x00, /* KEY_ESC */ | ||
838 | 0x61, 0xd6, 0x12, 0xed, 0x08, 0x07, 0x00, /* KEY_OK */ | ||
839 | 0x61, 0xd6, 0x14, 0xeb, 0x3f, 0x07, 0x00, /* KEY_RECORD */ | ||
840 | 0x61, 0xd6, 0x15, 0xea, 0x16, 0x07, 0x00, /* KEY_STOP */ | ||
841 | 0x61, 0xd6, 0x16, 0xe9, 0x2a, 0x07, 0x00, /* KEY_PLAY */ | ||
842 | 0x61, 0xd6, 0x17, 0xe8, 0x3c, 0x07, 0x00, /* KEY_MUTE */ | ||
843 | 0x61, 0xd6, 0x18, 0xe7, 0x18, 0x07, 0x00, /* KEY_UP */ | ||
844 | 0x61, 0xd6, 0x19, 0xe6, 0x07, 0x07, 0x00, /* KEY_DOWN */ | ||
845 | 0x61, 0xd6, 0x1a, 0xe5, 0x0f, 0x07, 0x00, /* KEY_LEFT */ | ||
846 | 0x61, 0xd6, 0x1b, 0xe4, 0x15, 0x07, 0x00, /* KEY_RIGHT */ | ||
847 | 0x61, 0xd6, 0x1c, 0xe3, 0x36, 0x07, 0x00, /* KEY_RED */ | ||
848 | 0x61, 0xd6, 0x1d, 0xe2, 0x37, 0x07, 0x00, /* KEY_GREEN */ | ||
849 | 0x61, 0xd6, 0x1e, 0xe1, 0x2d, 0x07, 0x00, /* KEY_YELLOW */ | ||
850 | 0x61, 0xd6, 0x1f, 0xe0, 0x2e, 0x07, 0x00, /* KEY_BLUE */ | ||
851 | }; | ||
852 | |||
782 | #endif | 853 | #endif |