From patchwork Mon Oct 11 18:47:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 12549657 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59FDFC433EF for ; Mon, 11 Oct 2021 10:27:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id F32F960F22 for ; Mon, 11 Oct 2021 10:27:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F32F960F22 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3710A1661; Mon, 11 Oct 2021 12:26:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3710A1661 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1633948035; bh=b0U7SlGxAtfmH2sKQGOLaTDoDrqS6iS+STWYvoN5CQ0=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=I6Kq0CopmSzMwb8FEPZYesLGgbHTc47R39ds9OADN8pwwP6z1Lus1DXa1f4TzTWOo 3fyC/mOtgeSruAfDXksh2BDL9aNyR8B3/D3Ey05234ZcaNxLaq19Q6NaUeJJPy5/Qv IyZn/+tEtbW7xb0H+GUf9cxl7+FTf7EcLjP2asnA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C44F3F8025B; Mon, 11 Oct 2021 12:26:24 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 17CD0F80269; Mon, 11 Oct 2021 12:26:22 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2075.outbound.protection.outlook.com [40.107.93.75]) (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 CCF17F80104 for ; Mon, 11 Oct 2021 12:26:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CCF17F80104 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="JMCiA1um" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S76EN/Ea/eej1IjKFJ0EZvU9j1KnKOyW7/MWo+9bp8NcmbdPLNPAvx7ceJU23Blub27gBMzs8y4PIdOQEV8fy0yWRTDHNSPqDa1RH1gGcg1T/DKibXJX0tOEa6W12dH6921+dyaBx0tWFOUzG3lOhpMzrm7nlo8Ld2TiPMS4pdpDA7YySFhdKsdxKvr0uBUq5CBWebEQYgQ9PXgJaOXdgtl9zyQwBy8S3q/MpaDVwls7p0MnpymBXK3J/XcY90Q0a/2KrBm99ykw3PmpYMRKB8RsHJzy9Q1r4wrAkrZLR5jWT/mebF0uoPBntd82PLl6cLUubtQm39GSYhjvO2fZig== 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=Ohy788lN7PhcZpqlWk5mafws/xCTMncWlU3ga4rzue4=; b=ULiEGqvNdJZcziw6JxNi7nh8hcV8kG7pMi8+mOkxVwkkhEreNuLEDslcAmoHnzVWt0YS90caroDIvxcsaAAlLMZWoqIL//6qq/6dZ9sxULDuqy9zWRqGzlAWX17L7zr+NRJrYKUXsS/4h2OZzctyB2Q7//4jsG7QnFk5HqJDbZB2W46ZDMmJQkVfP329y/DeO+T5H9aFk9oc+BbM0VatGmd2+i6VFBX5hKGo1x3qmYv6vxOD2/SHFgOvSU7cEd/Zrjr0WhfqNAnbh6bISakadebSwK3YropxXQSKKCjU/lWgbZOjk7MCMWVqoaL9XTAHzaeX4r7OFPg5yejnXkMRwQ== 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=Ohy788lN7PhcZpqlWk5mafws/xCTMncWlU3ga4rzue4=; b=JMCiA1umcoQW+ObpmHsQVLdz6cLQwirhY/p7RFOWCMzzjFxsS9hCOt2k9Tlv2v9drAbQg204QqF8dfO6Yxxv6PBH5pd83/Ry1R05nTklVnOcG5G2f4WwNwrVwC9X06bubOZyZ85k9m8tOKswSzia9nCQf7sOvbtXbiqfhaXyuxg= Received: from MW4PR03CA0099.namprd03.prod.outlook.com (2603:10b6:303:b7::14) by DM6PR12MB3708.namprd12.prod.outlook.com (2603:10b6:5:1c5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.22; Mon, 11 Oct 2021 10:26:05 +0000 Received: from CO1NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b7:cafe::22) by MW4PR03CA0099.outlook.office365.com (2603:10b6:303:b7::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Mon, 11 Oct 2021 10:26:05 +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=SATLEXMB03.amd.com; Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT044.mail.protection.outlook.com (10.13.175.188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4587.18 via Frontend Transport; Mon, 11 Oct 2021 10:26:05 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.2308.8; Mon, 11 Oct 2021 05:26:03 -0500 Received: from vijendar-System-Product-Name.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2308.8 via Frontend Transport; Mon, 11 Oct 2021 05:25:59 -0500 From: Vijendar Mukunda To: , Subject: [PATCH 1/3] ASoc: amd: create platform device for VG machine driver Date: Tue, 12 Oct 2021 00:17:01 +0530 Message-ID: <20211011184715.61573-1-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 06519952-4886-4426-9dde-08d98ca1883a X-MS-TrafficTypeDiagnostic: DM6PR12MB3708: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: egSUCmnJLgoysc1JhlSlGVG62jV9noksXieZnZOvR4cIrYLSNvygRDwm01OncWIKQ4yAFcOCMTj7CmqNvu/vOFwpz5x8vhyxb2nDtSyckCZIoBl04h6LKDR/EOlNAdLlAuw2CXlMkk+/UHAcIkuH1pTW9TJ0i7x7HCQ/hUofGGx/K0REJpCSNEIjtnpr/X6eAeb38wFujZOlsGx1q924wM53k39kYB3p0aJ5o6QbOXaNpWUH9UVyprCFa3NMG2ssrQD1We6Xv3hZWWmjCqktT9A41/ducQw8U1+6KMax3hb8/4Dr0kkYdXSMV9TtgvCNqRuLyH5gfSruPbzyn0fRYp2PmjmpL559QEoFgQnD8fqpS/7zzF66tAz2cUuMELtNUXhOI/GDIxrg4aHoLad7LT8lfJTZL1cGZ5f1CEt88t4YvRs+k510MdS9kFwQkFN9ua5gSUWH91PSRbQRe1PZGZFEzXM7rT9U9pL2zMvCse/e+kUh4wFQ02Xxn/54Gn/LjkE9NWDZGiGYiQKhtchJ6xb/JvN//gUdWc8UWptNZKlpqrAJe3aA7zltkAxNoOECz9N0SqVZ2SToIZqaicjhBdjJw1s7nvyRc09GG9nUzl6AWGXIFfvhjGHPjTQG2JNfNtF4TAY644DaBc5Gu2U5sLxIoQUPSSbR438viqeEQ1C0LB6yHJwqBbeRHoEV6jpEA9HlH1i4IbobBgPPBaOezUC21U3E9L4VPRDHwm9D3OU= 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:(4636009)(46966006)(36840700001)(83380400001)(70586007)(36860700001)(70206006)(86362001)(356005)(81166007)(47076005)(82310400003)(2616005)(36756003)(336012)(26005)(426003)(2906002)(186003)(4326008)(8676002)(508600001)(1076003)(5660300002)(8936002)(7696005)(316002)(54906003)(110136005)(6666004)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2021 10:26:05.1242 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 06519952-4886-4426-9dde-08d98ca1883a 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: CO1NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3708 Cc: Pierre-Louis Bossart , Sunil-kumar.Dommati@amd.com, wtli@nuvoton.com, open list , Takashi Iwai , Liam Girdwood , David.Rhodes@cirrus.com, Vijendar Mukunda , Alexander.Deucher@amd.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Create platform device for Vangogh machine driver. Signed-off-by: Vijendar Mukunda --- 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..137e64c47882 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_nu8821_cs35l41_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]);