summaryrefslogtreecommitdiff
path: root/include/media/cec.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2017-07-06 17:09:52 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-18 18:37:21 +0300
commit15e809e961bad6c31f995100bf5e3c3f860b1b2c (patch)
treead97a2c0c8b4874856aa2ae1ab1085d94f545760 /include/media/cec.h
parent299708e45e75500ba40b615896806c2f0877170f (diff)
downloadlinux-15e809e961bad6c31f995100bf5e3c3f860b1b2c.tar.xz
media: cec: only increase the seqnr if CEC_TRANSMIT would return 0
The transmit code would increase the sequence number first thing, even though CEC_TRANSMIT would return an error due to a malformatted cec_msg struct later on. While valid behavior, this had the disadvantage of producing holes in the sequence list that made debugging harder. Only increase the sequence number when the whole message is validated. When debugging (i.e. with cec-ctl -M) the sequence numbering is now nicely increasing by 1 per message. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media/cec.h')
0 files changed, 0 insertions, 0 deletions