Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3285610pxk; Mon, 21 Sep 2020 09:42:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8mJo4zEcd3u1xB5b4tiL0rk2SLMirRg7D6NCCvu8NJTF0/h1QzWdpYJIoxgp7hQpN7KIR X-Received: by 2002:a17:906:4cc6:: with SMTP id q6mr292161ejt.201.1600706519791; Mon, 21 Sep 2020 09:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600706519; cv=none; d=google.com; s=arc-20160816; b=hgsXAaVdmUz0F5F/DdvcEYI1EQ+C5AZVhzXG32W3pO5kxwB3KtNRpjp/jGIa19h/LH v/2odx/H+70vZCXPijvDRmAIn6OaBlPANJ1aIzHL70S8AsJTn6md7dRN+zYj8tw2NVSR 7+gGTy2xWyZWjyB2EbWrbFk27GNYD77Q7b/IWwBf79iQby3RMB64J32YZg/1YQVxcp4B wPysGZ9Nql3YrlhgjA/CcmbBuHpaWk3iWjLQxrwMm45mjmcw+2ZHZON7br+wmHUQScad YoROQ6xsdilE2gM93v25jEFDiHFUW3U9TrWAhMidXXEanDHt7C2qPlIXMAC4w6vkmS8K AfBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hMAvAaexmPVxrw1RQYbLQm+XFbF8SKn520zSEHewdpU=; b=li2ix0zK6Rbfch5Zy4219Glwis2G8AD0DGMYRiY+Iuh4Ziqko2Qa0Hk64K40WBAbeA VxAR9i/pny+/pJijjH2S5/6gnqXVcNVqTNtcbM5UPYT/qHIP9nrluhzBijdcLtDO3fIj 8Mqvbbc8YXb9Z24Mv37e7QtqzgSohRhiH74N/PEs7ROOpIovk8mnw/5ZT6V0bJkohR3O znNHrwdgrrqX/JnlllcqhjGQlpueY+L/vfDM1g0o9DjmxGEs9I/KqahV75VasXL/UrRL TYJUDpPE06PoCbEJTwQwfNemJZg4XsLgPRY058XZE/jAQjSg+MNKn+vaMCCeLBdt/PsI FglQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0I7ssbAy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si9012716eju.401.2020.09.21.09.41.33; Mon, 21 Sep 2020 09:41:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0I7ssbAy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729073AbgIUQhb (ORCPT + 99 others); Mon, 21 Sep 2020 12:37:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:37102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728353AbgIUQhA (ORCPT ); Mon, 21 Sep 2020 12:37:00 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 2ED622396F; Mon, 21 Sep 2020 16:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706219; bh=Nj7XJZ3wJ2vfGccZ874EnITEz2ugjrcvfwxJ2uyaWFw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0I7ssbAyEnawDCPm0CpGxkMpg3h+/lDlvExKKIpdqTRCZOXCtDDlEkjfue8KZsk7a fHjkwleDkOosUDt2nUP/bIe5oKS2UzXBMZCz/g29O5Pa5UZZLYoXcpcCVfG2+FtzOL 7MkTGRY6nsc8iOcEF35vtHp6MvtUkdL12PuG7FMQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mohan Kumar , Sameer Pujar , Takashi Iwai , Sasha Levin Subject: [PATCH 4.14 14/94] ALSA: hda: Fix 2 channel swapping for Tegra Date: Mon, 21 Sep 2020 18:27:01 +0200 Message-Id: <20200921162036.202828008@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162035.541285330@linuxfoundation.org> References: <20200921162035.541285330@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mohan Kumar [ Upstream commit 216116eae43963c662eb84729507bad95214ca6b ] The Tegra HDA codec HW implementation has an issue related to not swapping the 2 channel Audio Sample Packet(ASP) channel mapping. Whatever the FL and FR mapping specified the left channel always comes out of left speaker and right channel on right speaker. So add condition to disallow the swapping of FL,FR during the playback. Signed-off-by: Mohan Kumar Acked-by: Sameer Pujar Link: https://lore.kernel.org/r/20200825052415.20626-2-mkumard@nvidia.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_hdmi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index cb7047bf844df..75bdcede04e63 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -3399,6 +3399,7 @@ static int tegra_hdmi_build_pcms(struct hda_codec *codec) static int patch_tegra_hdmi(struct hda_codec *codec) { + struct hdmi_spec *spec; int err; err = patch_generic_hdmi(codec); @@ -3406,6 +3407,10 @@ static int patch_tegra_hdmi(struct hda_codec *codec) return err; codec->patch_ops.build_pcms = tegra_hdmi_build_pcms; + spec = codec->spec; + spec->chmap.ops.chmap_cea_alloc_validate_get_type = + nvhdmi_chmap_cea_alloc_validate_get_type; + spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; return 0; } -- 2.25.1