Received: by 10.213.65.68 with SMTP id h4csp859323imn; Tue, 27 Mar 2018 10:04:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx489UQv553kNSiB6FT/iQcT+WHQaZT+bxkowrQCCpPA2xv59SYfhIXVYxyyC0/qH6l55JtNO X-Received: by 2002:a17:902:744b:: with SMTP id e11-v6mr104843plt.351.1522170298931; Tue, 27 Mar 2018 10:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522170298; cv=none; d=google.com; s=arc-20160816; b=Cf7Ou9xuKs4+k90g21Cdsy5NIW4h/36UyUOvl3ph8eMYihpUMhbqM/P2PuB1Kxk9f7 eI21W19+6mTHu/I8otA+OfA+yAk81ZQfsnaDFSIVN3Kd9MovjW+1FwKu3LWwES/p/MTW w63MgOcHr4PIVI39K0g9JWBA+o/7MJhcHYDO25SVg8ov079jyIhqk0KiRUgizsvnc7eh DrS8ygonDAPYY6CaQOqW5PPw6aI8mzfIRZUvrYk5/a5+Y7b7hKtIxDDB9wxNE8GNlKuq 4etIUpgTyHW+Jwprrc+4Q4VyGyt/1k4Z/HizGh7INThY10JaA0kwwEwhNNqoeQ6X5DML SKvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=okcUec4secS0un0tt5i/l/9PMqJvkIggcJ1R0tOtJUE=; b=A7FajbCEzB/eWtVAqC6gDokEcCEnr6BAHXkRkcKhpjK+NYLaNmGL1iUGdOgKcEShy/ HS1o0pNA3si7mBEZcgXS3uSIqGtlFaGJRiqdfsIlgK3da3zcQFz+8oC579w3XPTWZqHG F1KTz7f3UP4MXhYWF2H4Z60/8e4DoD45PF/F9VmjrHyHTOfAouyKIUC2kHfcKTF2RIY+ 49sQeXp+YVQgh7CpaB9mlOhbeYMcnQCxapINHu4du7trT+pXFavHWSnf3Eb0egw/hyNU GZ32f4YFBfpXksmOfljf/RAyawkYD5BP400Ry2/enCXpwD+lEibi1kIxO4X/B8a219cA ZEdw== ARC-Authentication-Results: i=1; mx.google.com; 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 h126si1085826pgc.817.2018.03.27.10.04.39; Tue, 27 Mar 2018 10:04:58 -0700 (PDT) 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; 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 S1753020AbeC0RCy (ORCPT + 99 others); Tue, 27 Mar 2018 13:02:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48572 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932181AbeC0QlE (ORCPT ); Tue, 27 Mar 2018 12:41:04 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 74F52EF9; Tue, 27 Mar 2018 16:41:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Harry Wentland , Tony Cheng , Alex Deucher Subject: [PATCH 4.15 059/105] drm/amd/display: Add one to EDIDs audio channel count when passing to DC Date: Tue, 27 Mar 2018 18:27:39 +0200 Message-Id: <20180327162801.150557262@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Harry Wentland commit 731a373698c9675d5aed8a30d8c9861bea9c41a2 upstream. DC takes channel count to mean the actual count. cea_sad's channels represent it as number of channels - 1. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -109,7 +109,7 @@ enum dc_edid_status dm_helpers_parse_edi struct cea_sad *sad = &sads[i]; edid_caps->audio_modes[i].format_code = sad->format; - edid_caps->audio_modes[i].channel_count = sad->channels; + edid_caps->audio_modes[i].channel_count = sad->channels + 1; edid_caps->audio_modes[i].sample_rate = sad->freq; edid_caps->audio_modes[i].sample_size = sad->byte2; }