[linux-oem,3/3] UBUNTU: SAUCE: drm/i915: set minimum CD clock to twice the BCLK.
diff mbox series

Message ID 1510194993-6420-4-git-send-email-hui.wang@canonical.com
State New
Headers show
  • The HDMI audio can't work on all Geminilake machines we have
Related show

Commit Message

Hui Wang Nov. 9, 2017, 2:36 a.m. UTC
From: Abhay Kumar <abhay.kumar@intel.com>

BugLink: http://bugs.launchpad.net/bugs/1731091

[The patch is picked from https://patchwork.freedesktop.org/patch/184778/]

In glk when device boots with only 1366x768 panel, HDA codec doesn't comeup.
This result in no audio forever as cdclk is < 96Mhz.
This chagne will ensure CD clock to be twice of  BCLK.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102937
Signed-off-by: Abhay Kumar <abhay.kumar@intel.com>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
 drivers/gpu/drm/i915/intel_cdclk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/gpu/drm/i915/intel_cdclk.c b/drivers/gpu/drm/i915/intel_cdclk.c
index d329118..b156032 100644
--- a/drivers/gpu/drm/i915/intel_cdclk.c
+++ b/drivers/gpu/drm/i915/intel_cdclk.c
@@ -1786,7 +1786,7 @@  int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state)
 	/* According to BSpec, "The CD clock frequency must be at least twice
 	 * the frequency of the Azalia BCLK." and BCLK is 96 MHz by default.
-	if (crtc_state->has_audio && INTEL_GEN(dev_priv) >= 9)
+	if (INTEL_GEN(dev_priv) >= 9)
 		min_cdclk = max(2 * 96000, min_cdclk);
 	if (min_cdclk > dev_priv->max_cdclk_freq) {