From patchwork Thu Jan 18 14:30:19 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: 189221 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp378793dyb; Thu, 18 Jan 2024 06:31:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/nA9WmJ4PzK6LM3S0vKHz8OCPs/BxjhA2uC6FpQtrOVTKtIGFQXT+a/DrKmTBjHMounM3 X-Received: by 2002:a17:906:3853:b0:a2c:1b17:d261 with SMTP id w19-20020a170906385300b00a2c1b17d261mr336834ejc.6.1705588262366; Thu, 18 Jan 2024 06:31:02 -0800 (PST) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s5-20020a170906c30500b00a2c1061b45esi6650449ejz.384.2024.01.18.06.31.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 06:31:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30197-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=0GsojAh4; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-30197-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30197-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CEAE81F2733B for ; Thu, 18 Jan 2024 14:31:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63076647; Thu, 18 Jan 2024 14:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="0GsojAh4" Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2083.outbound.protection.outlook.com [40.107.100.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 412F91E87A; Thu, 18 Jan 2024 14:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.100.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705588242; cv=fail; b=VTW7u4jhJ4N8PJSrztJ+4T+HuXj696HwP/522u8fBtkETZqhupM6JLmJ+m4WEeBP0w8+mluWgblaZSEkjclU7XtagY2DfMag9+Azn2EyGZuEuL6qCnNj20gZ5AS2rWYbecaq7hVPYOx6jmObTyvGYEnOe5+8iGsnCqFgRvG1eAE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705588242; c=relaxed/simple; bh=ylSjPkkGJ8BeL6beWllqIu7WO1+Woc+cSxpoGcJTrh0=; h=ARC-Message-Signature:ARC-Authentication-Results:DKIM-Signature: Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type:X-EOPAttributedMessage: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; b=X+OHutjAI7AisDxTHxhPtThaaDzvX2C7sjzI7gzGUUuSYAP9u9dLAm8KsK0iel2DVOFbVbNNEexchcTmPGKK5fupkCnwLNNmSDBoqKjj3gmx2De+9XI7+C5DoPoOzYJqzx8AsUAWDDIBQD93Ho/Nkaa5aIiwFQqe2bcicbqyiWc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=0GsojAh4; arc=fail smtp.client-ip=40.107.100.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q+SvKPlBE9d7K7lAwiNxCVoRtt+OEKFXyUz7QunxYY6Gz/nsdvlDijpTvDzbR9R3vazT0Y2+4YM/VnKO5E+K9FTWK26A0hfKZ1OqRbNbDrS43aY38Vi/YzpZbT0Oiic5rnOgunEKpB5k8UAqkkYx5lHdjYOIO3KYw7Cu3LmqklMyuofN1p2oBsxWaCeGBbKn2ceSQQcE9oJKFl1yVA6tTQGHbxO71pY/WOmcZcfBwIFlEkORqMuRdfHckzYnGAi1FoybbPZASfx5XeN+jPw2JtzpFycYHEunbT1g0ouPqSwn4FignZ41C9yR+oF3eu5IJDKABur+y7vowxEqcA0itQ== 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=n3xET7IjH+V2KLOSOX+7zCVySi5nBDvoo7+XKjtjYeg=; b=BX0Ztvj6CbO7SwZn5EhcmeYskAXEA0t70g3vTxBs3o9ygyabh3QZjNCDi4B000WYjyXZjcr8tyiyIR48jBsbt5kAbMIRAj1wGEj1AFC78dEjttyTLaCpStwUk7vAD2J7cnLtEBogW/61uJezL95tBe2qhwN6RFn/oc4yv1xMFAiMnGH60585QGtCw1eyQZlpg59mbkjriuKgPH+YpTNZ+y5I0hZ0nmAsyxHGo22mL9Dw1y+6F4je3vEpGYOWx5KXnVzJ7sfZWwdxKK/9d9UzI9fFwQmkAaHCwLqIDCGwLT/MMf70brciUeWw5Yfw+CYgwi9IPmHbxDE/hIntDU3RYg== 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=n3xET7IjH+V2KLOSOX+7zCVySi5nBDvoo7+XKjtjYeg=; b=0GsojAh47+aw9PR/OFQUbZ6F51LO4exJqMTIw7ag2pcGVFretvtYr7/DeHOC05C7U2vZxZtw3Jeivptk2GgB0bSVydWXah19Xvole8SMo9tWY5D4FuQXYWPj0kmQEsg1kaAbO2OUudp7gHAlgmqnvjMvCMcEbj+MPfHiXgKRuuI= Received: from CY5PR18CA0036.namprd18.prod.outlook.com (2603:10b6:930:13::21) by DM4PR12MB6302.namprd12.prod.outlook.com (2603:10b6:8:a4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.26; Thu, 18 Jan 2024 14:30:36 +0000 Received: from CY4PEPF0000EE31.namprd05.prod.outlook.com (2603:10b6:930:13:cafe::79) by CY5PR18CA0036.outlook.office365.com (2603:10b6:930:13::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23 via Frontend Transport; Thu, 18 Jan 2024 14:30:36 +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 CY4PEPF0000EE31.mail.protection.outlook.com (10.167.242.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7202.16 via Frontend Transport; Thu, 18 Jan 2024 14:30:35 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) 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.34; Thu, 18 Jan 2024 08:30:32 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 18 Jan 2024 06:30:32 -0800 Received: from prasad-lnx-mach.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Thu, 18 Jan 2024 08:30:23 -0600 From: Venkata Prasad Potturu To: , CC: , , , , "Venkata Prasad Potturu" , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , "Alper Nebi Yasak" , Marian Postevca , Kuninori Morimoto , "open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [PATCH 1/3] ASoC: amd: acp: Enable rt5682s clocks in acp slave mode Date: Thu, 18 Jan 2024 20:00:19 +0530 Message-ID: <20240118143023.1903984-1-venkataprasad.potturu@amd.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE31:EE_|DM4PR12MB6302:EE_ X-MS-Office365-Filtering-Correlation-Id: 26c2a7aa-a6db-4938-d29e-08dc18320914 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q+IMjM6QxEEjsptgBWKDjuV+eKBZPpPqEswJe/GLcExkP8iq/YtbJsF3fQPd0u9hrfXK6vfQCfu6o8ENLNGTO97M2Ivk+M91AjJSpO60JSTevd0QHX0n52y2q3EzQHjm8ON/19grhLfHmgvFx+/w7AKVIFMFgoRw9uHttsiOJwbBW9twUy9xFbY610gvhUnIGo9raSIG+sLSZPGmUEHn9eYV6oSiMm2cj8s6EYTfiHN+8ODhdOJNxBOHhnWOBa6BxFals7JI2t4fWWfxc5Z8EnipJZMkpsSnDpSlhMXn2Z9JsAXxfEupqaMUuyQTszg1/jt2DiQnxoJ9dCuO+mhTjtm3iJjiIlNlx5sls65kzocZ2UTq7UN2ThYuAfjrniAw1NiqGXb1NLNuSHC6oxd0e5254SNYsLD9UR2td3d0IbB+pNTJpF6odiA6kS8hskCwiXUqwPCSI8AFRD+TCSkS+g2Uxr25M3o+PvwyeQSzE8lZgxL/YroRcRUOCSx+4pdWjrKGuCiu57x1fPa+wK7Spc2Qlq0VHes9ZY+jnN4sCK0UX4UCG+d2kxf/jmUGAs7exHl32wwgncvVi9F6lv50mHMQ1GIrrR6A9DhLlozNQFnN0hXmWGuZwh6dGUv59BJQgKblsIlZd4PmpK/IBCvfk3GIT0FcBIbjA8HnLwSGs1I2BmJl5/o8qd3H2AJQc4xz0AwCLoYf8hm1oArx4u9ie2bSwU/fhqPy+ZqnYOOZKU0pVA4zte3/Er9T1obNJpES339jTUa9kLLdBEep9/8n6g== 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:(13230031)(4636009)(346002)(136003)(376002)(39860400002)(396003)(230922051799003)(64100799003)(82310400011)(1800799012)(451199024)(186009)(40470700004)(46966006)(36840700001)(40480700001)(40460700003)(26005)(1076003)(426003)(336012)(6666004)(86362001)(36756003)(356005)(81166007)(4326008)(36860700001)(7416002)(5660300002)(54906003)(110136005)(7696005)(2616005)(47076005)(70206006)(4744005)(82740400003)(316002)(70586007)(8676002)(8936002)(478600001)(41300700001)(2906002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2024 14:30:35.8465 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26c2a7aa-a6db-4938-d29e-08dc18320914 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: CY4PEPF0000EE31.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6302 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788438917555137708 X-GMAIL-MSGID: 1788438917555137708 Set and enable rt5682s codec bclk and lrclk rates when acp is in slave mode. Signed-off-by: Venkata Prasad Potturu --- sound/soc/amd/acp/acp-mach-common.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/amd/acp/acp-mach-common.c b/sound/soc/amd/acp/acp-mach-common.c index c90ec3419247..a224043ccd42 100644 --- a/sound/soc/amd/acp/acp-mach-common.c +++ b/sound/soc/amd/acp/acp-mach-common.c @@ -505,6 +505,13 @@ static int acp_card_rt5682s_hw_params(struct snd_pcm_substream *substream, clk_set_rate(drvdata->wclk, srate); clk_set_rate(drvdata->bclk, srate * ch * format); + if (!drvdata->soc_mclk) { + ret = acp_clk_enable(drvdata, srate, ch * format); + if (ret < 0) { + dev_err(rtd->card->dev, "Failed to enable HS clk: %d\n", ret); + return ret; + } + } return 0; } From patchwork Thu Jan 18 14:30:20 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: 189223 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp379601dyb; Thu, 18 Jan 2024 06:31:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ2YnxXmZQcLZxMnciUuWlo+w0GorzBT1XJRcBuQHGQf03irL4Klij1e3paxHcVE4/37l8 X-Received: by 2002:a05:6402:34ce:b0:55a:4a40:91e3 with SMTP id w14-20020a05640234ce00b0055a4a4091e3mr571edc.14.1705588307879; Thu, 18 Jan 2024 06:31:47 -0800 (PST) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cw18-20020a056402229200b00559f7423926si955853edb.240.2024.01.18.06.31.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 06:31:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30198-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=weBsHIFM; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-30198-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30198-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 543EB1F23537 for ; Thu, 18 Jan 2024 14:31:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AF9928DAE; Thu, 18 Jan 2024 14:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="weBsHIFM" Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2089.outbound.protection.outlook.com [40.107.102.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E46B1DA29; Thu, 18 Jan 2024 14:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.102.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705588244; cv=fail; b=ADAdRKsU8WvcfFJaHPotMJB4DWMigZYNUcsR/cmzwtNm1M/5+XLIwOOIve8Wcoichf4iAhtg7YiwO7ETURAx3Me4+GR9URYSEy/GqipRKLBMPymB2SrM7LnoRYnt/pX42cJbk97Wkz38AI9nqgvNsxHj0JbSsALDCRM/SiosSeo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705588244; c=relaxed/simple; bh=gOfieN7490cPbJfPtXzRaXimfz+0dlzLF6vnvn+fG/0=; h=ARC-Message-Signature:ARC-Authentication-Results:DKIM-Signature: Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; b=rxQcXvynBYToE+C6efzDXsk98mP3fsEvA25/jTAe6Ni6ib+nTOxjUxxpKkMtLJZlUXMVzbLKci5E6/SiTf1dirH4JY2CP0Ij2eFatWmIlulR3jhjWrLT/zvrC4Vhe3Frv/93uvNlqGXsItLFIrmz/kavhiaGGV4bMf0CLDe4FNk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=weBsHIFM; arc=fail smtp.client-ip=40.107.102.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XBMaZLnnSZXpS9UMgyOprpta0871blnbz/7GwpoF1uHd38tXA702g8NQoEkx5KA3hRVF4khP2cLlc/vSrtaDev12UMrmkXUyi0Z09nclDGtS50QcVCz9uUrHAdPnxW3YMX4AcbonRv4ciSIoRDi7Rb9ueB+msaHLZQT4C7DSVliYmyPHjBaU7UNR0qdIxDHe6t+WDwo8x/Lrc2hMlXZG+9Uk0NExmM7M7IDPGhP7UQO9OHpwEYNDy/UrVVIAksD/Uy9gIgIyGEj+BlQadQjmsFyUf642Pj80DYhxiWqP6lKoh1yQJ0Hcsi+Df0MsEnHbgUZ10nTLqTFQEvUxjRzgAw== 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=aN0GYat31RrwnxVX0Dd5mpQethFz3y93HaqE2h9k7+I=; b=f6M1O6tbtyJjvf/IImEaAdgpeIdFG4M/pB3VTVBqxTsW+mqoamhpal5ZhTXirea2FwizjxqDTEctZL68ETaWnuwUCeimStLn8CnEdnUaHlNyXijxhpvLPPcWsXLerupzKPYKpPv/Y9rAX6ZPgjhNRN93q3POtUwXrv9kXyi96x4u4RPKnY2a9VNOli+WKglvTOjR0b/zD6gwxrLimHfcnOCvHcFfZsAYgYFKn9j63RwHDzWTYeGJUPIw4wZtYLcnrBOhM/jK4aYYLKiYiUxzjwvIWaivaGjyjDhqLqLmAP4+7TK3lmt3NXm1NxCY1nLzb6HbUIuqZx0x21CBrA5yjQ== 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=aN0GYat31RrwnxVX0Dd5mpQethFz3y93HaqE2h9k7+I=; b=weBsHIFMT+FDIT+5sIwp10UyBfV8ELFK0sH0Uq8wqgUcPok0QZTLAdZOKyvvUXTeNzS1Lw5vLr+sLRrEmGyHQFDOu4hFcKwyvCUq4uPCEVbcruOQEJ18c5w4AOlQ/AYvwZrT2+APgpAntujEdnuO8Umym3JCDy/HpbJLFFpGqHU= Received: from BL0PR1501CA0017.namprd15.prod.outlook.com (2603:10b6:207:17::30) by SJ1PR12MB6171.namprd12.prod.outlook.com (2603:10b6:a03:45a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23; Thu, 18 Jan 2024 14:30:39 +0000 Received: from BL02EPF0001A104.namprd05.prod.outlook.com (2603:10b6:207:17:cafe::1c) by BL0PR1501CA0017.outlook.office365.com (2603:10b6:207:17::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23 via Frontend Transport; Thu, 18 Jan 2024 14:30:39 +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 BL02EPF0001A104.mail.protection.outlook.com (10.167.241.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7202.16 via Frontend Transport; Thu, 18 Jan 2024 14:30:39 +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.34; Thu, 18 Jan 2024 08:30:37 -0600 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.34; Thu, 18 Jan 2024 08:30:37 -0600 Received: from prasad-lnx-mach.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Thu, 18 Jan 2024 08:30:33 -0600 From: Venkata Prasad Potturu To: , CC: , , , , "Venkata Prasad Potturu" , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Alper Nebi Yasak , "open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [PATCH 2/3] ASoC: amd: acp: Update platform name for different boards Date: Thu, 18 Jan 2024 20:00:20 +0530 Message-ID: <20240118143023.1903984-2-venkataprasad.potturu@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240118143023.1903984-1-venkataprasad.potturu@amd.com> References: <20240118143023.1903984-1-venkataprasad.potturu@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A104:EE_|SJ1PR12MB6171:EE_ X-MS-Office365-Filtering-Correlation-Id: 352d061d-900f-4030-af41-08dc18320b35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TMgoeRtec49+1a3pSKD1WP6kQGbheSmasH+hYFF7QoPy9WRDemNzKkeVNC4c2VQWEt79nsRNsZW54jhG0g8fIr9ib6bPRA18S7oAW9tHFMOQYp64Hs0P/JDGZQrq59/krOjCbIKAmCKeB2NDg9OMxkqhmnUCBv1bUgTv7nhSigmPpCI15z6AgDgSgWmXBRFs8g1f9kd1vK9dM732RD7CEBe3IVM0o+/Pb2qgl7CaWnvkMZ0DGdaZy1vuIER0jxofIxDIXjGcqDEDAdQwQfrZDIj+0jynZ9tR4WjHGl6Cys5CqdFTan/ApRZsawKl75ZH+t9niPJVDrQt3SjaFPZQ+/TEAhwOQeGSTBlNIHnE5DKBGxCa06naXK4ozJ1prSTBZFfoRF8OAHmINFg7JKwsL62uEXWoVpXXgGDj9EzDVseYHv+/PYgTw7FzR8s0ab0fZrEHZ0rF6d7PlIE2AzVLkSkNYZTXGOwCaFIPIyFQji7YFnmdk43VHqZ8hykGBFjxinHJrE7ZFujXmsMuo/zeaXbw5ehvRkNsJV7ChxLzsbDLv4k/cWdNvlY22R5eEklWSWjITtWPBAx9zltgBehAYlf3k+mi9j5kZ+VtxPCf85z2R7simi9zJrQfy1QmYRlaFCml1aQLJo7tYfuLI0cWyvLPGtjcDGy5RMqr0Z6T/D7+FTsnE30AMefVqf4akU06pHjiMN/RZWoQzaCO/Vsjtv11wLFv2AQ02BxuqnY0daobuHO/URk+ozND74rA25J7U5Geuw3yK1obfTImS1H4Fw== 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:(13230031)(4636009)(136003)(376002)(396003)(346002)(39860400002)(230922051799003)(451199024)(186009)(82310400011)(64100799003)(1800799012)(40470700004)(46966006)(36840700001)(478600001)(82740400003)(15650500001)(41300700001)(36860700001)(86362001)(36756003)(356005)(5660300002)(2906002)(81166007)(316002)(2616005)(6666004)(70206006)(70586007)(54906003)(47076005)(83380400001)(426003)(4326008)(8936002)(8676002)(336012)(1076003)(26005)(110136005)(7696005)(40480700001)(40460700003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2024 14:30:39.4954 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 352d061d-900f-4030-af41-08dc18320b35 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: BL02EPF0001A104.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6171 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788438965108780861 X-GMAIL-MSGID: 1788438965108780861 Update platform name for various boards based on rembrandt and renoir platforms. Signed-off-by: Venkata Prasad Potturu --- sound/soc/amd/acp/acp-sof-mach.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/amd/acp/acp-sof-mach.c b/sound/soc/amd/acp/acp-sof-mach.c index 2a9fd3275e42..20b94814a046 100644 --- a/sound/soc/amd/acp/acp-sof-mach.c +++ b/sound/soc/amd/acp/acp-sof-mach.c @@ -48,6 +48,7 @@ static struct acp_card_drvdata sof_rt5682s_rt1019_data = { .hs_codec_id = RT5682S, .amp_codec_id = RT1019, .dmic_codec_id = DMIC, + .platform = RENOIR, .tdm_mode = false, }; @@ -58,6 +59,7 @@ static struct acp_card_drvdata sof_rt5682s_max_data = { .hs_codec_id = RT5682S, .amp_codec_id = MAX98360A, .dmic_codec_id = DMIC, + .platform = RENOIR, .tdm_mode = false, }; @@ -68,6 +70,7 @@ static struct acp_card_drvdata sof_nau8825_data = { .hs_codec_id = NAU8825, .amp_codec_id = MAX98360A, .dmic_codec_id = DMIC, + .platform = REMBRANDT, .soc_mclk = true, .tdm_mode = false, }; @@ -79,6 +82,7 @@ static struct acp_card_drvdata sof_rt5682s_hs_rt1019_data = { .hs_codec_id = RT5682S, .amp_codec_id = RT1019, .dmic_codec_id = DMIC, + .platform = REMBRANDT, .soc_mclk = true, .tdm_mode = false, }; From patchwork Thu Jan 18 14:30:21 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: 189224 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp380158dyb; Thu, 18 Jan 2024 06:32:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeUqn0aQa62VzS3FjjSFzdpbF2bplt33sJiNklUb+BDaRlaeUHqcbx4FcUgzrsh/he7Hgo X-Received: by 2002:a17:902:9a42:b0:1d5:9983:bf74 with SMTP id x2-20020a1709029a4200b001d59983bf74mr778077plv.105.1705588354861; Thu, 18 Jan 2024 06:32:34 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y1-20020a63de41000000b005ced9797d6asi260588pgi.410.2024.01.18.06.32.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 06:32:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30199-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=a5EubFEg; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-30199-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30199-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4CDD82856F5 for ; Thu, 18 Jan 2024 14:31:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 935941DA39; Thu, 18 Jan 2024 14:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="a5EubFEg" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2043.outbound.protection.outlook.com [40.107.220.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9C92375; Thu, 18 Jan 2024 14:31:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705588272; cv=fail; b=dgSDIDPGsmP+6T3uheHQJlGgkBAPYpu/FmRzCRUki3iXTuHlwla+WXYqOihcsDoUJng99u12Tk3TDqwPSSzpQbbb4/Cdps5ZIKOtMPfBH4Pluz3cpbx/jUGteriOIKLkinKKpLQ8YH4JWisr1WdISkDbn5th1ObyhYtFdc39Acw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705588272; c=relaxed/simple; bh=TarCZNF34cbkJ7TYEXJ436XSxx3DfZJBwH0xaz4cvQc=; h=ARC-Message-Signature:ARC-Authentication-Results:DKIM-Signature: Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; b=ngOmqJVU/pp8xt5ho3lRn/51jQCUlPVBlFvtZ1BKhauwp4B1KGTVvKmS77g3S3oLFdUhN3AzJA67y/7MSUP9zirxawLk0sjpmjFhubU2N4VcHWcj2aVtLkDag/N0fN5fyrxLIqtH2dL5ziRSKudIXqpL9QWxDCKTySWaqJHWCEs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=a5EubFEg; arc=fail smtp.client-ip=40.107.220.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=odpYJCrgEC42068Qqb0LW1YupiRT0zk2Gxu1MClToIbbiM54yke+csFVAbjDrmx5rEOFDlb2FMwnY5t65papIICARuMklXMOPCMP8s9+D+hhLgClODCNOUT+8oyL+sL8zgy0B2i68kJrstaHfdrwj1J7OcvtUGv6x1IKbV9c9UAtlKSPaFALDom5srZqEPsf+nPclms4en7HJKekKK5SKFwlA+z5TaOO/s2NEvvrnFgylCRAFvxltaBApmwaulhVYeS+wMhxkWyUOuVsW0eMXaH1fR+O3xPM+UIyytUhbOSp2/FoqR4NyVaFX2GpN+lhkwNsnrQ29e8XUka6zHp/mg== 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=pFLmCPJjJFH2XLuYXiy/wIG1LVjbj4rTcbORql18LHI=; b=i/Epjo2EShYrkrs0kMtPYNImdVR1Phh7nm0qDtsyGIDQHUvmPJsspOsXnWNLcHq3Wt48rCb2Ah63xzgn/VLRLdV/ZONCSuABnGg0ubaSikGrb1tcUmgtUP7gposkazdk4ZsF/xTt/Q5g5Gj2ZjrvWKzS0vH/jo4foT1/q40Oy1YdTqwZA+9buMj0k3wmDrOrJiCPwPTBk0Xj80bMTgmT7Y/fy8sxGDatc9PFQaESUein5Mq5gdGz7xlqh/gJlGyEpsXfmuP1H8a/BUZm5XsvvTP6FqH86zncG+58yIJt1SJhj7O1TZ5xtAgJL2pMA0wN/4BkiMv+wTbdd3Fabkc3vQ== 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=pFLmCPJjJFH2XLuYXiy/wIG1LVjbj4rTcbORql18LHI=; b=a5EubFEgrlmk4rgcdrpXVvbM6uMSYpAYuTdKvxAES/quOcAM2W089HJf/OySQAxFkEmZhENAmwkN/oNODsEB7XlJL3ZwCdtUnKyZiw2D6lnWUoDSj4/3GheqmrDi4uUyj/CLDP7BAsglLAbOxsAH5Z5iiHTniyTU1ScdU8KVrU0= Received: from PH0P220CA0015.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:d3::26) by SA3PR12MB8440.namprd12.prod.outlook.com (2603:10b6:806:2f8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23; Thu, 18 Jan 2024 14:31:06 +0000 Received: from SN1PEPF000252A4.namprd05.prod.outlook.com (2603:10b6:510:d3:cafe::42) by PH0P220CA0015.outlook.office365.com (2603:10b6:510:d3::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24 via Frontend Transport; Thu, 18 Jan 2024 14:31:05 +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 SN1PEPF000252A4.mail.protection.outlook.com (10.167.242.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7202.16 via Frontend Transport; Thu, 18 Jan 2024 14:31:05 +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.34; Thu, 18 Jan 2024 08:31:01 -0600 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.34; Thu, 18 Jan 2024 08:30:47 -0600 Received: from prasad-lnx-mach.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Thu, 18 Jan 2024 08:30:38 -0600 From: Venkata Prasad Potturu To: , CC: , , , , "Venkata Prasad Potturu" , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , "Alper Nebi Yasak" , Marian Postevca , Kuninori Morimoto , "open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [PATCH 3/3] ASoC: amd: acp: Add check for cpu dai link initialization Date: Thu, 18 Jan 2024 20:00:21 +0530 Message-ID: <20240118143023.1903984-3-venkataprasad.potturu@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240118143023.1903984-1-venkataprasad.potturu@amd.com> References: <20240118143023.1903984-1-venkataprasad.potturu@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A4:EE_|SA3PR12MB8440:EE_ X-MS-Office365-Filtering-Correlation-Id: 0cb750a3-ae23-4e09-de35-08dc18321ac4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iIYkavs17ip8vpKI3cAIHUryf7zrICBsaZZG81JWxriskMqPmKgvz+BcNLK3x/kJRZPqDg59vjhzGl+U+eqnIgPwR8TC3mK9YTAShLRDNxTii4rh52vRgTN7336K71IrvM1dMxdsVxoFtYf3G0s+Ug1wnP76QwXpJNMFgeVc5qv3sO61wKXIF6BnX5xQNkzTZST6ev5QrEJRJmd2QQPo0+SQfCqE9b56ovgIj5UEk79ckt+SejSmNn4iIroHEFv2j5U9tKyXnysxYkZAaPA/Ny9i+oZlwjp8f6TMazxmStS96UD/4qkigb2l4O2AFmBu1UEtLNRwyYYuUWDtYd+41gZXTOfzFky6v/NJjT5VvYk1X4X53F5n8+v6JBe/+KDo0HC1l2z7/IkYtSwDdS3aJAE6ZXXn/z7YP/FNTmc0tT+l5BhaQtnWwN1Rb5cH9viQfOeZ39rtfqOvrQumhkOW0EM9r6qXzy68/lAE/O7HTgGxy8gLC2i6ucdWZsAiO2qWR48NsknpeqOhexe0l/UaDcEITnIiyvpKtSFvIrMpO69bbJKsNOIKXoJmuD1H4GPsneuSlbbtMPr+VxIzdGH7DoAlAt7QKLuVL6X8BB85TBVHiNqo7Ax5/b320sH7zs37qKB9nEkhJE+uHebSZykhZbZ1hOqNbv8gzu2SJYbyT8ta9dfh5arqGqseQNDA/4iVI505MZaXjqX9zlxOjivYS03mRif3pwIcIho6V849wogh9FXrmozWBymUERy4j9UNfB4UfoN9+AXjgq4rjrPvEg== 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:(13230031)(4636009)(136003)(376002)(396003)(346002)(39860400002)(230922051799003)(451199024)(186009)(82310400011)(64100799003)(1800799012)(40470700004)(46966006)(36840700001)(478600001)(82740400003)(41300700001)(36860700001)(86362001)(36756003)(356005)(5660300002)(2906002)(7416002)(81166007)(316002)(2616005)(6666004)(70206006)(70586007)(54906003)(47076005)(83380400001)(426003)(4326008)(8936002)(8676002)(336012)(1076003)(26005)(110136005)(7696005)(40480700001)(40460700003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2024 14:31:05.5683 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0cb750a3-ae23-4e09-de35-08dc18321ac4 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: SN1PEPF000252A4.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB8440 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788439014851533370 X-GMAIL-MSGID: 1788439014851533370 Add condition check for cpu dai link initialization for amplifier codec path, as same pcm id uses for both headset and speaker path for RENOIR platforms. Signed-off-by: Venkata Prasad Potturu --- sound/soc/amd/acp/acp-mach-common.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sound/soc/amd/acp/acp-mach-common.c b/sound/soc/amd/acp/acp-mach-common.c index a224043ccd42..504d1b8c4cbb 100644 --- a/sound/soc/amd/acp/acp-mach-common.c +++ b/sound/soc/amd/acp/acp-mach-common.c @@ -1471,8 +1471,13 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) if (drv_data->amp_cpu_id == I2S_SP) { links[i].name = "acp-amp-codec"; links[i].id = AMP_BE_ID; - links[i].cpus = sof_sp_virtual; - links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual); + if (drv_data->platform == RENOIR) { + links[i].cpus = sof_sp; + links[i].num_cpus = ARRAY_SIZE(sof_sp); + } else { + links[i].cpus = sof_sp_virtual; + links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual); + } links[i].platforms = sof_component; links[i].num_platforms = ARRAY_SIZE(sof_component); links[i].dpcm_playback = 1;