Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2981925imu; Mon, 19 Nov 2018 08:57:41 -0800 (PST) X-Google-Smtp-Source: AJdET5f/yb43w1kDiDfD9xmijvZiWl33CZmBGzXs9W2yUfR2dByEHAqlwbAd5z+7MAYw9mIWvpvs X-Received: by 2002:a17:902:24c:: with SMTP id 70-v6mr22354274plc.120.1542646661645; Mon, 19 Nov 2018 08:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542646661; cv=none; d=google.com; s=arc-20160816; b=JTWW248lcTRk6p6Wyl7H6Apm/YE6FcGWHRfyowq+16eOjOmvMyw+Qc57rHWNpKXrCO Q9yjTHuIqNvCfJK54B4UWjW0Cq9/TcfXzQq7aagOk3M/xQlKwh9rnEG4taSTf77Sy8fo ZC+WxpMZIwHwyy7p2Nx8kEBzvzMSbQhZP9cZyBgHnpRFqDkhSJ0Q5txSnsGeIFZq4EWd wugE/A3uR8ufF55V9gZAUadufml+q/k09jdR7uccuQ98m3WdQx4Thz6F0Pvga1KWs3r2 b1h/gqP/Nbon2Mzj3ZF2Axe1Fj7L/SnhQwXoGACHf8KAS2nFVviDdL4yc+oYCSIAekIp Vo3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=v8PfaSb5BoCrlBr7GsOi3YGjpNmwmW8iZUqxHWQAkQI=; b=wKnzsSJnfEycKLs4UZihU9WDPRjaGBmRdhYs/XWkRGlRl98Yw+Bil4hOlG1FdjiYWS wFR/7QTemgQqcegKw0md5MjikSnEpFBGAw0PbH8yfG70Q7FeJs6Sez5YHWvDi8x2P1dh h1WddAjyNr/iXX7CR0lVJuIR3CFwPMa76KjZHlHk44EwIPORpCzqz2Xi0wYR0i7BesVm hR8MrdL0S2EPPW4JKlVVRAOswdgCc8KUo5x+lUnjlJK0Ct5eeZy7hc1wCuLYisAxHdk6 79lyt3GKzcWX7ofJ48t4WqMyiasDbxeSKc+gBBa6pwnhLfytFZOz4N4FLUcBl/PWnPKz 1h+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OheGPe9T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si38272729pgq.36.2018.11.19.08.57.26; Mon, 19 Nov 2018 08:57:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OheGPe9T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391071AbeKTDT4 (ORCPT + 99 others); Mon, 19 Nov 2018 22:19:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:59106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390092AbeKTDTx (ORCPT ); Mon, 19 Nov 2018 22:19:53 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9D0F3206BA; Mon, 19 Nov 2018 16:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542646539; bh=L1E909WxIcXSayRZ3T0aRVFfU4KWfpdsJkXvjeD47nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OheGPe9TXj4aYUGYG5SS1TM+2nL81sg4kgYCnEligHbNooU8XAIkfVU0ZPuM+9uYH pE8yKiFggMlwYe0tqZMQEz4kah3XH6dHDuCWC0VIK2d+03j028MQnd4uKyNNDSVr2J tZoFMookkwGROkbzvkobA0DSOL69Jm5LVsXLBLFw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jani Nikula , Clint Taylor , Jani Nikula , Joonas Lahtinen Subject: [PATCH 4.9 80/83] drm/i915/hdmi: Add HDMI 2.0 audio clock recovery N values Date: Mon, 19 Nov 2018 17:29:46 +0100 Message-Id: <20181119162627.307131772@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162612.046511542@linuxfoundation.org> References: <20181119162612.046511542@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Clint Taylor commit 6503493145cba4413ecd3d4d153faeef4a1e9b85 upstream. HDMI 2.0 594Mhz modes were incorrectly selecting 25.200Mhz Automatic N value mode instead of HDMI specification values. V2: Fix 88.2 Hz N value Cc: Jani Nikula Cc: stable@vger.kernel.org Signed-off-by: Clint Taylor Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/1540493521-1746-2-git-send-email-clinton.a.taylor@intel.com (cherry picked from commit 5a400aa3c562c4a726b4da286e63c96db905ade1) Signed-off-by: Joonas Lahtinen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/intel_audio.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) --- a/drivers/gpu/drm/i915/intel_audio.c +++ b/drivers/gpu/drm/i915/intel_audio.c @@ -76,6 +76,9 @@ static const struct { /* HDMI N/CTS table */ #define TMDS_297M 297000 #define TMDS_296M 296703 +#define TMDS_594M 594000 +#define TMDS_593M 593407 + static const struct { int sample_rate; int clock; @@ -96,6 +99,20 @@ static const struct { { 176400, TMDS_297M, 18816, 247500 }, { 192000, TMDS_296M, 23296, 281250 }, { 192000, TMDS_297M, 20480, 247500 }, + { 44100, TMDS_593M, 8918, 937500 }, + { 44100, TMDS_594M, 9408, 990000 }, + { 48000, TMDS_593M, 5824, 562500 }, + { 48000, TMDS_594M, 6144, 594000 }, + { 32000, TMDS_593M, 5824, 843750 }, + { 32000, TMDS_594M, 3072, 445500 }, + { 88200, TMDS_593M, 17836, 937500 }, + { 88200, TMDS_594M, 18816, 990000 }, + { 96000, TMDS_593M, 11648, 562500 }, + { 96000, TMDS_594M, 12288, 594000 }, + { 176400, TMDS_593M, 35672, 937500 }, + { 176400, TMDS_594M, 37632, 990000 }, + { 192000, TMDS_593M, 23296, 562500 }, + { 192000, TMDS_594M, 24576, 594000 }, }; /* get AUD_CONFIG_PIXEL_CLOCK_HDMI_* value for mode */