Skip to contentSkip to conversation

media: mceusb: ensure rx resolution can be retrieved

PATCH New Sean Young 1 participant 2 messages Aug 3, 2021

Subsystems (2)
lore
Share & tools
lore

Sean Young

author maintainer
#0 lore raw

PATCH 1/2 media: mceusb: ensure rx resolution can be retrieved

The receiver resolution is not populated. The resolution can be used to for various purposes like calculating the margins the decoder should use.

---
 drivers/media/rc/mceusb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/rc/mceusb.c +1 -0
index e03dd1f0144f..28bf78ff246a 100644
@@ -1612,6 +1612,7 @@ static struct rc_dev *mceusb_init_rc_dev(struct mceusb_dev *ir)
 	rc->dev.parent = dev;
 	rc->priv = ir;
 	rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
+	rc->rx_resolution = MCE_TIME_UNIT;
 	rc->min_timeout = MCE_TIME_UNIT;
 	rc->timeout = MS_TO_US(100);
 	if (!mceusb_model[ir->model].broken_irtimeout) {
Signature · 1 line
2.31.1
author maintainer
#1 lore raw

PATCH 2/2 media: streamzap: ensure rx resolution can be retrieved

The receiver resolution is not populated. The resolution can be used to for various purposes like calculating the margins the decoder should use.

---
 drivers/media/rc/streamzap.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/rc/streamzap.c +1 -0
index 9cd765e31c49..1cc5ebb85b6c 100644
@@ -293,6 +293,7 @@ static struct rc_dev *streamzap_init_rc_dev(struct streamzap_ir *sz)
 	rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
 	rdev->driver_name = DRIVER_NAME;
 	rdev->map_name = RC_MAP_STREAMZAP;
+	rdev->rx_resolution = SZ_RESOLUTION;
 
 	ret = rc_register_device(rdev);
 	if (ret < 0) {
Signature · 1 line
2.31.1