Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4212883pxb; Thu, 14 Oct 2021 00:19:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygaAFYV/SgleGoUIaEH2s5ZEul/CEpkBldFr0KXZnLg808C4vHH6txm0EbBCBPnv5iSKIJ X-Received: by 2002:a17:903:32c7:b0:13e:ea76:f8cb with SMTP id i7-20020a17090332c700b0013eea76f8cbmr3598154plr.74.1634195955402; Thu, 14 Oct 2021 00:19:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634195955; cv=pass; d=google.com; s=arc-20160816; b=Wd8mkPiJorQ56a1y+dvTY7NFMBn8Tt6oINwXOH0NXpPftnBrMmz+neTGIpm4YcYvC4 cPB+pMHEAOlVIYyPrSzomFBu6x2REwCRd14KrtZaZDG2nhtLY5FXB8TLLkqIgOwfYFxl UC2iTr/6fk8dTVOPF+noGN9trCy+pjTO3cWoFbTkoxjAqrDve8g5KKYLvPTmIX4iwIq6 FRaCfmQLddkY/kCeRfNuXP5tcfJQNCow+jcA4C1lMCxps5aEZwKzebir0E/eMtNwsJ0z ouhfLGXp4YZC/dX2edeR5Qmj2LdrKNyGvxf7n4SUOkJx/UL7hzs1SpxSwg6Llt047dkI 8VOA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Xsxc3ZmGFyI6adXcbcAw39bXBuF/LB9n7dxuiEdKFyw=; b=wsNV3MQG5ONwbnSNiN2VTxy5ft5zuAaWBdaZoszCHlbjxd10zYG2juALJp4GBLwCfh 0LHMjdiTKyafdIsEYr74qjWErgqCRqf/szqDgcO0UX4d7N0TwmjBfy/ylcbfw6Rcu1DJ koQpKMquggm1IsC7x8YB4SG0RwA+H/jzb8y96pmt3leX+g9/hQI8Uz8+XsRMjuPXDSnk t9TcnsuvbPp37/kVBxHLzRUbvg7r8lIFMRoMqWp5uspUtpcy11lH8vYCpdvD/N/CSf+3 wyYDBEb33NWGmi31vraI+e/XlLvfdZsdKmg+Nl6DMNl+uf3GKMm2RBPxGRkfsTIf9qkv myTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=XhU5XTdy; 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 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si2330202plq.104.2021.10.14.00.19.02; Thu, 14 Oct 2021 00:19:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=XhU5XTdy; 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 23.128.96.18 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 S230007AbhJNHUA (ORCPT + 99 others); Thu, 14 Oct 2021 03:20:00 -0400 Received: from mail-co1nam11on2086.outbound.protection.outlook.com ([40.107.220.86]:28768 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229551AbhJNHT7 (ORCPT ); Thu, 14 Oct 2021 03:19:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jGkmpISn83/mu0+pw3UkrO4xPx0A32KjwfGjxSzPG0SXVuNy+vjo7AgXID8+IIxTNgIeUQifYxvOpLV3cgdtzkU6NOtprPegEG8VUe2KpuCpllumCjG+sydL7f63y77jDY2FMNFUpsS1QCXiACx5rsCSi2kNapqvMLPiwYc/nS5B0I9ZJ98XOdOuzm72zewYFpOUlNZVECP8tdIFIkRKg3Tl88PyoshE6lGN7aKQHhgNhrcpP2zZRl3t53/c+MjY5Fz4NkdHDBBj9QVOvL3+bpGQjBXj1gM8mjdBvS5IbgaiP+UIa2hcm0AX4Y8cV4yRPOJsajmoJKf81RTc7DNm1A== 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=Xsxc3ZmGFyI6adXcbcAw39bXBuF/LB9n7dxuiEdKFyw=; b=N+fxzsQBrdEFj5JoG8OweLSE+3cHWjlhUtXHYMdNl1DesJkiLP4f2K2V31WwtMSJHlhOirnY6T659ggckybiTRPCEzqrb2PRPpGPF4KgWI5fpSsRS3vo0dz5nObVej+pP8bn90LSVDuqdsIyLGvFF5bBq/Aj4QZehLtt8NrT5leAOl/G1IYsahFQ0HKhIF4/U1xZFAKMNkNpgzH2TO3AyarWfFd8kqJq0BOAO/gHyEEvCjF2W4NgmD/5WxDGrUC5PB3+tBQZ13IFawfwRYee7nQv2eYfmRYh1bMDK3OitMYxkRWvkkxz3/6clvGOAXiOTT4ErR8Hf29K2N9G5lw1+w== 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=Xsxc3ZmGFyI6adXcbcAw39bXBuF/LB9n7dxuiEdKFyw=; b=XhU5XTdyNtwhl2P84jA+3eYTr0rMdhplA8noj8I0qVE2AcCXUCiGDn6fPHAjteYLWvOexSBbWL9B0hGZtcjtH8lxT6hRFUU1KuGnpKZtDP8zFUhoEsyo7aEYHc48ErDFkSgHWbZg7zW8KYqPvAKzXC3htgUC9iqfjcm4J2zI9m0= Received: from MW4P222CA0024.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::29) by DM6PR12MB4601.namprd12.prod.outlook.com (2603:10b6:5:163::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.22; Thu, 14 Oct 2021 07:17:51 +0000 Received: from CO1NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:303:114:cafe::75) by MW4P222CA0024.outlook.office365.com (2603:10b6:303:114::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Thu, 14 Oct 2021 07:17:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; 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; Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT052.mail.protection.outlook.com (10.13.174.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4608.15 via Frontend Transport; Thu, 14 Oct 2021 07:17:51 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) 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.2308.8; Thu, 14 Oct 2021 02:17:50 -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.2308.8; Thu, 14 Oct 2021 00:17:49 -0700 Received: from vijendar-System-Product-Name.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2308.8 via Frontend Transport; Thu, 14 Oct 2021 02:17:46 -0500 From: Vijendar Mukunda To: , CC: , , , Vijendar Mukunda , "Liam Girdwood" , Jaroslav Kysela , "Takashi Iwai" , Pierre-Louis Bossart , open list Subject: [PATCH V2 1/3] ASoc: amd: create platform device for VG machine driver Date: Thu, 14 Oct 2021 12:47:08 +0530 Message-ID: <20211014071714.836410-1-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.25.1 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: 666bd596-b78a-4e35-07fb-08d98ee2bbb3 X-MS-TrafficTypeDiagnostic: DM6PR12MB4601: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1002; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wGhbkPlyiNkpFg4SPPD9Ux3ppJIO/mfe9amrZV7XSU41HKzTle4AwdXNrsLASM8YCUFxHpPRDb2DqE5QFX9Pv494szjq0fB1NtQLMCHqVem2rb1a8WsdyYVpUKJ3wL3WXSUqQ1F3b9l2kj5//8PWINGxJIOw3SxUyeBdLD4QeLDI+lTT8HWj2HgOXv4MJ7uEpHzOBI2/OmoAR0iKbdWIx61CCOYyNKG9Jq8nR6xVxJ/LojQ+cceAyc2fkLluM1j5hHdvR8JJyBp/gJgIaj8MmneY7IJrr8xFDOPHOF1dp+iPLAyTKlFetpzJ/twQIH/I2a4ai6Fdzqp7g6jtKdi95CWyGuMMUar7Rwej5LnHCdYVMO51thvdkxIl29j0p6R5u90xnbfkEChh8JXAujW4uD3Ctum+6lOdGTF0gF7f5eZSBQ3fIh6xefH1peXSA4044FfIE7wFT70I88zHhh2U4BOMH662DxyZa3F3b5c68A88rRks/b5+R8x0IO9clJIYcwr3tR5RyxDGpIuhAN0/agQXOuzF+hPdMVL9znExv/aCLJJ30t2ZtGbneQuCWmpY0fIZT8LEg7Mk6jSGrhuhfYx3zF4aWTvRYShV/PDByME6anbvhTNb+xr0cnpxLi81WO+RgZZW+n24TzDBuCiJuIjz74PJN4+CsBprFSvvgsW6eKGphmERSccWBgFsMkH5/en8x6PwRcyG7z/i84BqEcSg4O8rsV3ONyrEO2EoNtk= 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:(4636009)(46966006)(36840700001)(70206006)(2616005)(86362001)(110136005)(82310400003)(426003)(4326008)(54906003)(7696005)(81166007)(336012)(316002)(1076003)(2906002)(26005)(70586007)(47076005)(5660300002)(186003)(36756003)(8936002)(508600001)(356005)(8676002)(83380400001)(6666004)(36860700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2021 07:17:51.0912 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 666bd596-b78a-4e35-07fb-08d98ee2bbb3 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: CO1NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4601 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Create platform device for Vangogh machine driver. Signed-off-by: Vijendar Mukunda --- Changes since v1: - changed machine driver platform device name as "acp5x_mach" sound/soc/amd/vangogh/acp5x.h | 2 +- sound/soc/amd/vangogh/pci-acp5x.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/vangogh/acp5x.h b/sound/soc/amd/vangogh/acp5x.h index a808635f9740..fe5e1fa98974 100644 --- a/sound/soc/amd/vangogh/acp5x.h +++ b/sound/soc/amd/vangogh/acp5x.h @@ -23,7 +23,7 @@ #define ACP_ERR_INTR_MASK 0x20000000 #define ACP_EXT_INTR_STAT_CLEAR_MASK 0xFFFFFFFF -#define ACP5x_DEVS 3 +#define ACP5x_DEVS 4 #define ACP5x_REG_START 0x1240000 #define ACP5x_REG_END 0x1250200 #define ACP5x_I2STDM_REG_START 0x1242400 diff --git a/sound/soc/amd/vangogh/pci-acp5x.c b/sound/soc/amd/vangogh/pci-acp5x.c index a57b762d9f2e..2b6b9edc36e2 100644 --- a/sound/soc/amd/vangogh/pci-acp5x.c +++ b/sound/soc/amd/vangogh/pci-acp5x.c @@ -213,6 +213,9 @@ static int snd_acp5x_probe(struct pci_dev *pci, pdevinfo[2].num_res = 1; pdevinfo[2].res = &adata->res[2]; + pdevinfo[3].name = "acp5x_mach"; + pdevinfo[3].id = 0; + pdevinfo[3].parent = &pci->dev; for (i = 0; i < ACP5x_DEVS; i++) { adata->pdev[i] = platform_device_register_full(&pdevinfo[i]); -- 2.25.1