diff options
author | Libin Yang <libin.yang@intel.com> | 2016-12-01 06:17:19 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-12-02 15:20:48 +0100 |
commit | f55d23be11ed15f493957246f3b81fc530e79d70 (patch) | |
tree | 115b3e2b7c2f8dedad6b272cbc06e3d5c975703a /drivers/gpu/drm/i915/intel_audio.c | |
parent | drm/i915/audio: extend get_saved_enc() to support more scenarios (diff) | |
download | linux-f55d23be11ed15f493957246f3b81fc530e79d70.tar.xz linux-f55d23be11ed15f493957246f3b81fc530e79d70.zip |
drm/i915/audio: extend audio sync rate support for DP MST
Remove the type judgement in i915_audio_component_sync_audio_rate().
Audio rate sync is necessary for all i915 digital audio now.
Signed-off-by: Libin Yang <libin.yang@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1480569439-54252-2-git-send-email-libin.yang@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_audio.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_audio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c index c8a1345d8347..3bbc96c1767f 100644 --- a/drivers/gpu/drm/i915/intel_audio.c +++ b/drivers/gpu/drm/i915/intel_audio.c @@ -805,9 +805,7 @@ static int i915_audio_component_sync_audio_rate(struct device *kdev, int port, /* 1. get the pipe */ intel_encoder = get_saved_enc(dev_priv, port, pipe); - if (!intel_encoder || !intel_encoder->base.crtc || - (intel_encoder->type != INTEL_OUTPUT_HDMI && - intel_encoder->type != INTEL_OUTPUT_DP)) { + if (!intel_encoder || !intel_encoder->base.crtc) { DRM_DEBUG_KMS("Not valid for port %c\n", port_name(port)); err = -ENODEV; goto unlock; |