diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2018-10-16 09:44:20 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 11:54:22 +0100 |
commit | 7f02ac77c768ba2bcdd0ce719c1fca0870ffe2fb (patch) | |
tree | 778bd1a75d1d9f5e5632174e6e6ff5af69e252f0 /drivers/media | |
parent | media: adv7604: add CEC support for adv7611/adv7612 (diff) | |
download | linux-7f02ac77c768ba2bcdd0ce719c1fca0870ffe2fb.tar.xz linux-7f02ac77c768ba2bcdd0ce719c1fca0870ffe2fb.zip |
media: cec: report Vendor ID after initialization
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/media/cec/cec-adap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/cec/cec-adap.c b/drivers/media/cec/cec-adap.c index 65a933a21e68..5b7fe4796022 100644 --- a/drivers/media/cec/cec-adap.c +++ b/drivers/media/cec/cec-adap.c @@ -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); |