Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71b6d05d authored by Sean Young's avatar Sean Young Committed by Greg Kroah-Hartman
Browse files

media: igorplugusb: receiver overflow should be reported



[ Upstream commit 8fede658e7ddb605bbd68ed38067ddb0af033db4 ]

Without this, some IR will be missing mid-stream and we might decode
something which never really occurred.

Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1af9e1d4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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] * 85333;