]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] cec: improve cec_transmit_msg_fh logging
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 27 Feb 2017 13:54:09 +0000 (10:54 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 14:14:45 +0000 (11:14 -0300)
commit25c2107896c5094318f04af8f975266e57d15528
treea01d995bf32868b71a0707bad5532ea42a055e3a
parent5a137df1d6570de438ce12f33d6b4308b5e965fb
[media] cec: improve cec_transmit_msg_fh logging

Several error paths didn't log why an error was returned. Add this.

Also handle the corner case of "adapter is unconfigured AND the message
is from Unregistered to TV AND reply is non-zero" separately and return
EINVAL in that case, since it really is an invalid value and not an
unconfigured CEC device.

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
drivers/media/cec/cec-api.c