Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2961575imu; Mon, 19 Nov 2018 08:40:21 -0800 (PST) X-Google-Smtp-Source: AJdET5fGu7aFSYiGf6JZ2xiOz8W0p5Wg5Lbq9gFBnW/767QpHBBH0a4I7WrHh9GKOg1tscOIk9dC X-Received: by 2002:a63:f201:: with SMTP id v1mr19497003pgh.232.1542645621783; Mon, 19 Nov 2018 08:40:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645621; cv=none; d=google.com; s=arc-20160816; b=Qs3QNKSK/WhuRIF+Mc6RIbzSHBNgFkSRQ/jgq/loWXioGlS1qH9p/KZluiZngrGcl3 iABwBtAgxlUw/KAi/sjuQmrozLbZQTLMPj+W9zSk1SsxvDb06L0zYvlFGeApKY4FS9rq zfRB1d82YEO8p6LCzMw2tWbPLAgTbsGC9/WLJsEv9zwPxlGxU63qqRPc4Qvlzeo2X2gM igkHT8xp+5XDjNHIlxgi0S4/pjjF809OnBdB8gZ89iQ0KwrHSwDo6pBOYvyRn9awzzhK pEZjFllKVefSkyGn6yw3rjaF5Plr2QwRjc3W0gDC3W/Waa70G9HZ5jz5NiYMISHHBLHR Z1AQ== 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=010U3SqsS6Y0LhTFU7WOUvRTVXgE8C5daCRUeDLQ/CI=; b=SSvRZsyyyMYNg/0MYYevKSZr5sC4K9WOGyjgUXl1br4U62wNs6QuzEq/DD5+RgcLaO CRAJDDXQfM+d4Uxb+V+KsbTjZjHQK6FZCchLWlDbE9xafqUdPp6waP6T9KRzw2Piit1P QYeKlh/EByQPm5RU6Ijh4tOlkaXvy2uiBeAWaZ3lHNC/ls9SjSqmtErn55GRWyrM+Rzr yXQLsmrjCcLY73hbmqZdbNZUwTkVno+4LMNvlck6rMHRRTko4erjw+zRpacs8mLnHfDo gyJdi4l+WlFGEq+AXBpVtTWKQ+1FYm2SaRe5Tpz0IUXt+uD5upim/rS1LX8xTI5PMzes zMEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MWrbxpL6; 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 q64si40460433pga.280.2018.11.19.08.40.07; Mon, 19 Nov 2018 08:40:21 -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=MWrbxpL6; 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 S1732762AbeKTDDj (ORCPT + 99 others); Mon, 19 Nov 2018 22:03:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:36356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731810AbeKTDDi (ORCPT ); Mon, 19 Nov 2018 22:03:38 -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 6E074208E3; Mon, 19 Nov 2018 16:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645568; bh=PVHGYFKKlhBz8UBfawrTudmFUYpiiBuFl1G+GUKBUlU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MWrbxpL6e1nAyJ5zJDjb/ZSqsWzBdKLDHtlsAd9Xcm3Y4fyb4smL+U62Et4BUbztq ITwrO9DHrj//nctsVpfD70GHtr8l6C0rD+zenigZVhoRhjgjQgLZV4pH/V47zSTp2v B6Hx7tqxa2JfsQXxeMy+UBQ7W+XxHHyvEwIRgNv8= 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.19 193/205] drm/i915/hdmi: Add HDMI 2.0 audio clock recovery N values Date: Mon, 19 Nov 2018 17:28:20 +0100 Message-Id: <20181119162642.134441281@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@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.19-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 @@ -144,6 +144,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; @@ -164,6 +167,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 */