Message ID | 20220829075144.2405000-3-chancel.liu@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 E5A7EC0502E for <alsa-devel@archiver.kernel.org>; Mon, 29 Aug 2022 16:07:36 +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 0A6631655; Mon, 29 Aug 2022 18:06:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0A6631655 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661789255; bh=TWn7fqj1v020is92yFraj9r/lHMTZDF2x/sUB773rLw=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=O0BItrWmuw2H3nIAvYOmfeanGvFmEQ+Vme7C1v0FTd5v+nW91xT+yK+0rKMEkNgdy Jt48gma7OhQr4u15V3STRlQEmy+Hr6rzoiFYpTsC3GYU+/J3JJOISKQLdJKG71dUJt iCdpEl+dcnPeF3HXg7newsW8DRukf+qZmwMkq66Q= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 286A0F8052F; Mon, 29 Aug 2022 18:05:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6AA1EF80217; Mon, 29 Aug 2022 09:56:13 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60063.outbound.protection.outlook.com [40.107.6.63]) (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 4D561F800AA for <alsa-devel@alsa-project.org>; Mon, 29 Aug 2022 09:56:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4D561F800AA Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="hhVoFK/6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DVoRB5KbJLEdbUs6xcuzzpwoZFoJMWFPXRMhKWVDGDClvcnh8dLg1O/VWIWAUmUC6xRPR0ohbKsbN2BCB+D8sPKF/tdl7Ts4pW5dmBtK+ZJip6YK5VA9Q499NZ84KevD0XLdlhpcFiuYsEiRamsNBRe0l6wCZjExCrNe9ES5lGXA9V7d62Pqv31vOgsrrZdEAA9XXUgr7HJCoL/g5mXfqXEQ+QY37ah7b0/uYHRJEj4AeJRUI1f2XL2jkfteqJdG4/iTEQfZmCHSk61zf88c/yNTQTyS9uPdnBlPV9UKq5tz911BTL69E9Ze19lGnylmGk8/wxcH+8G3zBCBdVjB7Q== 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=F8iEGMwGzDbOykjeKNYc8bhXt8INYgJS5SB8YoWsoQE=; b=QU1mh4mUOlIdimB0cqZYe2F45jDQAitMtIE1wKGO+ZVvIxrB7Rb1rjb3/A+fdj+KxiEEQWpxCs6NuNsxtiOuc8S6yKYASOj34LUFB76U6phZkaqd5conTjjuCY8ITXZnhW60y4SJm+ie9qhkV9xatvHOAAlr8uj1VTqy4g+zCkFLXyFeY93Muq1qg7a8jfTmUzPbMrcU61+JxEb16uB+tlQODS5WqZL2bP7NNf3Xq78Qc2wBJn1unIgOSqnCyalmb8+GLAXrIME5v1OS7/nZjowDxwtQTPz8BN+1/1aUTDfqvjMi2XqkdWzpomjrj+uOWyEWDdHxx4kUog8SgFqSsQ== 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=F8iEGMwGzDbOykjeKNYc8bhXt8INYgJS5SB8YoWsoQE=; b=hhVoFK/6rCpwAohsSisKzv4A8MevEke+fEntx4G1tsUKxhgBw9PJ4YNBmjVrfxr9txqMiPqGfVl5YPl0lG0sWZKH1kfvF3S/n5H9AOPBaX1d0vDV/jB5p/BvIVZoWsEzvRfj3eGMkAG8aPhxyjVxdDfCtPVegq+1lvQjzuq6n8M= 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 DB7PR04MB4220.eurprd04.prod.outlook.com (2603:10a6:5:27::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.21; Mon, 29 Aug 2022 07:56:04 +0000 Received: from VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::3139:70b4:6648:bd32]) by VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::3139:70b4:6648:bd32%4]) with mapi id 15.20.5566.021; Mon, 29 Aug 2022 07:56:03 +0000 From: Chancel Liu <chancel.liu@nxp.com> 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@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 2/5] ASoC: imx-audio-rpmsg: Create rpmsg channel for MICFIL Date: Mon, 29 Aug 2022 15:51:41 +0800 Message-Id: <20220829075144.2405000-3-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220829075144.2405000-1-chancel.liu@nxp.com> References: <20220829075144.2405000-1-chancel.liu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR06CA0012.apcprd06.prod.outlook.com (2603:1096:4:186::13) To VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fed046c7-358d-4158-85fd-08da8993eb3f X-MS-TrafficTypeDiagnostic: DB7PR04MB4220:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: io3+ImBeQfdFNqPqaiUxo+FCel876PnacmGW5SyQa1hUY5cmuU0xxMfmlkg0j1ojW/9//Kz0PPkbGjvA4+cvs+C1EDwEYlKywracJ7kPs6/2UiJd6JaCUhIpV83suTP+da0fDRUTbKDUvSkwa+lA5oJ+ulWFnAxIg70AMbLHn94Zc4FV9IDd9Z9VLDK4uF7mlxbs+mifnluPpSDhD5dXvAUIXFG0dqB1biCcR6g8jDN1z94uviNlQjo/QhRHDEVGy7zjMx6iuyTMtYdQC3bF7V2U8wHG/uH0AAhwtkEn+8eiP5hD6LdLK22NdMICvHy+snMMac/Ti3gs0tp4kZIrrjUKPReG65jadsYsecRl6td2hibj/tCro+rec8fre8w0yIMb+42dRVLymZlk9osMk/GZo1AHX5N+Wpt/6dOXxrr5xQW3H2o14fFd1HuooeRozK7cywsAjcewKLOJhDqke8oWoaJcuZrne6EXoIGdTgCJYR+GNGVLL1tHvy6Yg0Us75UF0lsxyxYPaWZ2oVJe8iot+YZbxxrM3JCbqKwf981Okjkn0RNQBnmi+tqhFXJgXAGjhdgj+iem/djjsUmEDTuk6r7AbBl8Y0NMPD0GmSf/ggYBaYpCLlzNwRfrLq4Yku52Gbh/s6irfcmZcS7YweCrlrJFSkkvnNIZ7heeCPizQg2t/mZjii2sKDpZg3/4TCAKE93P6AAlyyNkQY9xk64ZvN0Z2xaqctbVMw/MgKza1H0gKOpG2WUhqEna0bxxpW1hLaJ7lb4szIbkL3pynX5SyIGM13Nt3gmOsoB3QBE= 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:(13230016)(4636009)(39860400002)(346002)(136003)(366004)(376002)(396003)(6506007)(38100700002)(52116002)(2906002)(44832011)(38350700002)(6666004)(2616005)(83380400001)(6512007)(186003)(26005)(8676002)(6486002)(4326008)(86362001)(66476007)(66556008)(66946007)(1076003)(316002)(36756003)(7416002)(921005)(8936002)(41300700001)(478600001)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: D3+nJNuMmkgBWk293etiql7BScBX1TrjNUhTIF8Ec6kp4cSwEzqVrAGjpoHOZfmPPcoB13afX4jjsL13/rUM4XEDqOyhe9R+aOPk3Qc+0QSMIQwStcLFgwnOpoki01jYSoOZEyKHJwYwEf/2Eg//BrJLuo6MADIjhu8Mpd88COzxh4ZSCfi8lW16mMed42o678sqyg313jIbwamvG4QqdcxhXOXbk6ZaRT13KYULcoLSulA7wIKN5a4R1HvHdiZ/WOwXVkaC/ZjSUhiraUWeMiyyWU3n6kKU6tV0HlwWnFPmuzZSXVuu1AoLZ08mxZY6pkId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K2TA7eHREUEJnhfEYFEar9SJ1DH5hi1gSsV188cLhzy2qKSc8m2IVUddYG3BWqfBfDD6hCCJ/AGi8+0BfvIdbglGktAK7eBrjKRt+LJy5a0pSWnU2yJYCv/veQIsD31t7tmCcBKSC3++ChfJN9Au7k7ZNZBXbKdrR2gCPXzG4XjS9GXaq5uuJ8FRh138IagbljLW7D X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fed046c7-358d-4158-85fd-08da8993eb3f X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2022 07:56:02.9790 (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: w/dLFFrw61pxGd1HDER/6Q9cfFwfNTL4wgMVLlJRFEZiU0jFp1THJjwJEIHty8P/qnY4yOVq26ksBQk7MgR97Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4220 X-Mailman-Approved-At: Mon, 29 Aug 2022 18:05:43 +0200 Cc: Chancel Liu <chancel.liu@nxp.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" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
Create a new sound card to access MICFIL based on rpmsg channel
|
expand
|
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" }, { }, };
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. Signed-off-by: Chancel Liu <chancel.liu@nxp.com> --- sound/soc/fsl/imx-audio-rpmsg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)