Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: IR remote control for AVerMedia TD310

Uses NEC defaults as other non-eeprom devices.

Link: https://lore.kernel.org/linux-media/2273969.FyfRTN5kjP@bootes
Signed-off-by: Alex Volkov <alex@bootes.sytes.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Alex Volkov and committed by
Mauro Carvalho Chehab
9789ea6a 6c688cf3

+9 -1
+9 -1
drivers/media/usb/dvb-usb-v2/af9035.c
··· 868 868 if ((le16_to_cpu(d->udev->descriptor.idVendor) == USB_VID_AVERMEDIA) && 869 869 (le16_to_cpu(d->udev->descriptor.idProduct) == USB_PID_AVERMEDIA_TD310)) { 870 870 state->it930x_addresses = 1; 871 + /* TD310 RC works with NEC defaults */ 872 + state->ir_mode = 0x05; 873 + state->ir_type = 0x00; 871 874 } 872 875 return 0; 873 876 } ··· 2069 2066 .tuner_attach = it930x_tuner_attach, 2070 2067 .tuner_detach = it930x_tuner_detach, 2071 2068 .init = it930x_init, 2069 + /* 2070 + * dvb_usbv2_remote_init() calls rc_config() only for those devices 2071 + * which have non-empty rc_map, so it's safe to enable it for every IT930x 2072 + */ 2073 + .get_rc_config = af9035_get_rc_config, 2072 2074 .get_stream_config = af9035_get_stream_config, 2073 2075 2074 2076 .get_adapter_count = af9035_get_adapter_count, ··· 2165 2157 { DVB_USB_DEVICE(USB_VID_ITETECH, USB_PID_ITETECH_IT9303, 2166 2158 &it930x_props, "ITE 9303 Generic", NULL) }, 2167 2159 { DVB_USB_DEVICE(USB_VID_AVERMEDIA, USB_PID_AVERMEDIA_TD310, 2168 - &it930x_props, "AVerMedia TD310 DVB-T2", NULL) }, 2160 + &it930x_props, "AVerMedia TD310 DVB-T2", RC_MAP_AVERMEDIA_RM_KS) }, 2169 2161 { DVB_USB_DEVICE(USB_VID_DEXATEK, 0x0100, 2170 2162 &it930x_props, "Logilink VG0022A", NULL) }, 2171 2163 { DVB_USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_TC2_STICK,