]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
media: cec: report Vendor ID after initialization
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 16 Oct 2018 07:44:20 +0000 (03:44 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 10:54:22 +0000 (05:54 -0500)
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>
drivers/media/cec/cec-adap.c

index 65a933a21e685b9c97fadc7662e34ad31c088798..5b7fe47960229e93ed47e1830f68125b1ec3c345 100644 (file)
@@ -1432,6 +1432,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);