OSDN Git Service

drm/i915: Move audio_connector to intel_encoder
authorPandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>
Tue, 20 Sep 2016 01:24:40 +0000 (18:24 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 21 Sep 2016 16:32:20 +0000 (09:32 -0700)
commitf1a3acea26f89de17399726e1451fc7bb5376573
tree739bf9b7e63e79961291cce1622f0b24f7829ba8
parentd8dee42a3307901572e0730d9cac02f26635afed
drm/i915: Move audio_connector to intel_encoder

With DP MST, a digital_port can carry more than one audio stream. Hence,
more than one audio_connector needs to be attached to intel_digital_port in
such cases. However, each stream is associated with an unique encoder. So,
instead of creating an array of audio_connectors per port, move
audio_connector from struct intel_digital_port to struct intel_encoder.
This also simplifies access to the right audio_connector from codec
functions in intel_audio.c that receive intel_encoder.

v2: Removed locals that are not needed anymore.

v3: No code change except for minor change in context.

Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Lyude <cpaul@redhat.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1474334681-22690-5-git-send-email-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/intel_audio.c
drivers/gpu/drm/i915/intel_drv.h