drm/i915/audio: set proper N/MCTS on more platforms
authorLibin Yang <libin.yang@linux.intel.com>
Mon, 10 Oct 2016 15:04:04 +0000 (18:04 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 11 Oct 2016 14:22:16 +0000 (17:22 +0300)
This patch applies setting proper N/M, N/CTS on more platforms.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/073f8aaf302df1b638dd33b0ddf46930bcdfea99.1476111629.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_audio.c

index dcbe6b9cbc43301e607de6536c3ae714bf2441da..8f6cc15ca39c417d6c8c6597077ecbe98b9c5ca1 100644 (file)
@@ -688,11 +688,7 @@ static int i915_audio_component_sync_audio_rate(struct device *kdev, int port,
        struct i915_audio_component *acomp = dev_priv->audio_component;
        int err = 0;
 
-       /* HSW, BDW, SKL, KBL need this fix */
-       if (!IS_SKYLAKE(dev_priv) &&
-           !IS_KABYLAKE(dev_priv) &&
-           !IS_BROADWELL(dev_priv) &&
-           !IS_HASWELL(dev_priv))
+       if (!HAS_DDI(dev_priv))
                return 0;
 
        i915_audio_component_get_power(kdev);