media: igorplugusb: receiver overflow should be reported
Subsystems (3)
Sean Young
maintainerPATCH 1/1 media: igorplugusb: receiver overflow should be reported
Without this, some IR will be missing mid-stream and we might decode something which never really occurred.
Signed-off-by Sean Young <[email protected]>
--- drivers/media/rc/igorplugusb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/media/rc/igorplugusb.c +3 -1
@@ -64,9 +64,11 @@ static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len)if (start >= len) {dev_err (ir->dev,"receive overflow invalid: %u" , overflow); }else { -if (overflow >0 ) +if (overflow >0 ) {dev_warn (ir->dev,"receive overflow, at least %u lost" , overflow); +ir_raw_event_reset (ir->rc); + } do { rawir.duration = ir->buf_in[i] * 85;
Signature · 1 line
2.33.1