From patchwork Tue Sep 3 11:34:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkata Prasad Potturu X-Patchwork-Id: 825346 Return-Path: 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 6D258CD3420 for ; Tue, 3 Sep 2024 11:37:48 +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 05FD014FD; Tue, 3 Sep 2024 13:37:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 05FD014FD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1725363466; bh=8jj3hGlDpc8xvEB4oNd2pNtRgH40vcvlsLeOhWwYHcQ=; 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=jQkSjz5qdugj+y+fxQijb3Ev8tALpmLnCRdKDK9MZzx9KozRqLtXfZ88SZjmsfWhV aLRUW8ntWDfSVcO9vqbpsuuUspELR7XRLME8W71nODKsgIfPd0jZU3MRBCzy3wKguP DVhCP+nTPMuGz8Vg6yHz+Ixwxj8gpRHD6gDl5Hjs= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 175BAF8061A; Tue, 3 Sep 2024 13:36:15 +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 670DEF80611; Tue, 3 Sep 2024 13:36:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E7E47F805B2; Tue, 3 Sep 2024 13:36:10 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on20605.outbound.protection.outlook.com [IPv6:2a01:111:f403:2418::605]) (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 1EA7CF8058C for ; Tue, 3 Sep 2024 13:36:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1EA7CF8058C 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=FFxyAHPD ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CpvavyQsF6sAM127lvU+lLRjHrEIy4Vb5qV6ueLWKvP85Lhb7Wmg5gZU04SuIwdzXqcHAvY4567p4nfef/jr4U7ZHW4C2nmb1OHbzBu/nqCt2Xgq6fQcHEzGAWxUCzOI735J2VkohTfruz4nYZ/QVF2BFqwFJmizqDc2OU4Cx8MjsicBsaV89uQqYmgpFJ9s2GgEekQRpy86OD1iNkS2h/PzLOdP92na5TF1X8wGIiCrq2ti7gOMR4cYdLe0VTfpopRczddjoziTMBwvLpkfISIwN3XOnhx9spsDaVTfKlMVzShYn1rRboyZ6AoFb7nJFKg1Dr0mwA2rUMt+4nAEvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=wgRp37pmD/yGMBYex1nMEZ3AFNDx0Sl/Mcav039Q0Yg=; b=xChw0nVfXJqb9FDQQXc4RwaVYobqaXU/qA7lHQIRUohPINbecQbSVGMxmYDuSAQnFfnpPvB9Pz/2FQLxBilNdinieTn5Nkm7OJSvMAiXPtLVVQoSSHo5BR7eJtHUZkusx0pD/W41CEWftswOq04pjcEeAoJa1v6uC1CY7FLmP4SlhK3xTuvdI7/N9kSyKD5oPxwnAssQpjquDY3mYoM8rJUyNOdcC9ke9XvQir6A5KosoRvTFFKEik8coqNpQORkY7cy57kw0djsUmIz/nN6JoUp4sQTqNe8RKAL0/aPmq+NyDJh47O1A1xMawK41anRmCmyGMLOnljCwOklEw91JQ== 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 (0) 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=wgRp37pmD/yGMBYex1nMEZ3AFNDx0Sl/Mcav039Q0Yg=; b=FFxyAHPDYuJ1fOkJXYtxhZzxGA/iSPaXK58RwFnA4TEzXJtIH3aeM1Bsas6E5/p5EMqyUDg0KaQgIPXUOKSykInW6+Har/Qx8pjMMCdTtpoLSGNLTJDedHx9f9JcDXSsS2fJhAMBRqCPq0wkw/Oq9q4QeJNsiBSjHC+TvwVS3LE= Received: from SJ0PR03CA0009.namprd03.prod.outlook.com (2603:10b6:a03:33a::14) by IA0PR12MB9010.namprd12.prod.outlook.com (2603:10b6:208:48e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Tue, 3 Sep 2024 11:36:02 +0000 Received: from SJ1PEPF0000231A.namprd03.prod.outlook.com (2603:10b6:a03:33a:cafe::31) by SJ0PR03CA0009.outlook.office365.com (2603:10b6:a03:33a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.26 via Frontend Transport; Tue, 3 Sep 2024 11:36:02 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SJ1PEPF0000231A.mail.protection.outlook.com (10.167.242.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7918.13 via Frontend Transport; Tue, 3 Sep 2024 11:36:02 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 3 Sep 2024 06:36:01 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) 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.39; Tue, 3 Sep 2024 06:36:01 -0500 Received: from prasad-r9-mach.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Tue, 3 Sep 2024 06:35:52 -0500 From: Venkata Prasad Potturu To: , CC: , , , , "Venkata Prasad Potturu" , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , "open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [PATCH 08/12] ASoC: amd: acp: Modify max channels and sample rate support for acp70 dai driver Date: Tue, 3 Sep 2024 17:04:23 +0530 Message-ID: <20240903113427.182997-9-venkataprasad.potturu@amd.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240903113427.182997-1-venkataprasad.potturu@amd.com> References: <20240903113427.182997-1-venkataprasad.potturu@amd.com> MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: venkataprasad.potturu@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF0000231A:EE_|IA0PR12MB9010:EE_ X-MS-Office365-Filtering-Correlation-Id: cd108cb2-98cf-473a-9d74-08dccc0c96ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: EOdvk17WGEgruvUo/Bi9BPVT8DdX8ktH+hU8X3XMoz2kSTxtJTg/a7Q2KTNWw175SWo0dOltyO4E/7d7ah0ehbs0OMQVLp5yEoNAVMP92s2oB6hN3RJpK0C3jrQRde8OtGsDELxQDgOoDqDyZkJXm31pDuDFfb3GndBU2sh71mK9iwcB6fMcR3daaSm5uHGn9OOZnvcAyLqA5IBtgTorhXqCaXK4nKCNK+kfw/3HyehtPm6CUtDv9Ceb1HhUfCKtnOb7XF2Ijlj800mCvWcMW23ahIj48pGrPXnienNaPkKII0NeHM0uypG5Co4q3AHGCHhU+urklfKqTsJH3yhRv85mXaiwW+rZhlkKafmlJYAPq/yvgTQrkLew8l87dONzcnBY7kjV7aQuo5ob5Qz9SxxqRVBHsXDoMcR6yPJIwICPKSNrwgVJxdyKJME2eX3nZ1UjcTCZ6dRJRuC/f06w3CrEwRG20MRQuwonTnfOziLtreFSUVo/ORCynM8+re1sjRaSQvGWtvpQNkwpmI3is72UAR28kYRSLkpf2zOOYOP2COeG8o+RonlQkS1RCcEwJtuI9d1lZvB5ZuD2O2q0Ecl8P6If519zb5+H4R4OZF6NKj+IyYBbm0/EtUUHxKiN6arBJqzAZlzwlF0e0C9KHokhCgNKn7R7lWpc55AL9iRfb6+oqZbFQ9/LVbWfBQaFUJTBU7+121d3PlsyCd5j4KjqinFV83NbufQJy8gUUaW+JIMB/RX1zfdR31wO/6aMQ/VweOUW9PioL2cyuVS37dhQs2k+9EZmvJ4l5mJJAoPNwUmFBbFBYEtHIp8PbjT+nmLfnm0sv4Jtq/uxDG3PLbWq6dbPUQA7+VBgqxeI2XNm172eLZLWuOano6422xpMpRns7xlSFoocC8aYehnbo/eyD2PeodPTSx00ZeoCW9uPMz6QISWGv6iTELjn8MEW7S2nDb4DiQnchzFcBpFx/ahaNTYknBYlVLb1Oua6G93mB1+FsUtv9CCXRg+3A1EG+oYtRZWOSgkyQslJH3AgXAuI/vIV3uiJ+Ezic8fl9DuFpfbeywyW7GrnBQLutcjVnTd8/iBYQktk/TaSk3JNNVP9sCbV7YfDsQqjLqwVEbtf4hcY7HbZ72gsNnhwyefMg+hZn3B2kb8jcyEipqanMCBoNq7uEkkGFmRAv89mZoz8pEiLepzuY3mDpHsWYq3K4Np+BrgDxt3/+640eP98D4PMMn6e2oTxFy91trpBo7aFL1w29dwtqv+vqLeD4W/SRH2Kpeg0aMbqiwaGFNrG6bug1xYA9C8ZJsTJP2Uib1WW+QJTOzrObvf3YPt6056xv5wBqQgEtpd+0r63O7ha8TIt7X0g49e0zQzj1aGUSQVL4TT23r8dqwJFFxeFTwmdNdQyGoKE/OTJh/jZ7IeDfT9IF/V+Hv+VjAQZxHZvToxheXhJsjgYG5rRfzTqi4UC X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(376014)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2024 11:36:02.1837 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd108cb2-98cf-473a-9d74-08dccc0c96ea 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF0000231A.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB9010 Message-ID-Hash: JD2CNYSMRUJTRYUSOBM72522X34J6MGZ X-Message-ID-Hash: JD2CNYSMRUJTRYUSOBM72522X34J6MGZ X-MailFrom: venkataprasad.potturu@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.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Modify max channels and max sample rate support in the dai driver for acp7.0 platform. Signed-off-by: Venkata Prasad Potturu --- sound/soc/amd/acp/acp70.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/sound/soc/amd/acp/acp70.c b/sound/soc/amd/acp/acp70.c index a9be059889b7..a662c7db7506 100644 --- a/sound/soc/amd/acp/acp70.c +++ b/sound/soc/amd/acp/acp70.c @@ -52,23 +52,23 @@ static struct snd_soc_dai_driver acp70_dai[] = { .id = I2S_SP_INSTANCE, .playback = { .stream_name = "I2S SP Playback", - .rates = SNDRV_PCM_RATE_8000_96000, + .rates = SNDRV_PCM_RATE_8000_192000, .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, .channels_min = 2, - .channels_max = 8, + .channels_max = 32, .rate_min = 8000, - .rate_max = 96000, + .rate_max = 192000, }, .capture = { .stream_name = "I2S SP Capture", - .rates = SNDRV_PCM_RATE_8000_48000, + .rates = SNDRV_PCM_RATE_8000_192000, .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, .channels_min = 2, - .channels_max = 2, + .channels_max = 32, .rate_min = 8000, - .rate_max = 48000, + .rate_max = 192000, }, .ops = &asoc_acp_cpu_dai_ops, }, @@ -77,23 +77,23 @@ static struct snd_soc_dai_driver acp70_dai[] = { .id = I2S_BT_INSTANCE, .playback = { .stream_name = "I2S BT Playback", - .rates = SNDRV_PCM_RATE_8000_96000, + .rates = SNDRV_PCM_RATE_8000_192000, .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, .channels_min = 2, - .channels_max = 8, + .channels_max = 32, .rate_min = 8000, - .rate_max = 96000, + .rate_max = 192000, }, .capture = { .stream_name = "I2S BT Capture", - .rates = SNDRV_PCM_RATE_8000_48000, + .rates = SNDRV_PCM_RATE_8000_192000, .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, .channels_min = 2, - .channels_max = 2, + .channels_max = 32, .rate_min = 8000, - .rate_max = 48000, + .rate_max = 192000, }, .ops = &asoc_acp_cpu_dai_ops, }, @@ -102,23 +102,23 @@ static struct snd_soc_dai_driver acp70_dai[] = { .id = I2S_HS_INSTANCE, .playback = { .stream_name = "I2S HS Playback", - .rates = SNDRV_PCM_RATE_8000_96000, + .rates = SNDRV_PCM_RATE_8000_192000, .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, .channels_min = 2, - .channels_max = 8, + .channels_max = 32, .rate_min = 8000, - .rate_max = 96000, + .rate_max = 192000, }, .capture = { .stream_name = "I2S HS Capture", - .rates = SNDRV_PCM_RATE_8000_48000, + .rates = SNDRV_PCM_RATE_8000_192000, .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, .channels_min = 2, - .channels_max = 8, + .channels_max = 32, .rate_min = 8000, - .rate_max = 48000, + .rate_max = 192000, }, .ops = &asoc_acp_cpu_dai_ops, },