drm/cec: Add Source Physical address decode to drm_display_info
Subsystems (2)
PATCH 1/1 drm/cec: Add Source Physical address decode to drm_display_info
From: Clint Taylor <[email protected]>
During VSDB decode bytes 4 and 5 contain the source physical address for use the HDMI CEC. Make this data available as part of drm_display_info.
--- drivers/gpu/drm/drm_edid.c | 10 ++++++++++ include/drm/drm_connector.h | 16 ++++++++++++++++ 2 files changed, 26 insertions(+)
drivers/gpu/drm/drm_edid.c +10 -0
@@ -3938,6 +3938,16 @@ static void drm_parse_hdmi_deep_color_info(struct drm_connector *connector,struct drm_display_info *info = &connector->display_info;u8 len =cea_db_payload_len (db); +if (len >=4 ) { + info->src_phy_addr.a = (db[4 ] &0xF0 ) >>4 ; + info->src_phy_addr.b = db[4 ] &0x0F ; + info->src_phy_addr.c = (db[5 ] &0xF0 ) >>4 ; + info->src_phy_addr.d = db[5 ] &0x0F ; + +DRM_DEBUG_KMS ("HDMI SPA = %01x.%01x.%01x.%01x\n" , + info->src_phy_addr.a, info->src_phy_addr.b, + info->src_phy_addr.c, info->src_phy_addr.d); + }if (len >=6 ) info->dvi_dual = db[6 ] &1 ;if (len >=7 )
include/drm/drm_connector.h +16 -0
@@ -127,6 +127,17 @@ struct drm_scdc {struct drm_scrambling scrambling; }; +/** +* struct drm_hdmi_cec_spa +* +* Provides the Source Physical address from an HDMI VSDB EDID +*/ +struct drm_hdmi_cec_spa { +u8 a; +u8 b; +u8 c; +u8 d; +};/** * struct drm_hdmi_info - runtime information about the connected HDMI sink
@@ -263,6 +274,11 @@ struct drm_display_info {* @hdmi: advance features of a HDMI sink. */ struct drm_hdmi_info hdmi; + +/** +* @src_phy_addr: HDMI CEC Source Physical Address +*/ +struct drm_hdmi_cec_spa src_phy_addr; }; int drm_display_info_set_bus_formats(struct drm_display_info *info,
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
kbuild test robot
build botAll warnings (new ones prefixed by >>):
Hi Clint,
[auto build test WARNING on drm/drm-next]
[also build test WARNING on v4.12-rc1 next-20170515]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/clinton-a-taylor-intel-com/drm-cec-Add-Source-Physical-address-decode-to-drm_display_info/20170516-063234 base: git://people.freedesktop.org/~airlied/linux.git drm-next reproduce: make htmldocs
All warnings (new ones prefixed by >>):
WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick (https://www.imagemagick.org)
arch/x86/include/asm/uaccess_32.h:1: warning: no structured comments found
include/linux/init.h:1: warning: no structured comments found
include/linux/mod_devicetable.h:686: warning: Excess struct/union/enum/typedef member 'ver_major' description in 'fsl_mc_device_id' include/linux/mod_devicetable.h:686: warning: Excess struct/union/enum/typedef member 'ver_minor' description in 'fsl_mc_device_id' kernel/sched/core.c:2088: warning: No description found for parameter 'rf'
kernel/sched/core.c:2088: warning: Excess function parameter 'cookie' description in 'try_to_wake_up_local' include/linux/kthread.h:26: warning: Excess function parameter '...' description in 'kthread_create' kernel/sys.c:1: warning: no structured comments found
include/linux/device.h:969: warning: No description found for parameter 'dma_ops' drivers/dma-buf/seqno-fence.c:1: warning: no structured comments found
include/linux/iio/iio.h:597: warning: No description found for parameter 'trig_readonly' include/linux/iio/trigger.h:151: warning: No description found for parameter 'indio_dev' include/linux/iio/trigger.h:151: warning: No description found for parameter 'trig' include/linux/device.h:970: warning: No description found for parameter 'dma_ops' include/linux/usb/gadget.h:230: warning: No description found for parameter 'claimed' include/linux/usb/gadget.h:230: warning: No description found for parameter 'enabled' include/linux/usb/gadget.h:408: warning: No description found for parameter 'quirk_altset_not_supp' include/linux/usb/gadget.h:408: warning: No description found for parameter 'quirk_stall_not_supp' include/linux/usb/gadget.h:408: warning: No description found for parameter 'quirk_zlp_not_supp' include/drm/drm_drv.h:524: warning: No description found for parameter 'set_busid'
include/drm/drm_drv.h:524: warning: No description found for parameter 'irq_handler' include/drm/drm_drv.h:524: warning: No description found for parameter 'irq_preinstall' include/drm/drm_drv.h:524: warning: No description found for parameter 'irq_postinstall' include/drm/drm_drv.h:524: warning: No description found for parameter 'irq_uninstall' include/drm/drm_drv.h:524: warning: No description found for parameter 'debugfs_init' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_open_object' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_close_object' include/drm/drm_drv.h:524: warning: No description found for parameter 'prime_handle_to_fd' include/drm/drm_drv.h:524: warning: No description found for parameter 'prime_fd_to_handle' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_export' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_import' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_pin' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_unpin' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_res_obj' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_get_sg_table' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_import_sg_table' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_vmap' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_vunmap' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_prime_mmap' include/drm/drm_drv.h:524: warning: No description found for parameter 'gem_vm_ops' include/drm/drm_drv.h:524: warning: No description found for parameter 'major'
include/drm/drm_drv.h:524: warning: No description found for parameter 'minor'
include/drm/drm_drv.h:524: warning: No description found for parameter 'patchlevel' include/drm/drm_drv.h:524: warning: No description found for parameter 'name'
include/drm/drm_drv.h:524: warning: No description found for parameter 'desc'
include/drm/drm_drv.h:524: warning: No description found for parameter 'date'
include/drm/drm_drv.h:524: warning: No description found for parameter 'driver_features' include/drm/drm_drv.h:524: warning: No description found for parameter 'ioctls'
include/drm/drm_drv.h:524: warning: No description found for parameter 'num_ioctls' include/drm/drm_drv.h:524: warning: No description found for parameter 'fops'
>> include/drm/drm_connector.h:140: warning: No description found for parameter 'a' >> include/drm/drm_connector.h:140: warning: No description found for parameter 'b' >> include/drm/drm_connector.h:140: warning: No description found for parameter 'c' >> include/drm/drm_connector.h:140: warning: No description found for parameter 'd'
include/drm/drm_color_mgmt.h:1: warning: no structured comments found drivers/gpu/drm/drm_plane_helper.c:403: warning: No description found for parameter 'ctx' drivers/gpu/drm/drm_plane_helper.c:404: warning: No description found for parameter 'ctx' drivers/gpu/drm/i915/intel_lpe_audio.c:350: warning: No description found for parameter 'dp_output' drivers/gpu/drm/i915/intel_lpe_audio.c:350: warning: No description found for parameter 'link_rate' drivers/gpu/drm/i915/intel_lpe_audio.c:351: warning: No description found for parameter 'dp_output' drivers/gpu/drm/i915/intel_lpe_audio.c:351: warning: No description found for parameter 'link_rate' Documentation/core-api/assoc_array.rst:13: WARNING: Enumerated list ends without a blank line; unexpected unindent. Documentation/doc-guide/sphinx.rst:126: ERROR: Unknown target name: "sphinx c domain". kernel/sched/fair.c:7650: WARNING: Inline emphasis start-string without end-string. kernel/time/timer.c:1200: ERROR: Unexpected indentation.
kernel/time/timer.c:1202: ERROR: Unexpected indentation.
kernel/time/timer.c:1203: WARNING: Block quote ends without a blank line; unexpected unindent. include/linux/wait.h:122: WARNING: Block quote ends without a blank line; unexpected unindent. include/linux/wait.h:125: ERROR: Unexpected indentation.
include/linux/wait.h:127: WARNING: Block quote ends without a blank line; unexpected unindent. kernel/time/hrtimer.c:990: WARNING: Block quote ends without a blank line; unexpected unindent. kernel/signal.c:322: WARNING: Inline literal start-string without end-string. include/linux/iio/iio.h:219: ERROR: Unexpected indentation.
include/linux/iio/iio.h:220: WARNING: Block quote ends without a blank line; unexpected unindent. include/linux/iio/iio.h:226: WARNING: Definition list ends without a blank line; unexpected unindent. drivers/iio/industrialio-core.c:638: ERROR: Unknown target name: "iio_val". drivers/iio/industrialio-core.c:645: ERROR: Unknown target name: "iio_val". drivers/message/fusion/mptbase.c:5051: WARNING: Definition list ends without a blank line; unexpected unindent. drivers/tty/serial/serial_core.c:1898: WARNING: Definition list ends without a blank line; unexpected unindent. drivers/pci/pci.c:3456: ERROR: Unexpected indentation.
include/linux/regulator/driver.h:271: ERROR: Unknown target name: "regulator_regmap_x_voltage". include/linux/spi/spi.h:370: ERROR: Unexpected indentation. drivers/gpu/drm/drm_scdc_helper.c:203: ERROR: Unexpected indentation. drivers/gpu/drm/drm_scdc_helper.c:204: WARNING: Block quote ends without a blank line; unexpected unindent. drivers/gpu/drm/drm_ioctl.c:690: WARNING: Definition list ends without a blank line; unexpected unindent. Documentation/gpu/todo.rst:111: ERROR: Unknown target name: "drm_fb".
sound/soc/soc-core.c:2670: ERROR: Unknown target name: "snd_soc_daifmt".
sound/core/jack.c:312: ERROR: Unknown target name: "snd_jack_btn". Documentation/usb/typec.rst:116: ERROR: Error in "kernel-doc" directive:
invalid option block.
vim +/a +140 include/drm/drm_connector.h
62c58af32 Shashank Sharma 2017-03-13 124 * @scrambling: sink's scrambling capabilities
62c58af32 Shashank Sharma 2017-03-13 125 */
62c58af32 Shashank Sharma 2017-03-13 126 struct drm_scrambling scrambling;
afa1c7636 Shashank Sharma 2017-03-13 127 };
afa1c7636 Shashank Sharma 2017-03-13 128
baa23b769 Clint Taylor 2017-05-15 129 /**
baa23b769 Clint Taylor 2017-05-15 130 * struct drm_hdmi_cec_spa
baa23b769 Clint Taylor 2017-05-15 131 *
baa23b769 Clint Taylor 2017-05-15 132 * Provides the Source Physical address from an HDMI VSDB EDID
baa23b769 Clint Taylor 2017-05-15 133 */
baa23b769 Clint Taylor 2017-05-15 134 struct drm_hdmi_cec_spa {
baa23b769 Clint Taylor 2017-05-15 135 u8 a;
baa23b769 Clint Taylor 2017-05-15 136 u8 b;
baa23b769 Clint Taylor 2017-05-15 137 u8 c;
baa23b769 Clint Taylor 2017-05-15 138 u8 d;
baa23b769 Clint Taylor 2017-05-15 139 };
62c58af32 Shashank Sharma 2017-03-13 @140
afa1c7636 Shashank Sharma 2017-03-13 141 /**
afa1c7636 Shashank Sharma 2017-03-13 142 * struct drm_hdmi_info - runtime information about the connected HDMI sink
afa1c7636 Shashank Sharma 2017-03-13 143 *
afa1c7636 Shashank Sharma 2017-03-13 144 * Describes if a given display supports advanced HDMI 2.0 features.
afa1c7636 Shashank Sharma 2017-03-13 145 * This information is available in CEA-861-F extension blocks (like HF-VSDB).
afa1c7636 Shashank Sharma 2017-03-13 146 */
afa1c7636 Shashank Sharma 2017-03-13 147 struct drm_hdmi_info {
86cc921cb Shashank Sharma 2017-03-28 148 /** @scdc: sink's scdc support and capabilities */:::::: The code at line 140 was first introduced by commit
:::::: 62c58af32c935a98a1e8d8ceb39a3a47b36fbbcd drm/edid: detect SCDC support in HF-VSDB
:::::: TO: Shashank Sharma <[email protected]> :::::: CC: Jani Nikula <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel