media: igorplugusb: receiver overflow should be reported
[ Upstream commit 8fede658e7
]
Without this, some IR will be missing mid-stream and we might decode
something which never really occurred.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Родитель
26d516434d
Коммит
87d0b81702
|
@ -64,9 +64,11 @@ static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len)
|
||||||
if (start >= len) {
|
if (start >= len) {
|
||||||
dev_err(ir->dev, "receive overflow invalid: %u", overflow);
|
dev_err(ir->dev, "receive overflow invalid: %u", overflow);
|
||||||
} else {
|
} else {
|
||||||
if (overflow > 0)
|
if (overflow > 0) {
|
||||||
dev_warn(ir->dev, "receive overflow, at least %u lost",
|
dev_warn(ir->dev, "receive overflow, at least %u lost",
|
||||||
overflow);
|
overflow);
|
||||||
|
ir_raw_event_reset(ir->rc);
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
rawir.duration = ir->buf_in[i] * 85;
|
rawir.duration = ir->buf_in[i] * 85;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче