OSDN Git Service

media: cec: report Vendor ID after initialization
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 16 Oct 2018 07:44:20 +0000 (03:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:51:38 +0000 (08:51 +0100)
[ Upstream commit 7f02ac77c768ba2bcdd0ce719c1fca0870ffe2fb ]

The CEC specification requires that the Vendor ID (if any) is reported
after a logical address was claimed.

This was never done, so add support for this.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/cec/cec-adap.c

index 4a15d53..dd6f3e6 100644 (file)
@@ -1437,6 +1437,13 @@ configured:
                        las->log_addr[i],
                        cec_phys_addr_exp(adap->phys_addr));
                cec_transmit_msg_fh(adap, &msg, NULL, false);
+
+               /* Report Vendor ID */
+               if (adap->log_addrs.vendor_id != CEC_VENDOR_ID_NONE) {
+                       cec_msg_device_vendor_id(&msg,
+                                                adap->log_addrs.vendor_id);
+                       cec_transmit_msg_fh(adap, &msg, NULL, false);
+               }
        }
        adap->kthread_config = NULL;
        complete(&adap->config_completion);