From patchwork Fri Sep 30 06:44:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 611778 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 42C6DC433FE for ; Fri, 30 Sep 2022 06:49:00 +0000 (UTC) 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 6D4F61676; Fri, 30 Sep 2022 08:48:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6D4F61676 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664520538; bh=HlHLYlIORi/g9SlVnGzuYxfhw7OQ64QnrY6o/6uKJWs=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=UE2ORty9SsOITnDiWoqYyPhpqYaLgpFjAxgyINrxV3/6lnOdvpWkT81+2HrrhCHR+ LUhpnRaKwNlAsV4LlCNWMsYQZhs+e3pGOQwAL1pcyya9jARXd+d8d+I6drYHLNjfT2 3+HDykH7No67zqAoXsrfFS39qhfIsCNz05C+CXSM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 08A35F80539; Fri, 30 Sep 2022 08:47:17 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A247EF800E8; Fri, 30 Sep 2022 08:47:15 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2078.outbound.protection.outlook.com [40.107.20.78]) (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 BA07CF80539 for ; Fri, 30 Sep 2022 08:46:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BA07CF80539 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="MwaeS9J1" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BCiffdrGN0N3r0t4T1Z4jhkf13vAjWnhXh85rJHvCGCuhoPwMqMRAaaR7a9kPDYF2fu8x3FQh6X+DI/a9klEMLBsFrYc7fDYn0jFAxJ0qR64mnBfnvsXua7NCMsbnxzp3Mki+nZohljEjnXh6BLBVtKvZzItHF8Lw0PT9VZ3KBiE0dc9GXQhyzPDPaVvzcu/99+5C6kD8LBOamJPif5PA+7x1mqzNokWS5nATYWkJT4kY50KaBYLA/0Hmz9WfbMqfn7bVxEsIkkTav9DY8qAqpkrhL0Fdq7uWe3Myz2rhhZgGWhPLNk9uSdp88+n6Yt7AxKW5oO/yzcVdoAeIfNzzQ== 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=qccABiWaUvVO+xTPzGBnYWyvQQd83WgKac52ZwfOQ5w=; b=LbTrg2Cm5rhbUQxKsFs5ou2yD56vcSCoQzjrirtl3nBY25JW00G+dHC/F02M38oUWidDqoLl4FL4LaVsHBxR1wgxiEzWoT0DKlJhLS7wfVTVQwLGB2lIKbsqwZl2u2FdifIszIhMCkg9gJOCms2dSikCBKAhnzHIPlTlCAsL8d6mLDYztDCMYl/uRVwlSti8pE3YS21SHwoeX0WY7MV8R/MqjHtX35Rv8OC6oMX1jc6XBQ9Afdk84b3RsEWv37i86ws7Ka+JuQ2TtoYP8Zg67fBlEEj093yFrhxmH9l5cXjeDkC2F91qnPiW/RzLYtwafRhx4mT4+09eFjT/wpGTtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qccABiWaUvVO+xTPzGBnYWyvQQd83WgKac52ZwfOQ5w=; b=MwaeS9J1GVomjO++nQiieCJPgmd0dKRYaa3Wo5JYYhbH4Yx46c1sx5jqsubtshgEg1xXzNpUSZ7kHnqqqo5d6LGjgwjao0MgAovLXZrPMziFNS1vAptaTC0U4QeABpHqaMCilYxSpXChkePCKsRZrkYGBF3pM4FBZOREWDoD7Qk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) by PAXPR04MB8640.eurprd04.prod.outlook.com (2603:10a6:102:21f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Fri, 30 Sep 2022 06:46:09 +0000 Received: from VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::7008:1596:bb4:d904]) by VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::7008:1596:bb4:d904%4]) with mapi id 15.20.5676.023; Fri, 30 Sep 2022 06:46:09 +0000 From: Chancel Liu To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v3 2/7] ASoC: imx-audio-rpmsg: Create rpmsg channel for MICFIL Date: Fri, 30 Sep 2022 14:44:36 +0800 Message-Id: <20220930064441.2548505-3-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220930064441.2548505-1-chancel.liu@nxp.com> References: <20220930064441.2548505-1-chancel.liu@nxp.com> X-ClientProxiedBy: SG2P153CA0041.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::10) To VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB4222:EE_|PAXPR04MB8640:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ab067ce-1002-4184-50d8-08daa2af74d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PrD2fOMSjSl+qU8C8g9xfl4Q7GigzmKcaiLLjp4GDDpupbU1XbwVSziACM3Xqdg8vg9+FBbmJXvoBnYYJiMHPywW4VsRBKRrBqmjp7dNwq3WBAE/ya2KLiwWTQR2C48GV7DjksujwvdGM3SpqphAz82W97tqZK28NSc+t+FmuIwGD5CQuZfy93hGCmyDfBPdH46MmnE7+HNZRK8CrJGpZ6qoa0rwRGKxyCEMoQ/ztrQwjJW0eoERVUCffVoWuBiS61TZ0FrjMhhPDJ/bUAonYuVC6Npfzr1JJsAZzqOoZjvJPjrniyRUE47fIX3R58B0KXajWJjMVMif05LvBIAuRoLk+Eg+3/Ra4qbHQEOAPe5VdOJ6sqpoheTLQGuX9h6EK6gmcWqN4giXXxsZM236/a/PKvPcRxUZkI02pKd7SDWRE6/VV+LqIhBHTqoXlrQhx26/c3wEUjEHpiemhODba7BAIUsCmUNhrmzVJ7J6G7iuYb01S3wf2Dv3jVmqz9L7QGkSUtK4wRcKo6YwjLfVC6/ovNQNHsR48bVH+6kgy/CQim/cSdutSUw1t3BfCrGK3PsFPshrRxPfNVZ7OFtStYC7imsgvojkQ4kRs76vW2u+E92i0lNMWk3wMBOUOKsV+sEMHHNCS6KV53+IjQUj7tFQ3OSR5GdXcduUElGs7EEITe3OCAZtmyOvJn/gL24Tj9s4oirO8v7VLWNShya5e1U93shl1nI0WPIOihqVB/hv7kpNnvIQfUE5i0hclVRKRsPtLKtQ89WVJlyoiXln6A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB4222.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(451199015)(83380400001)(7416002)(44832011)(5660300002)(66476007)(66556008)(66946007)(316002)(6506007)(41300700001)(4326008)(52116002)(6512007)(26005)(6666004)(36756003)(8936002)(8676002)(86362001)(2906002)(2616005)(186003)(1076003)(38350700002)(38100700002)(921005)(478600001)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: h3FlQC+RhhzOi3o90rljCrLkfTRgRwPkAIV3dAbvFucSN/OO3IlESWsn2HQM7ucuqh+A5KwmprCBUC1AwbMmbCjEANzd8I/wbv8DJeRv83wnGAEEgA/agSG4Knw8aHOpRcNKYNqGCEpuS/Odk5FHga36n3/ocw8R3C3U+Im9FQNxeqGcqT96AxTrjFE90lcY+PoutanwT5UGIpXWj7I8n7PgU0qL6et3g7sKwVK35XIu3olbodOO/POG2K1If75QtOl7TuQ6/ApZHPF05T2PZMf/zu3l04Al1VxhVx1bVciBkw2Z8WoQ9dSl5Q9C1rqI03jfCh4qqeD9zcAsZCXbFytUWWPQdPJdecpk0vgRvn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owE0XhFfnDRPhxTp5OnnZz3RFBbAUxWsXyC75BwaYTXrFft3UMPLFFYveFbEpoP6R1hVV+fUcJ8cAtyFq8KGoedSsnCGZyuVybP//Q2nwgrTf7nwd+hjKpE/ax4g6m0u+3NQUxb5hYjijxYA8XzLVkeks1EQl5u/J X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ab067ce-1002-4184-50d8-08daa2af74d3 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2022 06:46:09.1203 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +wnG+yR3fd7DM4KXX29rAB2CZyM2islrsdDWk5Y/jIYwDhs9b7WqJAVjYRDiIITzK6Yxckmjl6TgeZDAgWMHJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8640 Cc: Chancel Liu 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" Rpmsg channel for MICFIL can also be created through rpmsg name service announcement. If this driver is probed, Cortex-A can access MICFIL which is actually controlled by Cortex-M through rpmsg channel for MICFIL. This driver also helps register ASoC platform device thus use of PLATFORM_DEVID_AUTO macro in API can automatically create device for each rpmsg channel. Signed-off-by: Chancel Liu --- sound/soc/fsl/imx-audio-rpmsg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-audio-rpmsg.c b/sound/soc/fsl/imx-audio-rpmsg.c index 905c3a071300..d5234ac4b09b 100644 --- a/sound/soc/fsl/imx-audio-rpmsg.c +++ b/sound/soc/fsl/imx-audio-rpmsg.c @@ -88,7 +88,7 @@ static int imx_audio_rpmsg_probe(struct rpmsg_device *rpdev) /* Register platform driver for rpmsg routine */ data->rpmsg_pdev = platform_device_register_data(&rpdev->dev, IMX_PCM_DRV_NAME, - PLATFORM_DEVID_NONE, + PLATFORM_DEVID_AUTO, NULL, 0); if (IS_ERR(data->rpmsg_pdev)) { dev_err(&rpdev->dev, "failed to register rpmsg platform.\n"); @@ -110,6 +110,7 @@ static void imx_audio_rpmsg_remove(struct rpmsg_device *rpdev) static struct rpmsg_device_id imx_audio_rpmsg_id_table[] = { { .name = "rpmsg-audio-channel" }, + { .name = "rpmsg-micfil-channel" }, { }, };