Message ID | 20230626135515.1252063-9-Syed.SabaKareem@amd.com |
---|---|
State | Accepted |
Commit | 7373e6bee60cdac36a134897164885b2257a02ac |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 0B505EB64DA for <alsa-devel@archiver.kernel.org>; Mon, 26 Jun 2023 13:59:05 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E7AEB9F6; Mon, 26 Jun 2023 15:58:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E7AEB9F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1687787943; bh=aJDIrlpJaogXrlZvww+cNv5yDAT/rm5vPXpBBkSP/G4=; h=From:To:CC:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Eyo6EGml+fjbsGQR/QqG0ZzvSxL3drJVq0OHUVyKpZM92AOphvyd08B6+cH2pePc1 7n2XteQ7zu7jghEAGoR5LcE8BLTgjS7B4luDwS8NpJiQxFzYcYNUycXKMDoX3gyB7q MZotwBXINFKx4GGSMq24NF8kHTwg+avEahgwqCqQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 33E23F805B3; Mon, 26 Jun 2023 15:57:12 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 83B47F805BD; Mon, 26 Jun 2023 15:57:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 459FEF80548; Mon, 26 Jun 2023 15:57:06 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on20623.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe59::623]) (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 8503CF8027B for <alsa-devel@alsa-project.org>; Mon, 26 Jun 2023 15:56:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8503CF8027B Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=aNaKnx/n ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c9eK5LL07BuOxoyATovV+/cbIEeb1gIVABJkRy/9fsP1Jnid7+ur73nT029kwnBsocBoXAKdrqh11pe4JIXaIjvXT36Ws6yNxWksWw2ymOAXcUxrU7jQ4P2I5c0iGFcgYeY826hAyl1/U9paTPPavKUhOF6/6nu8JlRQNngN3MJAzhX1EPZjgc6DASlqQz7KzYvoxQiFcPSEd4zGtdEaCf2l3VDE8Njzp+wcTX0O7XDcY8gPYl9QhlVbWQtOEhZ14m0KdtuBzS+ZFLH2bBPlSVCSKFtK7O0t22JBoJR6h4WCioZyFTJLRGDv26Bm1bIBvw299Zskd41stOL6Ol/prQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RuC/p36abO8JEZCdYis01V1LLwMVRik6s9LS9KgnaLE=; b=G9NW7VBHdz1WtowoIymLsjAGRoTxqAZ31d8Vt4Ma1+ctfEyqRf0UsWXOpyIFc0GVysuueSuime8WPlgqe2cKmZkml1weO35gQ+uD3iZAMKvGI3SClP2Sc1qZqQwuKeYG8UAD2184NHPCCBx75ogpYdaY/YdYMLqfKTmkmX8G3g3x0r9og1dRinl7olNwyI7dpk5iHJY97VSRKudC5grA+ar+m9/rEHFVRR8bZbe6KcvN02TXBVlgEAr8Yt/7yBL/5K9g1wZ9ZfmQMHtk7uHCCdl2gkN4urCQV4s1+gUPreIFauSaUjwzWf0+5YCLqnkQGemIxtsiVOXvnclXSr0y4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RuC/p36abO8JEZCdYis01V1LLwMVRik6s9LS9KgnaLE=; b=aNaKnx/n0sMBk6UppIC/7XOjyDluvKFG6OeQcDy4N64jt/wWe4FG9nSi3IeFrRXT0D8nqWjQ5tU/DV8aIr7jG0mTZlhDQ8pEPpaRZ0wbT8FSNt8OMdxRfLVimV8lysiMIoLGQswPWcxkE9yhrZdEJ5xE9d4unMLHWzx5CK4K17Q= Received: from BN9PR03CA0975.namprd03.prod.outlook.com (2603:10b6:408:109::20) by SJ0PR12MB8139.namprd12.prod.outlook.com (2603:10b6:a03:4e8::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Mon, 26 Jun 2023 13:56:52 +0000 Received: from BN8NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:408:109:cafe::ff) by BN9PR03CA0975.outlook.office365.com (2603:10b6:408:109::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.33 via Frontend Transport; Mon, 26 Jun 2023 13:56:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT019.mail.protection.outlook.com (10.13.176.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6500.47 via Frontend Transport; Mon, 26 Jun 2023 13:56:52 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 26 Jun 2023 08:56:51 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 26 Jun 2023 08:56:51 -0500 Received: from amd-B450M-DS3H.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Mon, 26 Jun 2023 08:56:47 -0500 From: Syed Saba Kareem <Syed.SabaKareem@amd.com> To: <broonie@kernel.org>, <alsa-devel@alsa-project.org> CC: <Vijendar.Mukunda@amd.com>, <Basavaraj.Hiregoudar@amd.com>, <Sunil-kumar.Dommati@amd.com>, Syed Saba Kareem <Syed.SabaKareem@amd.com>, Liam Girdwood <lgirdwood@gmail.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>, Venkata Prasad Potturu <venkataprasad.potturu@amd.com>, Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>, open list <linux-kernel@vger.kernel.org> Subject: [PATCH v2 08/10] ASoC: amd: acp: store the pdm stream channel mask Date: Mon, 26 Jun 2023 19:25:12 +0530 Message-ID: <20230626135515.1252063-9-Syed.SabaKareem@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230626135515.1252063-1-Syed.SabaKareem@amd.com> References: <20230626135515.1252063-1-Syed.SabaKareem@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT019:EE_|SJ0PR12MB8139:EE_ X-MS-Office365-Filtering-Correlation-Id: 09440f0f-7ff1-4c44-e299-08db764d31c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mKBYp3eaABjQIWrU2LQcYNOD0FWFUE63ifDYzchQnGxvsANKgKX+mRJ3iyon+QSu7OD5NyFe3sVi35XwBA6+2eptqBQfWslxFtJStTMIs2lb+Ll6ftyoDEB2ax9OIzUtZbAStepnsccmRIr3GySc+lQHBnsdOy0XpaZluwpSxBZa1vv82au4e8nnFEFTmsHRo1pAVOr/XfBgr8s68qhbobVqAP15DyCPb5B4kkV+4cqSFHIfHhCO8CLF3miUgNVpcQFPrun91V0+dHh1kb2dyMebXuEz49XWQWFexRqm5mdlVffsOsS9wxTZMikbrdd3/TcimvqojeBJxtGJIl3FuFLW2tGFj0k6S1q5FdjZGEqiTgLjSqgQIR0k3IdSeVBILyDrkMLeemN9cEdGfIY3fFvZA175eB5Bv0KSnZ5LPMK55Qs0kgToXt30u7G0x7lxoDhOVSuChz5ZrMzLvg7i44M+l1p0ZDo5yhWsO60YkWFiMyB2wVdZ5EHsh+v5ljuhyY10Ibg6rLBWbPG9sLyXDqjFHc9huYIxGospmercLk7H3G+1VmlYPLdR32buPmBJGRkYMcsFVbkQKsNqBUl1NYBAdSZSjS49qTV/ZDc3HutwayNsp+iNV22aSO7XbYbqL8pa72+NkgyXCmkLCQd4gJO21yU9dKNxmuPNwWoydObuXaSlnw73+XzFfvfl+UtodS/VbdztSwO8dM7gZS4lEz6mUz5IEC/pQEuHwcARK0GoMm+fScSpqYVSwsgS3koZE85Zv2i/ZkLGlIH11uWfFg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(136003)(396003)(39860400002)(451199021)(46966006)(40470700004)(36840700001)(82310400005)(40480700001)(40460700003)(86362001)(41300700001)(70586007)(8936002)(70206006)(336012)(2616005)(316002)(47076005)(478600001)(426003)(1076003)(7696005)(5660300002)(186003)(54906003)(4326008)(26005)(82740400003)(356005)(110136005)(81166007)(36860700001)(6666004)(2906002)(8676002)(36756003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2023 13:56:52.2462 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 09440f0f-7ff1-4c44-e299-08db764d31c9 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB8139 Message-ID-Hash: PNF4L4ONV57JQIEYA2TS322KAMT3UVGH X-Message-ID-Hash: PNF4L4ONV57JQIEYA2TS322KAMT3UVGH X-MailFrom: Syed.SabaKareem@amd.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> Archived-At: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/message/PNF4L4ONV57JQIEYA2TS322KAMT3UVGH/> List-Archive: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Owner: <mailto:alsa-devel-owner@alsa-project.org> List-Post: <mailto:alsa-devel@alsa-project.org> List-Subscribe: <mailto:alsa-devel-join@alsa-project.org> List-Unsubscribe: <mailto:alsa-devel-leave@alsa-project.org> |
Series |
Refactor acp legacy driver and add
|
expand
|
diff --git a/sound/soc/amd/acp/acp-pdm.c b/sound/soc/amd/acp/acp-pdm.c index f8030b79ac17..2833d2b7e596 100644 --- a/sound/soc/amd/acp/acp-pdm.c +++ b/sound/soc/amd/acp/acp-pdm.c @@ -135,6 +135,7 @@ static int acp_dmic_hwparams(struct snd_pcm_substream *substream, return -EINVAL; } + adata->ch_mask = ch_mask; if (params_format(hwparams) != SNDRV_PCM_FORMAT_S32_LE) { dev_err(dai->dev, "Invalid format:%d\n", params_format(hwparams)); return -EINVAL; diff --git a/sound/soc/amd/acp/amd.h b/sound/soc/amd/acp/amd.h index 38c152c6c8c6..82e0684cb284 100644 --- a/sound/soc/amd/acp/amd.h +++ b/sound/soc/amd/acp/amd.h @@ -164,6 +164,7 @@ struct acp_dev_data { u32 lrclk_div; struct acp_resource *rsrc; + u32 ch_mask; u32 tdm_tx_fmt[3]; u32 tdm_rx_fmt[3]; u32 xfer_tx_resolution[3];
Store the pdm stream channel mask, it will be used during system level resume. Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com> --- sound/soc/amd/acp/acp-pdm.c | 1 + sound/soc/amd/acp/amd.h | 1 + 2 files changed, 2 insertions(+)