[media] cec: ignore messages that we initiated
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 21 Nov 2016 15:15:45 +0000 (13:15 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 07:43:07 +0000 (05:43 -0200)
commit3f98da9636029486b86eb63f0b57b91dcbd880b0
treeae45d8ad944a54e94dd8fd1990c120f8e81fd56d
parent7febb418a32a2caaef57bca91df41c658406670d
[media] cec: ignore messages that we initiated

Some CEC adapters will receive messages that they initiated. Add a
check that will ignore such messages.

Most hardware behaves correctly in this respect, but I have seen
adapters that don't, so just filter this out in the framework.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-adap.c