diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2016-07-15 11:13:49 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-15 13:20:48 -0300 |
commit | 9a3f14ea802fd0d8848d8e16566b769e4ce09d68 (patch) | |
tree | 5355525a1ae5aa43028b4c1b8abe37d7d17b99f5 /drivers/staging | |
parent | 693596c3ace1f5fe68055b2bd75848cd8a2d07db (diff) |
[media] cec: set timestamp for selfie transmits
Attempts to send CEC messages to yourself are detected in the framework and
returned with a NACK error. However, the tx_ts was never filled in that case.
So just set it.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/cec/cec-adap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/media/cec/cec-adap.c b/drivers/staging/media/cec/cec-adap.c index 07147a1d2b6b..4d86a6c9258f 100644 --- a/drivers/staging/media/cec/cec-adap.c +++ b/drivers/staging/media/cec/cec-adap.c @@ -603,6 +603,7 @@ int cec_transmit_msg_fh(struct cec_adapter *adap, struct cec_msg *msg, * easy to handle it here so the behavior will be * consistent. */ + msg->tx_ts = ktime_get_ns(); msg->tx_status = CEC_TX_STATUS_NACK | CEC_TX_STATUS_MAX_RETRIES; msg->tx_nack_cnt = 1; |