Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1677690rwb; Fri, 12 Aug 2022 05:15:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR4UEUm7SbPWWyDYk1bYJODvd71LGY4lrSQKkQhIKLeZCQaqz66rGzf3IppUaSU3VVPj+WWa X-Received: by 2002:a17:902:cf0c:b0:16f:9023:e07b with SMTP id i12-20020a170902cf0c00b0016f9023e07bmr3633035plg.143.1660306504581; Fri, 12 Aug 2022 05:15:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660306504; cv=pass; d=google.com; s=arc-20160816; b=WGuupm2fiwA727qZUisa1FoKEeY6D+KBpilFG1iLQ+h6YWzoPNw8m3XFy9a5Ylu7O5 nUrYhYnu1jEalPps7MjtFw3Lu0UEXpqoXGKxhhifH+Rb9O99ElEvTHMkt7NyoQL7CwCO HHcPlnnr4H9R6ShmW5hFlIIbTaNCrQao4+hoo7dyOfJXYkisDFJsthikwNAWvBVtxTMi 1rEa5ZaPL8I7grOzlSCdNF0SC3pdzdJIGKlE+rXNIpJaT3CWcZaw9Jr0YMTzlWp8GZie NYFNGaan0IeTEYl3VW1jNxmS9blLu2ro7SLjPg/jSYu2JHAHfxvH/Q6NM58sU8pVgRCd MtUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CbGO7tM/xl3wFOB8TKkoqPAIyhxiWcGIRHFXCTy8avs=; b=XrrCag31srI6Qr2jue/rq1cHzqp+u3Fa5d3cTdBNCvMD2Gqu+n+DzcIPvPV6fmkqdH PUcoT9Dbv2Mcc732fKWWvoLsAfLvsm39p5Jj5oMQXvfIj21ng/4Z7HPNVUTvuWYL5Vnt 5GpzMic4i4WJw1GPsj8MC+iW1rXL2jrqSQb0WQaQdcwGnSRxb4mCFSYFsKUsZC/SRiOL bb5lvVt/FTET9zi9xzr8b8n5IqkqHfEGFt7dDtGm/GqPzLKgciGNjYz+lsdRv7Zy1GoK TkASMAy6C4Yg8KDAvLn79tZe+MvCecV26yHcQMnyhCv4IWbp49FuBo4AVfd7dj7b4JEP wqug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=hwMBbqiW; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hi2-20020a17090b30c200b001f53733825fsi1940824pjb.31.2022.08.12.05.14.51; Fri, 12 Aug 2022 05:15:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=hwMBbqiW; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238553AbiHLMMG (ORCPT + 99 others); Fri, 12 Aug 2022 08:12:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238578AbiHLMLi (ORCPT ); Fri, 12 Aug 2022 08:11:38 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2058.outbound.protection.outlook.com [40.107.243.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C9E02CE1E for ; Fri, 12 Aug 2022 05:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=loij+VH+l4dE/j61jPgB76mmbimkHQH+qHkqBb9A0oq2mTFPBcD4jCBhZH2+b78LtZEL/J5zUS3wIKuZmqYsneQzbwTamt9h4z5NX0hIPaGChBvAaVyyhalBJQT0QuFz74m0BedaKd5ICwZkNDcvCmEaxa4vvJc/XW/7ft2KnDFdmxFIe7jpuK9wdhHWKyWaHXCG4cv8OBmlGPS9XHlAt2dZxbNib+NrvR/h2a7XkfaDQ63NhCTdBkvTAqtYG8AVBR8QkO7digVsC76hhznJZmutpcFAHXV5LPKW/dfoDJWcCuUrFtufURLbj4Ga4/dSmZAi6Bv8+l5CwQ7YBClwmA== 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=CbGO7tM/xl3wFOB8TKkoqPAIyhxiWcGIRHFXCTy8avs=; b=XVVhTe/KrZDpkcF/3dim88IPiXrA8PF3QN8HHq8SXs2Pd2b+sNmsfkIjOGZ3LJaLMxz6fEOTRASLT8QQ88zozpjFSHqeJUN+fQR4FRH3CLLnpa2jMQuupalR28BzkCWLdtfzZduzxWbQ6CCZYgmKpUOYcCgeHhtvB92ZL3xMoGIKO4KqFV5b/FG8sundVv/Fs6RKzxHl68NjeKYOR6dnNi5WtdJ+cB0e7QUNanCifjhXqA1gprDxxLF0Vp3l87+VJ/7wLlkhdP+JMcbGdzL2F/jovJmrkaBh0a6UHN/lidNlrqjfX50eGWx8q6F+3wMmqeUCDQsAI1god3LmR0kP8A== 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=CbGO7tM/xl3wFOB8TKkoqPAIyhxiWcGIRHFXCTy8avs=; b=hwMBbqiWY5YR8Q2Vcv/JidPI89eMmR6SQjbIdO0uK+B7jsPIDX5yZ2kCQ8ZrV9DNovM7qx3Ei2V8ofPiPYIFH87I09ZH+X4VgLWGo2+iXxMJJ/+VBdyUp6sZehBswOWB9iAgrRDoSSezLFcTdiDTQHzQpoJJb2MgLYm8oxwH+4c= Received: from BN1PR13CA0026.namprd13.prod.outlook.com (2603:10b6:408:e2::31) by MWHPR12MB1165.namprd12.prod.outlook.com (2603:10b6:300:d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.16; Fri, 12 Aug 2022 12:11:34 +0000 Received: from BN8NAM11FT093.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e2:cafe::20) by BN1PR13CA0026.outlook.office365.com (2603:10b6:408:e2::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.16 via Frontend Transport; Fri, 12 Aug 2022 12:11:34 +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 BN8NAM11FT093.mail.protection.outlook.com (10.13.177.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5546.7 via Frontend Transport; Fri, 12 Aug 2022 12:11:34 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) 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.2375.28; Fri, 12 Aug 2022 07:11:33 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 12 Aug 2022 05:11:32 -0700 Received: from amd-B450M-DS3H.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.28 via Frontend Transport; Fri, 12 Aug 2022 07:11:29 -0500 From: Syed Saba kareem To: , CC: , , , , Syed Saba kareem , Liam Girdwood , "Jaroslav Kysela" , Takashi Iwai , open list Subject: [PATCH 11/13] ASoC: amd: create platform device for acp6.2 machine driver Date: Fri, 12 Aug 2022 17:37:29 +0530 Message-ID: <20220812120731.788052-12-Syed.SabaKareem@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220812120731.788052-1-Syed.SabaKareem@amd.com> References: <20220812120731.788052-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-Office365-Filtering-Correlation-Id: 281a38d9-1481-4de2-861b-08da7c5bcc8b X-MS-TrafficTypeDiagnostic: MWHPR12MB1165:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kv5V2ei/a1x5o+IYZBLs9k9uEaGT2J8zirnlhhB6P/aSTqQgXLD1PioCpbnQ3KjobbIRbrMP6naF9b3ucUx04GqjtmlYGnuw9/Nbsg4sc+RdjmxK9MpSOOxp8M8F8yjOiRs76KC+N7lYUrtwEz267Kfm3a1Nf7eQraOzp0TYQR3dAwzkLcDjFgRgf/MbEi9mI1DEAHFPtanUW54ZisANtPcyS7AkqY4weOU1VNTBLzd3IydeUzzXaUMYlg/gKZyPPUwUkFMHfjqVpWcweF/lL+eA/DSynvbUQutIJKCh0s06AxT2IxIlasqpCvHdWIG8+re4Wyjysbn8xmqvmPJ+zeHv908/GosJh357qoXFHeeH8XV87OA+S7ItsXM02OdNCCJwIwpT5oNc3P5xy2+CPVupDJ/8LOmg36W1nIVXAQIdO8K4jx7mfZhIOerx9HmyVkRyWkcfkLp3QOPPdTw3ouQEytRgPpd4rCRRPwu8ij+7Ph0XH7kflGX2gV+XcSdny4ChAi6YMhMZ86ry4m4xhJRVjYjIL86kXMnXWrBb8cvqTb95v68bVTujCpa3yrBpj47IwYO/wTKg4CNT1fo2T71H96MMnt4vC7pLB7VVNt+1iF9gTr0ePNXT/h8vYmEF7bVHrYQpZ18QOMIyG7eCOqcu/uoXPR/5ovLKkBH8yO+B0tb+XmW2cFy7oA3GiTMN/0tI/oRxAuv4VbCIRciGfNPlrWznCySubXEK8ySpQRSz4SSHNxlzARS43MOEx6yVwdnzfNcE3O7MVbzdMmvq2cfPOYreGCYGxYBQ3jQUQl1+pfgOD7SaGMjIRIXT9rEteLgnol7L7JXLBSUT/n2VKg== 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:(13230016)(4636009)(39860400002)(396003)(346002)(376002)(136003)(40470700004)(46966006)(36840700001)(336012)(8936002)(83380400001)(426003)(81166007)(70206006)(4326008)(356005)(1076003)(70586007)(2616005)(186003)(478600001)(41300700001)(86362001)(26005)(8676002)(110136005)(82310400005)(54906003)(316002)(7696005)(36756003)(82740400003)(40460700003)(36860700001)(47076005)(40480700001)(5660300002)(2906002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 12:11:34.1129 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 281a38d9-1481-4de2-861b-08da7c5bcc8b 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: BN8NAM11FT093.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1165 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Create platform device for acp6.2 machine driver. Signed-off-by: Syed Saba Kareem Signed-off-by: Vijendar Mukunda --- sound/soc/amd/ps/acp62.h | 2 +- sound/soc/amd/ps/pci-ps.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/ps/acp62.h b/sound/soc/amd/ps/acp62.h index c5b99e0b81fc..d6ac5781acf9 100644 --- a/sound/soc/amd/ps/acp62.h +++ b/sound/soc/amd/ps/acp62.h @@ -11,7 +11,7 @@ #define ACP62_PHY_BASE_ADDRESS 0x1240000 #define ACP6x_REG_START 0x1240000 #define ACP6x_REG_END 0x1250200 -#define ACP6x_DEVS 2 +#define ACP6x_DEVS 3 #define ACP6x_PDM_MODE 1 #define ACP_SOFT_RESET_SOFTRESET_AUDDONE_MASK 0x00010001 diff --git a/sound/soc/amd/ps/pci-ps.c b/sound/soc/amd/ps/pci-ps.c index 7e2f68d9fc2c..3172db1b728b 100644 --- a/sound/soc/amd/ps/pci-ps.c +++ b/sound/soc/amd/ps/pci-ps.c @@ -237,6 +237,10 @@ static int snd_acp62_probe(struct pci_dev *pci, pdevinfo[1].id = 0; pdevinfo[1].parent = &pci->dev; + pdevinfo[2].name = "acp_ps_mach"; + pdevinfo[2].id = 0; + pdevinfo[2].parent = &pci->dev; + for (index = 0; index < ACP6x_DEVS; index++) { adata->pdev[index] = platform_device_register_full(&pdevinfo[index]); -- 2.25.1