OSDN Git Service

media: ir_toy: deal with residual irdata before expected response
authorSean Young <sean@mess.org>
Wed, 8 Sep 2021 13:05:52 +0000 (15:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:08:01 +0000 (10:08 +0200)
commit1d37c85425122cdb56f6448286cc41419a34d621
treebc820ad1e1f6a7ca6f306c9afbfba4e952831dc9
parent5173cca012b018e2acf5da3f928807618e367dae
media: ir_toy: deal with residual irdata before expected response

After sending the start transmit command, the device is supposed to
respond with the length of the buffer which can be sent. There might
be some residual ir data there.

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