media: streamzap: ensure rx resolution can be retrieved
authorSean Young <sean@mess.org>
Tue, 3 Aug 2021 09:19:54 +0000 (11:19 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:40 +0000 (10:07 +0200)
The receiver resolution is not populated. The resolution can be used to for
various purposes like calculating the margins the decoder should use.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/streamzap.c

index 9cd765e..1cc5ebb 100644 (file)
@@ -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) {