[media] rc: split nec protocol into its three variants
Currently we do not know what variant (bit length) of the nec protocol is used, other than from guessing from the length of the scancode. Now nec will be handled the same way as the sony protocol or the rc6 protocol; one variant per bit length. In the future we might want to expose the rc protocol type to userspace and we don't want to be introducing this world of pain into userspace too. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
00bb820755
commit
2ceeca0499
@@ -357,7 +357,8 @@ static void lme2510_int_response(struct urb *lme_urb)
|
||||
ibuf[5]);
|
||||
|
||||
deb_info(1, "INT Key = 0x%08x", key);
|
||||
rc_keydown(adap_to_d(adap)->rc_dev, RC_TYPE_NEC, key, 0);
|
||||
rc_keydown(adap_to_d(adap)->rc_dev, RC_TYPE_NEC32, key,
|
||||
0);
|
||||
break;
|
||||
case 0xbb:
|
||||
switch (st->tuner_config) {
|
||||
@@ -1242,7 +1243,7 @@ static int lme2510_get_stream_config(struct dvb_frontend *fe, u8 *ts_type,
|
||||
static int lme2510_get_rc_config(struct dvb_usb_device *d,
|
||||
struct dvb_usb_rc *rc)
|
||||
{
|
||||
rc->allowed_protos = RC_BIT_NEC;
|
||||
rc->allowed_protos = RC_BIT_NEC32;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user