aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-03-31 10:10:03 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-03-31 10:10:03 +0200
commitd25ba1c83ff85719b9974695f98b5dec4079d4d1 (patch)
treede76b88db1768e0a6f0843409df2ae84942fd415
parent2bf6cb0a8515883261199eac1e39a6fcdebffbda (diff)
extron-cec: the extron already repeats failed messagesextron
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--drivers/media/cec/usb/extron/extron-cec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/cec/usb/extron/extron-cec.c b/drivers/media/cec/usb/extron/extron-cec.c
index 340f04687442..4c2dcc1bde25 100644
--- a/drivers/media/cec/usb/extron/extron-cec.c
+++ b/drivers/media/cec/usb/extron/extron-cec.c
@@ -243,7 +243,7 @@ static void extron_irq_work_handler(struct work_struct *work)
spin_unlock_irqrestore(&port->msg_lock, flags);
if (status)
- cec_transmit_attempt_done(port->adap, status);
+ cec_transmit_done(port->adap, status, 0, 0, 0, 0);
if (update_has_signal && port->is_input)
v4l2_ctrl_s_ctrl(port->ctrl_rx_power_present, has_signal);
@@ -365,13 +365,13 @@ static void extron_process_tx_done(struct extron_port *port, char status)
switch (status) {
case '0':
- tx_status = CEC_TX_STATUS_NACK;
+ tx_status = CEC_TX_STATUS_NACK | CEC_TX_STATUS_MAX_RETRIES;
break;
case '1':
tx_status = CEC_TX_STATUS_OK;
break;
default:
- tx_status = CEC_TX_STATUS_ERROR;
+ tx_status = CEC_TX_STATUS_ERROR | CEC_TX_STATUS_MAX_RETRIES;
break;
}
spin_lock_irqsave(&port->msg_lock, irq_flags);

Privacy Policy