1. 15 7月, 2017 1 次提交
    • S
      drm: handle HDMI 2.0 VICs in AVI info-frames · 0c1f528c
      Shashank Sharma 提交于
      HDMI 1.4b support the CEA video modes as per range of CEA-861-D (VIC 1-64).
      For any other mode, the VIC filed in AVI infoframes should be 0.
      HDMI 2.0 sinks, support video modes range as per CEA-861-F spec, which is
      extended to (VIC 1-107).
      
      This patch adds a bool input variable, which indicates if the connected
      sink is a HDMI 2.0 sink or not. This will make sure that we don't pass a
      HDMI 2.0 VIC to a HDMI 1.4 sink.
      
      This patch touches all drm drivers, who are callers of this function
      drm_hdmi_avi_infoframe_from_display_mode but to make sure there is
      no change in current behavior, is_hdmi2 is kept as false.
      
      In case of I915 driver, this patch:
      - checks if the connected display is HDMI 2.0.
      - HDMI infoframes carry one of this two type of information:
      	- VIC for 4K modes for HDMI 1.4 sinks
      	- S3D information for S3D modes
        As CEA-861-F has already defined VICs for 4K videomodes, this
        patch doesn't allow sending HDMI infoframes for HDMI 2.0 sinks,
        until the mode is 3D.
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Jose Abreu <jose.abreu@synopsys.com>
      Cc: Andrzej Hajda <a.hajda@samsung.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      
      PS: This patch touches a few lines in few files, which were
      already above 80 char, so checkpatch gives 80 char warning again.
      - gpu/drm/omapdrm/omap_encoder.c
      - gpu/drm/i915/intel_sdvo.c
      
      V2: Rebase, Added r-b from Andrzej
      V3: Addressed review comment from Ville:
      	- Do not send VICs in both AVI-IF and HDMI-IF
      	  send only one of it.
      V4: Rebase
      V5: Added r-b from Neil.
          Addressed review comments from Ville
          - Do not block HDMI vendor IF, instead check for VIC while
            handling AVI infoframes
      V6: Rebase
      V7: Rebase
      Reviewed-by: NAndrzej Hajda <a.hajda@samsung.com>
      Reviewed-by: NNeil Armstrong <narmstrong@baylibre.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1499960000-9232-2-git-send-email-shashank.sharma@intel.comSigned-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      0c1f528c
  2. 04 7月, 2016 2 次提交
    • T
      drm/tegra: hdmi: Implement runtime PM · 5234549b
      Thierry Reding 提交于
      Use runtime PM to clock-(un)gate and (de)assert reset to the HDMI
      controller. This ties in nicely with atomic DPMS in that a runtime PM
      reference is taken before a pipe is enabled and dropped after it has
      been shut down.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      5234549b
    • T
      drm/tegra: hdmi: Enable audio over HDMI · 2ccb396e
      Thierry Reding 提交于
      In order to use the HDA codec to forward audio data to the HDMI codec it
      needs the ELD that is parsed from the monitor's EDID.
      
      Also implement an interoperability mechanism between the HDA controller
      and the HDMI codec. This uses vendor-defined scratch registers to pass
      data from the HDMI codec driver to the HDMI driver (that implements the
      receiving end of the HDMI codec). A custom format is used to pass audio
      sample rate and channel count to the HDMI driver.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      2ccb396e
  3. 10 6月, 2016 1 次提交
  4. 11 12月, 2015 1 次提交
  5. 13 8月, 2015 3 次提交
  6. 27 7月, 2015 1 次提交
  7. 03 4月, 2015 2 次提交
  8. 19 2月, 2015 1 次提交
    • T
      drm/tegra: hdmi: Explicitly set clock rate · c03bf1bf
      Thierry Reding 提交于
      Recent changes in the clock framework have caused a behavioural change
      in that clocks that have not had their rate set explicitly will now be
      reset to their initial rate (or 0) when the clock is released. This is
      triggered in the deferred probing path, resulting in the clock running
      at a wrong frequency after the successful probe.
      
      This can be easily fixed by setting the rate explicitly rather than by
      relying on the implicit rate inherited by the parent.
      Tested-by: NTomeu Vizoso <tomeu.vizoso@collabora.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      c03bf1bf
  9. 27 1月, 2015 12 次提交
  10. 04 8月, 2014 1 次提交
  11. 06 6月, 2014 10 次提交
  12. 14 1月, 2014 1 次提交
  13. 20 12月, 2013 1 次提交
  14. 19 12月, 2013 3 次提交
    • T
      drm/tegra: Track HDMI enable state · 365765fc
      Thierry Reding 提交于
      The DRM core doesn't track enable and disable state of encoders and/or
      connectors, so calls to the output's .enable() and .disable() are not
      guaranteed to be balanced. Track the enable state internally so that
      calls to regulator and clock frameworks remain balanced.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      365765fc
    • T
      drm/tegra: Fix HDMI audio frequency typo · 17a8b6b0
      Thierry Reding 提交于
      The correct check is for 48 kHz, not 480 kHz. Found by Coverity.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      17a8b6b0
    • P
      gpu: host1x: clk_round_rate() can return a zero upon error · 23a0e27a
      Paul Walmsley 提交于
      Treat both negative and zero return values from clk_round_rate() as
      errors.  This is needed since subsequent patches will convert
      clk_round_rate()'s return value to be an unsigned type, rather than a
      signed type, since some clock sources can generate rates higher than
      (2^31)-1 Hz.
      
      Eventually, when calling clk_round_rate(), only a return value of zero
      will be considered a error.  All other values will be considered valid
      rates.  The comparison against values less than 0 is kept to preserve
      the correct behavior in the meantime.
      Signed-off-by: NPaul Walmsley <pwalmsley@nvidia.com>
      Cc: Mikko Perttunen <mperttunen@nvidia.com>
      Cc: Arto Merilainen <amerilainen@nvidia.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Terje Bergström <tbergstrom@nvidia.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      23a0e27a