OSDN Git Service

drm/i915: Fix has_audio readout for DDI A
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 29 Nov 2017 16:43:03 +0000 (18:43 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 1 Dec 2017 15:05:15 +0000 (17:05 +0200)
commit2085cc5d3ccdc804eb320d1403be31cf28650552
tree2638b06e00d51466988ad25b135f4451b2af840d
parent68ec0736a00d38f2ac4907ffe8ad141ead15c075
drm/i915: Fix has_audio readout for DDI A

Transcoder EDP does not support audio. Let's not try to
read the state of the audio enable bit HSW_AUD_PIN_ELD_CP_VLD
based on the pipe when using transcoder EDP.

While at it make the function static and flatten it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171129164303.18793-3-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_drv.h