Message ID | 1630056839-6562-4-git-send-email-spujar@nvidia.com |
---|---|
State | Accepted |
Commit | 30b428d02cbc9888d84407306d54dce8c2b8bfbf |
Headers | show
Return-Path: <SRS0=XrcS=NS=alsa-project.org=alsa-devel-bounces@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74194C432BE for <alsa-devel@archiver.kernel.org>; Fri, 27 Aug 2021 09:40:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F004760F6C for <alsa-devel@archiver.kernel.org>; Fri, 27 Aug 2021 09:40:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F004760F6C Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9799C16E3; Fri, 27 Aug 2021 11:39:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9799C16E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1630057205; bh=Gt4bjy6Fqucv33LAOisb7CrnmMiRNmBhs0CeetFGGRk=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=pLrSm4EoweE8jbroUo9h7p2olsh0bbooP9gWsFVwSeLVJxD3aLv91PaI/qKsWJiS4 o7LCTmmOvYqTkI2pi2fPkw65qEkbvSpM+dV0UGoexUitTp0YvZycbAGCbZpXcBkliD vgGYtuAGIlNBjgIAvo3+Xb9CjwAwLa6tVwHaFfVM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0A222F804E6; Fri, 27 Aug 2021 11:38:30 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 82780F804E7; Fri, 27 Aug 2021 11:38:28 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2086.outbound.protection.outlook.com [40.107.223.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 89B64F80217 for <alsa-devel@alsa-project.org>; Fri, 27 Aug 2021 11:38:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 89B64F80217 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="FTL5NfxY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Spx2zxdTYI26rFnQE+hxYwxOkqMjhDD59jklm94ur7k1zzYHlwWKgTMcFMfTJzI5RyO8pjrLhiekronZMO26xbqGuwy21/2BJwbDYI8w1Y9doIqkdXKqfpUZ7ESqYBv9Wh20KMobUvfl06bEPML6m7I5WdBhsyz072C0utGpwqI8xVkOhW/otdhBwbUhvMTrLLloVaKKY0/prae1ayGzo3MjrHJBsVbktOzD7kxRMxRqmobapR/UY57ulC5rgSpokoEKyiUuoI+Y1Bea3WJTP5d/xaD0PRvJXEJnuVOO/lo3mpYhwoAy/5Nfa78OuFYvNWG/mwZ4BjBNtK2BcEC7qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KGpzHu6VB1AcJHhdAsrBBxAa7ZoscF3N3XqyzlrjMVc=; b=Ft1sBXpynEHk0iuiEln1hpIW2Lr9RioqeFbiBjp2lailSnIq3s3D8Pbj7umrdvsblKd8o2nX7J03gFCV9Yk8M+3wVfPCJVpDsvC2n42v659onaBdzai2QRSc7K5R0XX5sSmBaTq2GTwXadvNGZ06B+hka4prIztO0yPkAitLJn3+XE2zZ6a/yooGDgGKotkR5ylPdxVOlKlRCHIdPNkA1/etI/yQY9wfL7fzvSNPTHvLDx4uD1hd9rIsKzQJOkrRRakJtGb67J8A7gRkL1fN8c+3s7tvoA+dUFfq9n2uo/u4BvC0F/5WfthwO2HdfZ3eRJ9wu+ThyNI0O4OxSMWXjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.32) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KGpzHu6VB1AcJHhdAsrBBxAa7ZoscF3N3XqyzlrjMVc=; b=FTL5NfxY88l53JtKhTeXnLz6KqIOArK7XnUA80DeIJj/nX/YU64FC1S0pEHoZqz6dbIqzK3bdK2NK9/VnHxO+AZnyVjnGmGp/bLhgA2OyXhOQz6ojncJOI2vzE5F9w1QWWNP3hMxz4Yi2lOBTcy8yKk1nV6SmGhX8ThDx4MyTAX4PpQvnVTeVKgRRBloZ4Qtt2m2wHPJmyhsxH6bvsGxir/XymF8L82EKfcWIlkOmpY9RA5Ikrwy591LMLneVu6wCuoei61HdoHgn3wieAA/Q/6M7dhOOlBsUZr5TjExAN0JuK2ZIXn5AbxrPsG5jPoMReUfJNPwp9irVVm6oNixJg== Received: from DM6PR13CA0054.namprd13.prod.outlook.com (2603:10b6:5:134::31) by DM6PR12MB4497.namprd12.prod.outlook.com (2603:10b6:5:2a5::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Fri, 27 Aug 2021 09:38:18 +0000 Received: from DM6NAM11FT034.eop-nam11.prod.protection.outlook.com (2603:10b6:5:134:cafe::18) by DM6PR13CA0054.outlook.office365.com (2603:10b6:5:134::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.6 via Frontend Transport; Fri, 27 Aug 2021 09:38:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.32) smtp.mailfrom=nvidia.com; kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.32 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.32; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.32) by DM6NAM11FT034.mail.protection.outlook.com (10.13.173.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4457.17 via Frontend Transport; Fri, 27 Aug 2021 09:38:17 +0000 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 27 Aug 2021 02:38:17 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 27 Aug 2021 09:38:16 +0000 Received: from audio.nvidia.com (172.20.187.5) by mail.nvidia.com (172.20.187.10) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 27 Aug 2021 09:38:12 +0000 From: Sameer Pujar <spujar@nvidia.com> To: <broonie@kernel.org>, <lgirdwood@gmail.com>, <robh+dt@kernel.org>, <thierry.reding@gmail.com>, <jonathanh@nvidia.com>, <catalin.marinas@arm.com>, <will@kernel.org>, <perex@perex.cz>, <tiwai@suse.com>, <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 03/13] ASoC: audio-graph: Fixup CPU endpoint hw_params in a BE<->BE link Date: Fri, 27 Aug 2021 15:03:49 +0530 Message-ID: <1630056839-6562-4-git-send-email-spujar@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1630056839-6562-1-git-send-email-spujar@nvidia.com> References: <1630056839-6562-1-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1c775c8-bcfd-40e1-c488-08d9693e66a5 X-MS-TrafficTypeDiagnostic: DM6PR12MB4497: X-Microsoft-Antispam-PRVS: <DM6PR12MB44976AD43072FA59B75E6ECFA7C89@DM6PR12MB4497.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1824; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mkMHpLu75YDNx77V2jFrfhbYhTKW2m9p8IMVT9b4FAuy7tfW3ueO6yq1H1nKEYJNNgWWqj5rpL4hKc2q/GGkDmJy5k/WHegObuPgXyaXjOARufO5Ii796mOCrdEeRGoY1E+o9jy5FBPVrMwLwygvlPYPIIQWzdH0VOe6rK25WEvdZfIljAxlqEhDpu3h7B7NA/Icp/AFNa0OMZZsrOQwPdmUkLyUZi0XKDYlZfPX5/8SvDzPld5W1+FuQ+2Uiykx7JhmzTkr5lFjV/QXfvyMbPK1KIee3MbchbDlJi1qu+zwM+jRh2L9S/nR9dj08bEfLAvTlsrcCIBFFiXDjI1wD3lTSmLAbqP1EF5Zi9xrQA1SW/6obilIQnL9xvhdzKR8mDoYHezGDfMU0Uz5Tx9Jtmrzg0Nx8kj+28C9CAWHd+3W1s2l4skSYQrgIjlNMbPVbrgp7BKaVlih4hbWslItgeILhzdO0WGSTqVG8FyFlkbvzMB1g7Tad2wroosKk5S0cZ25OvEm+VG2+klbL7zZTtGq2xwv+SFFMFehP1AFBMjw9HBEuTh0ugV8t93sgk9T77yf1yYkXXbK3sboauLW3Xj+d87joywetwLfz8fZigvsouIFvfDS7tAR6Y2+mbh9PkVuJxDq0uswoAO6M5c7ETuACg9DhuhMTlXG56+mive3ImZfVJFBtWjxf1ngnJ6jAEWAMXZH483ggyhF1qqBnOaW03CX110Z9fNvmMb2WZk= X-Forefront-Antispam-Report: CIP:216.228.112.32; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid01.nvidia.com; CAT:NONE; SFS:(4636009)(376002)(39860400002)(136003)(346002)(396003)(36840700001)(46966006)(70586007)(86362001)(83380400001)(356005)(47076005)(82740400003)(7636003)(478600001)(316002)(110136005)(336012)(426003)(82310400003)(186003)(36756003)(6666004)(26005)(7696005)(4326008)(107886003)(8676002)(7416002)(36860700001)(54906003)(921005)(8936002)(2616005)(5660300002)(70206006)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2021 09:38:17.9595 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1c775c8-bcfd-40e1-c488-08d9693e66a5 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.32]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT034.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4497 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Sameer Pujar <spujar@nvidia.com>, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, sharadg@nvidia.com, linux-arm-kernel@lists.infradead.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
Extend AHUB audio support for Tegra210 and later
|
expand
|
diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c index 5e71382..7439122 100644 --- a/sound/soc/generic/audio-graph-card.c +++ b/sound/soc/generic/audio-graph-card.c @@ -309,8 +309,10 @@ static int graph_dai_link_of_dpcm(struct asoc_simple_priv *priv, * For example: FE <-> BE1 <-> BE2 <-> ... <-> BEn where * there are 'n' BE components in the path. */ - if (card->component_chaining && !soc_component_is_pcm(cpus)) + if (card->component_chaining && !soc_component_is_pcm(cpus)) { dai_link->no_pcm = 1; + dai_link->be_hw_params_fixup = asoc_simple_be_hw_params_fixup; + } asoc_simple_canonicalize_cpu(cpus, is_single_links); } else {
When multiple components are connected back to back in an audio path, hw_param fixup may be required for CPU or Codec endpoint of BE<->BE DAI links. Currently fixup support is available for Codec and this commit adds similar feature for CPU endpoint of a BE<->BE link. For example a resampler component can be plugged into an audio path. [ FE -> BE1 -> ... -> resampler -> ... BEn ] The resampler DAI links can be: BEx (CPU) -> resampler input (Codec) resampler output (CPU) -> BEy (Codec) Thus input and output sample rate parameters for resampler can be fixed up as per the resample requirement. Signed-off-by: Sameer Pujar <spujar@nvidia.com> Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- sound/soc/generic/audio-graph-card.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)