]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pass around crtc and connector states for audio
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Oct 2017 18:46:53 +0000 (20:46 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 31 Oct 2017 19:50:43 +0000 (21:50 +0200)
commit8ec47de21bfab96790c4202ae8cdb5092ad7ec33
tree692b7ac6c6d98ff384932fbdf97b2bbb1006ba82
parent4ab09d0ec3c81aceaebf8967efe111ba69a406d8
drm/i915: Pass around crtc and connector states for audio

Explicitly pass the crtc and connector states into the audio
code enable/disable hooks, and plumb them all the way down.

This gets rid of almost all crtc->config and encoder->crtc
uses. The one place where we still use them is
i915_audio_component_sync_audio_rate() since that gets called from
the audio driver and we don't have explicit states around then.

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171030184654.17429-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_audio.c
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_dp_mst.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_hdmi.c