Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp24655pxk; Tue, 15 Sep 2020 16:42:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuc/ASpxt6jPu88FildW5tq2ncXPqPyEZDORwNRQ+OFmuzjeE4mNhCwnqmJtT3uV2Bfds0 X-Received: by 2002:a17:906:ae8f:: with SMTP id md15mr21678298ejb.131.1600213371466; Tue, 15 Sep 2020 16:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600213371; cv=none; d=google.com; s=arc-20160816; b=Rg/Z63BiVzyGGPt0YZKnMDK6b/1H0Ac5ycf3fykWd2kCWM/r8+c1Yi0IBYY4W+79qA nLuvyMPrKNgInx6o+CyO9C38mO90CI5Wf4Ch7YSK3gKmH/jxR+oY2nwx5QJgAwJfivdx k1RTKwIOfNc5v+b6LYkqspqYlB4ee5LNFLsptxXWqMZv50JYuB7kPcjjgbyTDgNQcX7S bzJVHWV3GMgekxi1Z8xJse5Spziin7vkscV2lndHw/tDopXMygpdykiPn3YwMP2AkSQL PoIC9KZD2o6cYkV/gZX1DjrShQacDFmlVoWNm3VFwQwaIdiYGv0xWfYIq/Ptt9kwmhuR gMQg== 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=kllhJcbDJi1jC51Cw9t4/0VvURqNiLhv0tYjEhTTRxo=; b=Whwmq6/SW93SAChnMkQmkwauafsSn4gcfctSBz2SrdyZbr2lsSmChW4h6UO00eBuKt qqZpo9RygBo1HDLlkGpALpAWbhJHCVLDUAKqAf57Rjpc9zWw/WP4X/2Rosu6UGsY84tq YGM5sRmN0uFIYgKoOi1GV7GZeYNg0KBlpQkj+S27VQAvjnLILyFDrIKyLhBYSvejMlyc 3D/pxAjKbMi+1ZBaWjk6i4ToDdzQBMvXSM5vS982ChrFKTUgS/Gdg/+4QO7OmHkDUxR/ uLmKpQSsp+xyt0Nc29HXLy+iRCGytqc77jdnjohRHJucSrJp1k6focRmB/WFmYs2vR4Y Kxfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RkwfOBwn; 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 r22si10396526ejo.88.2020.09.15.16.42.29; Tue, 15 Sep 2020 16:42:51 -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=RkwfOBwn; 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 S1727122AbgIOXj7 (ORCPT + 99 others); Tue, 15 Sep 2020 19:39:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:46456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbgIOOet (ORCPT ); Tue, 15 Sep 2020 10:34:49 -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 B0442221E5; Tue, 15 Sep 2020 14:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600179346; bh=PBvaGaNwNglmTL7AQ3XaoTVs0e7wUvUDberY90mcB9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RkwfOBwnxqkTgOqrUn1cawdFLRlE+KgAPQ7aiB+eqUn/nQQrQgYsy3AIDGgt2zh0y 3iTGGBab4MrhiuECM8st/H6Z09oIvZSHMajDI++7MHLmLgvcKL6X831XleUHOzOiEJ MdX/o0gpOrTxLt9eyj7HwU+Gb1PLH15xM5By/dKM= 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.19 23/78] ALSA: hda: Fix 2 channel swapping for Tegra Date: Tue, 15 Sep 2020 16:12:48 +0200 Message-Id: <20200915140634.715358619@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915140633.552502750@linuxfoundation.org> References: <20200915140633.552502750@linuxfoundation.org> User-Agent: quilt/0.66 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 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 b8e5f2b19ff85..708efb9b43877 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -3431,6 +3431,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); @@ -3438,6 +3439,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