From patchwork Mon Aug 29 07:51:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12958129 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 98FB7C0502C for ; Mon, 29 Aug 2022 16:07:27 +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 BF092161E; Mon, 29 Aug 2022 18:06:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BF092161E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661789245; bh=9/aDO4hAjm+ajLd58OT7UxYsdTjcVN9/OZsJyYfik4E=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=guwyz5Y6S0ikJ4sqKKuIUADM+RHwxjpsNbGvGCMVUhe9U3w0ajQkQtyWfun+u/y+4 prKXs/u50PDj278KFjA289UXMIKsngYpQX23hsoqmt/ljZ+ini0IumWCN0B3iGilSf hdAvlQpeKOV2I1OnLZlwch7YK9SuFGCOcT9Kkm0c= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A6794F80528; Mon, 29 Aug 2022 18:05:45 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9AF57F800AA; Mon, 29 Aug 2022 09:56:06 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2084.outbound.protection.outlook.com [40.107.21.84]) (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 47177F8016C for ; Mon, 29 Aug 2022 09:55:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 47177F8016C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="cJmKJG7O" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iu0ZVGk+Au+mnimVo3UewfPuNxPHWw0WP98AHr+NLizbdj0KaxHBcz5mNEhN/xnDl+oYcGtFxIraOT3fD42sD5hO/Me8Fpla6DMuNA0UTUuTlsVZ0i/ATAhY7IBehrAzjhfBt6Ykvu+NOnMiTtLsW5wO83gW91UX3HBFwET3aT54+V5/moNLkFyjb7JCGgAgUOyqJWV707Lsdd9tDYmyLblKdijcCAFpweJ/YKROYfpnnwQA0Iw6THWGF9mIIBY0BAfkk9jf+KOax918gcUXAjNCAC7exW9wDwC0zozTRCkgqqtdEOeaeMG1vq9x1YyFMsFLv8QINtFVfONG4Mb05g== 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=h/uhp+ejqiSCUTv6XvJqDLN5rybCPPKud1opQ3+Huqk=; b=WTNYTV8omxEwLV1qFWsIh0RBEiCPX9TlyYxX+nwqf7LV9NZJclST1KUoK6nLoifq+srmIWQyWSZXtDGRFE5NvFVJejaeXSannhuacNToAyUoy+dRXlnOFb/r/iFIOe6qi7R3YXUJNwpkXoE892iAsK1kSrnTpunlxRmP7DPlmmE3Pw/L1y6yHAMz5bRSl9DbBR6Hv9gpLfLSa/8gpNuA0yR3F5HTTU4ZOGpPUI/2R1yTk9rJ1oEemJq+uMmC//Jwg6KpejY9zZsZWicA82X23GxppXwkQUuqaGukJJKUA3ANP/gE6dShbA+FBzfDITrC0la+917QM5KATRJ3YqFREA== 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=h/uhp+ejqiSCUTv6XvJqDLN5rybCPPKud1opQ3+Huqk=; b=cJmKJG7OI8iw5vIqHfYPDYm3MKy0uFXRUvUZx084PO0r4H+FViaQ4ZTX8vWbg9lrm8uDQkhDcWyWedN4seyLsyLw5kA/qCO4gPwqoH1V+caVcrdKQ8mIxB+i7UMo8tuMFzxdtVgX0qkFscYxEd6neOvgCeYzWfwJL8ECrtIvuLU= 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 PR3PR04MB7482.eurprd04.prod.outlook.com (2603:10a6:102:8f::8) 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:55:58 +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:55:58 +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@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/5] ASoC: dt-bindings: fsl_rpmsg: Add a property to assign platform driver name Date: Mon, 29 Aug 2022 15:51:40 +0800 Message-Id: <20220829075144.2405000-2-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> 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: 720768d7-02f5-4f6e-f135-08da8993e852 X-MS-TrafficTypeDiagnostic: PR3PR04MB7482:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5yyjbXe9a92Y88qWN7oTFJUa26iG/lrvBXmFTqqeTYSsN9BXhiJ80D0D95AXoSEvnFm9CiTXQb6oCL91EmTAKDG3Hk9WRktaOfsmMQGhqkWhiGWSor6O7IrQmRLXy2xDd1Y/qqHhqqb6rWPEVNa47kxCZBZSu8Hf7dPXkiX3wHxEcv+FYzdTD/g8Qjhn1jFXQeAwtwWP1rHTu4WWpAsW/ABAgkejnMaM10+n2aO97y1+CxY3AC+wG+hFFtfpSv72VrVZBBtTn5XlKK2YZ08stJoqJtlWUINa/1g0swBOS2kh1jFPRR8S2/PgekQ7FcmLOWfrKXkAXlMSyaXfs5r+beQdgE0t9UCOR6L5wt2AD8MlHin/uSCqu/1pL86XAHl4CeH+8UdtRdou9HpSmUTVoKpwGzxol9+j4Zf6h+O+OdZm/Ye5SL8Pnf7gVzk+kJ8PgRi5EegakCQi6Ny7PTSEigmJ1ZK9pa+T4qr6RP84PoNvyDwNdmSTd9KUxJFSZMBCQRwEJwpqM/hbRlMM1XQlE8vT7kZXwMrdd6tL/COWxWRM0+O3Wm+ii3DfeHKogUEL2pDldZN02HlzHr1+OA3uNfn67YbzFhvueCO3mhya92vGxx5wIVkgOw2j7maSbRfcX77ds5PziUCp134ToMPV0AKWvj/BRGOiBxrKRVMe9eeBcfTeeSg9n8zQgQzWOm5/q/ruEY57bYgp4N1qTwCKKLd+qAfxmcrk6weO5eb+N/LVvgJ5FrHi9C3OZcncbeh41Tnm7ONmMjOaldX2eAXijnjANm4sbjLTRKxsQDsUR1o= 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)(376002)(346002)(366004)(39860400002)(136003)(396003)(7416002)(5660300002)(8936002)(41300700001)(186003)(6506007)(2616005)(6512007)(86362001)(1076003)(6666004)(44832011)(52116002)(2906002)(26005)(38350700002)(316002)(36756003)(66476007)(83380400001)(478600001)(38100700002)(921005)(4326008)(6486002)(66556008)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1YQA757UJ5Lp+71cInY34JB+iOIxz8UApDHGpHsOzsCwqRjF/1YVK58yxihXQ3AoFxNY1PypYgSpR+JNcwDA6onfP4l06VdmC7xu07Wj3tPLs/v9hM6UPtf89/CWmx0ryzwsLcEGg0wXc0TecMnstJLoOrNqHq4x780UdGjWajzryy6p+kbgYltThpN1/0zD5LsiRQZ9Wvg5up6dJvOWHkWZiFMRl5puS3bN1y1RmtDYOWtWs77vEVDlQxpRoEdxaS7lLsl0ZUJk5ktnk1yNpbLEHEYavmo7+iRnD7kSorIjdZM7Byu1RF+EyBgKJY+I3gDF3NQfRPpcYcY8RCckAprh25qns3Sdu6bZxbWsj0L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3zRECulHX8cMicMIT+0U3dZMeAkgAU2+xqqTi2PwRFLu82Nm/pI0blc7dWrsyEIqSmfqwCnVrfTsX295D649heQ25S0CfXOdAJuavP4eIjThPrt8vWgNPko9Mr7LnfRHvUGPVAiWmGClifekn5X+a2WI X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 720768d7-02f5-4f6e-f135-08da8993e852 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:55:57.9012 (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: P5pCZTQhJtXtbfbnqFcBDzYNXJuDh6GcgEtbkuN+tEnWkt6jqBlVLk1w2PjDExkyPZuNr/f3/2LnMR5mD/DYzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7482 X-Mailman-Approved-At: Mon, 29 Aug 2022 18:05:43 +0200 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" Add a string property to assign ASoC platform driver name. It also represents the rpmsg channel this sound card sits on. This property can be omitted if there is only one sound card and it sits on "rpmsg-audio-channel". Signed-off-by: Chancel Liu --- .../devicetree/bindings/sound/fsl,rpmsg.yaml | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml index d370c98a62c7..35e3cb9f768b 100644 --- a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml @@ -11,8 +11,11 @@ maintainers: description: | fsl_rpmsg is a virtual audio device. Mapping to real hardware devices - are SAI, DMA controlled by Cortex M core. What we see from Linux - side is a device which provides audio service by rpmsg channel. + are SAI, MICFIL, DMA controlled by Cortex M core. What we see from + Linux side is a device which provides audio service by rpmsg channel. + We can create different sound cards which access different hardwares + such as SAI, MICFIL, .etc through building rpmsg channels between + Cortex-A and Cortex-M. properties: compatible: @@ -85,6 +88,14 @@ properties: This is a boolean property. If present, the receiving function will be enabled. + fsl,platform: + $ref: /schemas/types.yaml#/definitions/string + description: | + A string property to assign ASoC platform driver name. It also + represents the rpmsg channel this sound card sits on. This property + can be omitted if there is only one sound card and it sits on + "rpmsg-audio-channel". + required: - compatible - model @@ -107,3 +118,22 @@ examples: <&clk IMX8MN_AUDIO_PLL2_OUT>; clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; }; + + - | + #include + + rpmsg_micfil: rpmsg_micfil { + compatible = "fsl,imx8mm-rpmsg-audio"; + model = "micfil-audio"; + fsl,platform = "rpmsg-micfil-channel"; + fsl,enable-lpa; + fsl,rpmsg-in; + clocks = <&clk IMX8MM_CLK_PDM_IPG>, + <&clk IMX8MM_CLK_PDM_ROOT>, + <&clk IMX8MM_CLK_SDMA3_ROOT>, + <&clk IMX8MM_AUDIO_PLL1_OUT>, + <&clk IMX8MM_AUDIO_PLL2_OUT>; + clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; + }; + +... From patchwork Mon Aug 29 07:51:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12958130 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 E5A7EC0502E for ; 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 ; 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 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> 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/ZjSUhiraUWeMiyyWU3n6kKU6tV0HlwWnFPmuzZSXVuu1AoLZ08mxZY6pkIdOdeQz7t7cjNrtX6gjTXc37WDE6L8ymxwyVJctoLrrWMylvMR69HhPlMvwt4d5fiNdi994x4k+Xu0rOm//RZpWF+fo11iH2+7MZn8EXu77gKC6We+R1/6bKwLOHwVaYNPJJwPtIhYoD72Gr7R5jWntb/Ty+ZOvFc4uOiF/S63kIPl6rW5/1ShbzzqUuj6/eePC27OowAXekDjaNp1xl5RAkqxALMCn54I226MU0tS02xzwfdLulX7BGwqvie3OXJr30b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-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 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. 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" }, { }, }; From patchwork Mon Aug 29 07:51:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12958131 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 4AF9BECAAD5 for ; Mon, 29 Aug 2022 16:07:50 +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 9A3161663; Mon, 29 Aug 2022 18:06:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9A3161663 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661789268; bh=v4r6N1ZnINaBoM4misPL8/wVIlc+s2XkhBMbGVVaNt0=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=p4oXdobnvz9PZLCDympVhF0C/gfJ/9S/aN054tmgMZRyjrU5rNmKvxuNZGsRHCHC2 tDDdt4gXpDku/Vo9n3GO7UCdnJk45P5rksxV3zFwLTlBSrwuGmMYhPDTxHfRX86t0r Gc7f32o63GMTLAKLDOebgpAlUFqdpHGaS2eQTPxo= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9FA68F80537; Mon, 29 Aug 2022 18:05:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C65EFF80115; Mon, 29 Aug 2022 09:56:15 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60041.outbound.protection.outlook.com [40.107.6.41]) (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 BB3DDF80115 for ; Mon, 29 Aug 2022 09:56:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BB3DDF80115 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="LyY8sRlB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=evnyeTIuJeaU5leWWo8z2tJ6oGGqyBNuAlvYf6uVG6bbLy8azceKAIHfRZVOTHCKMXkwHNn60Lx3D9sqGGnRqa+mmltaca4dF2zBxOQYCwc3lSJXXlPlUVk8CofDT9mPCoMWZ0s2wn+++IaULJfk53ymjI3BmJyOQi6Ri+qo7L0bCTDkx7E/HZJgW7aaVrsDAoGBi//x83j8jfFn5PMqeCnxznDbiVMQ2pvbhmQH7yPj+Z54CuH5C+lpdPPmbli48u3X9reLM4qc0+s4UzZ2zxj6OlfCqPZrq89k4FEMSXgRAlWXAqIsXnKfGikoOc2CgFEjdwGGem9kCpfsDdAAyQ== 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=T1T5Sh4LzecjkdbzOioNKLEueHhLNPnhNTFNT8XJLTU=; b=NQ461Av6tcq7BPYsbyp3R9aaK/WvBi+E7ZNLD9DDt6whIbwfDhnqO5heXMDu82Yp7CPYuBVDSvozQH6FBJLtelqKh5dMk4NSYdDdotVdn1G9H6NVho6a1D1pi+E3ayLD5NHBoQXLznRXEQcNIbTrHxtcezIrAtLEpAqi2xQja8JiB2W8eNPTCMKG7qTRhpx7s1HKQhPNqtAWmDF+PJEIJJErxptk22UeIyT2ZYUsnnvIh0maUlIToHdi/yewz/qZ/AAcbghIu0R2974sO6ULyObIvITMKTVwbfElLsVQ0/k3Kll2R7TxTRpxURe+g5HQIChefOQbEmh1TjsAYyi6jA== 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=T1T5Sh4LzecjkdbzOioNKLEueHhLNPnhNTFNT8XJLTU=; b=LyY8sRlBZoT+azM7h+IksJPcJWrAxk0jJpZX0xckoehpFehZxaz9upBYBsh39s51I8HaMb5AzCsze8G7McwZkihr/QA6eCY9rA7GZ+RMQnMDzpcVy1xFtRfd4BbwfecI4yIWtQyyYbZlx4wyOHODCNLdjvcP9miWGrqbL7h/SoE= 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:07 +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:07 +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@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 3/5] ASoC: imx-pcm-rpmsg: Register different platform drivers Date: Mon, 29 Aug 2022 15:51:42 +0800 Message-Id: <20220829075144.2405000-4-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> 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: 39c33c8d-26e2-457b-cede-08da8993edfe 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: BAdthjNCpbJK/ft5z1ZykjzHOsZOlGf/tz2uQrfQDUiMWdRjO0MNR4due/pzDQ4nv4vnX2XE+TdBJ/s4zFyID1n769nnoTF54dlHQHZv1Kljl5onlsXFb1MOcZSd/jxBqb6tAyJObUnyUflF1rgSV4AfaDCIBflBYTnPPzcpjKKPFriN9O4srdaxq4bSEfT4tJlMogZn1khXQ9WOF1xxcLSrsC9oLNfeyNb3a0AYxcYwAYhyt8SchGDUilqS07qCPyqxIznzpYQxeiQMi1VrvCrU+KG/Q2I3FsYf+tPeijfePdZvAaeO9rjH7mSw46LhaWYIZaj09kIhIWFCnfqVeIOBnynMTW3T78pVzromi49xcMIaKnTIzoccPJJJ6pgKNrAoQSUycqTMZClnHcEizryxnTzV/+LOrmroRQF239yJ4X/EEITr057dBIeTpBHQ4tYQ2/Us/pDPfugjlAPvLcULjwpM0fKnS8gFfuzTrVENMJPA4UoHy1d4nEjkLv5Hat1rTEMhVq83beBtpihp340munxU7veo+gom2AhRsh73d5gY0Vhc9dIBvvfkaTvxerV6yFRnK6W0q1JXdsXHktRmgpQBOjV3LYkhBske4Tr/+PahuxBxLMiDUb6nHpIYeDvr0iIRsi2Z8BD8GIg4E0GtxIvefyQhLGZwlAH5J6kJF0IpMQMhqCgexj5WC2Oa9nqHqViGvc7vF4i1CeiIqny9vE2ekHsJzzmbMMDi6k5/sj4p0QepA4OXSHQA2IVkr4HefxdlswZT5yLDCVEdM2L/9catIsSTg+eaFsrDNMg= 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: pdp6jFyJu7Qr3UE+pGlEASishHhz0zptljZvFqe1YiP1s/EAAN157HfwrRvrLQKfDojeTwsdxNqaQ3Ez/37M73Noa9C/f9m8Q2pS2AUsowXySUanrRlfXOWJOiNYfw/9tROGrFZwjm8V8t34lmVEFVvVkZB7mM2LEhKiM7OhduYUrH526dgxO9bi+sKiC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W+uG6qrj5BioEJUp41827aVLLAt/4o/HdVxYQ27vtNZ3Fo8MXXOahVHLu/bJ3CH2F0k4nAmJruFrE65H0yVsD/Wy7n9XbXqrsNM4VpQHS50T7SqLjCN5HsdxhUG7Iq/MFXyWv8t6JRZnoYb/hcckylpr2OnVvkAynIpp7RG4Kuj+0R/NZD/Nzguz7upNTvTfenV/ggZSv8sczzcR/XsHqB3QMrBrItTQIJ6D1yK5/FFW6L7yhYjSJIAEvZRcN6uJPG6puhjbkQYYv9TSrJ6DnmfJRbcPcBF7cscdFe1HNgj+com3zb/YDNhPMpLEj7bKfdrTOnB X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39c33c8d-26e2-457b-cede-08da8993edfe 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:07.4162 (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: J5AURrRz1gAJbx850DgVzIkkrf05UGh1P1cFQtq2oSgEpbNyOqIVI4ykedD2VTmMFbj1fG/7SA3rbfM2CMyZLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4220 X-Mailman-Approved-At: Mon, 29 Aug 2022 18:05:43 +0200 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" This patch can register different ASoC platform drivers in reference to "fsl,platform" property of the corresponding node in dts. So sound cards based on different rpmsg channels can link to their respective platform drivers. Signed-off-by: Chancel Liu --- sound/soc/fsl/imx-pcm-rpmsg.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index 35049043e532..2f310994f7ee 100644 --- a/sound/soc/fsl/imx-pcm-rpmsg.c +++ b/sound/soc/fsl/imx-pcm-rpmsg.c @@ -178,7 +178,7 @@ static int imx_rpmsg_pcm_hw_params(struct snd_soc_component *component, msg->s_msg.param.channels = RPMSG_CH_STEREO; break; default: - ret = -EINVAL; + msg->s_msg.param.channels = params_channels(params); break; } @@ -684,7 +684,7 @@ static int imx_rpmsg_pcm_probe(struct platform_device *pdev) info->rpdev = container_of(pdev->dev.parent, struct rpmsg_device, dev); info->dev = &pdev->dev; /* Setup work queue */ - info->rpmsg_wq = alloc_ordered_workqueue("rpmsg_audio", + info->rpmsg_wq = alloc_ordered_workqueue(info->rpdev->id.name, WQ_HIGHPRI | WQ_UNBOUND | WQ_FREEZABLE); @@ -723,11 +723,15 @@ static int imx_rpmsg_pcm_probe(struct platform_device *pdev) if (ret) goto fail; - component = snd_soc_lookup_component(&pdev->dev, IMX_PCM_DRV_NAME); + component = snd_soc_lookup_component(&pdev->dev, NULL); if (!component) { ret = -EINVAL; goto fail; } + + /* platform component name is used by machine driver to link with */ + component->name = info->rpdev->id.name; + #ifdef CONFIG_DEBUG_FS component->debugfs_prefix = "rpmsg"; #endif From patchwork Mon Aug 29 07:51:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12958132 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 DF5E8ECAAD5 for ; Mon, 29 Aug 2022 16:08:07 +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 2D0631673; Mon, 29 Aug 2022 18:07:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2D0631673 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661789286; bh=I0ezOt1Euv4gM5BjQaVhaytzvQHvyzxNH24pb495loc=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=FzLFdtN/fyYLg0GsXtiRpbVkWtvC0GYpYIbV/ABiEyCvc1WTkwqpFsQAArJ7b0dBo WksAbBUu9LTgANOr1N3qtSDH6m5Ul3RMxKnM9STs/9L9W/6zsaImx48RXgssW/g86l T9jbKNyupNcRtAyTAC/B4RFXDfAM0kfG1J1iaX0k= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 526C3F8053D; Mon, 29 Aug 2022 18:05:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A438DF80217; Mon, 29 Aug 2022 09:56:22 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60066.outbound.protection.outlook.com [40.107.6.66]) (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 62441F801F7 for ; Mon, 29 Aug 2022 09:56:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 62441F801F7 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Rd/HW/vP" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PYhPTOxkfk+Bw+fqB6Mcq+Rhoa2emh/fIss7Vu2Xr+VZjR68sC02thcNuXAEwTi+f7a/2sU+8gwGemyI8nynynUgCTeeBSVy9ZNjrrQbU+OwOMvvPvzHtwcR5KLR4acPTp2yE+GwGyfqizAYJ9/3VHwUI9AXpLouGvW86B8REwbaoeXJQWUUBaK4LH+4Zp6lzIBSPEPGxTph5NBDwB+XY72twK7fAVcaKn2+DwaUTkL6Mp9AB83pNCrfHlw5VaBbHe1DsKEKcJd+q6mvkKqnSgRHxIAD+vmRD0L8jmXMD6Bk1yLILHMO87tduSXz/iMDwBbqovx8N/3C/K2Cx9sK0g== 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=wno8CxvdVRt2yJyFix02lqnTMx472fE5QdDyrOjvw6g=; b=kNlcw8qSCO9aH+0NxIF0JqE553GlkIEuzSJpp9SWkO1T/0YGtkdL/U7KHyAaD8AO/RKvMoz1lzDDzNCQWIGvUVETPhd+IPz0SPYSz6LxwKi54kvOdEwnkmEAjg9yyYsNh5GAAtHIn3e4Dwkxe/4vJNqoqvYsfEsuZ5JFC5qHffNlcmMt8ckHB5E9fjGEqLwu/vUo/GX9yhwaTNALEOOSmdXOsf39s4TBUurG3vWPjALvOPZUt5q6tzJ4vK2u/PdYSVjUXPoIik5UCCnEVb/VGkZ6Zq0WM81FGywO+5Bg5jKfZHL3FJe+JIZm1vNIVkEFr4TE9ETRF1Q1EJoByoHgjg== 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=wno8CxvdVRt2yJyFix02lqnTMx472fE5QdDyrOjvw6g=; b=Rd/HW/vPOo+d5l9hJex0lfPM53EegNsmfLz82lxr3CEkVfLNAcPtNVhBJVaOzKj+u70OMj2A/XPbDRtVh7ORUeM5LQ+bnaOir9mhIeVG/yylNutw6M8NHIGZTZFs+TY2G1fzKx8eaNAmZJqBcxLFFzkKqexa7PwpjJPf1arJS/Y= 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:12 +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:12 +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@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 4/5] ASoC: fsl_rpmsg: Register different CPU DAI drivers Date: Mon, 29 Aug 2022 15:51:43 +0800 Message-Id: <20220829075144.2405000-5-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> 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: d769fa4a-8b0a-4cd4-c805-08da8993f0ce 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: aZSf9d/SGbFG2NSG0hSc8N0GPv1AO5vO1F7oTVgfKXd7MNRHaA9M0FRYxFyc21hJZMBtQ89EfxJD2+9Mk+V+RMXpxUC06db8Lucr9ASo705jaI9u1nVcj9OX2yOVAgFDD3HWn5Rr0vnUQGp+EbcGgwVInyHPKQBEaS5b/itrT5DdjEvamui9D+tofEVvvL442hpSyJkkn5ZzW7Pp1XjjLgiAE4QlfHuYv7/mTUA+iuPya2ZcgHASFi7W2TqJOO9ZWfurKgkymptFuWBKf2bw+OGnD1uD9b0rP44IAYJG170AbwZ4G2kEdWtUkXFFJPtzkm2GfOegqFDWRQbdqfbyylOrXa4P8pmlqBHSxJ4tTOlsWv6Jil1wXtnSgktRjNqG+pQG5vX/FN9jrrV2bkU0i+HJdH9WLgl3qpQyFD76b1N5/bICzvYAHqEUtNLalbXdDS2PJyoxa88Hb5bAY4lyCLtnLIVsDCU+9/4POowAE66HOLUCU4x3c/fyyNzApuXcjsKdWRdEWb72iajss9G35g6STwxg86Spbj7z3x4jYr90riKsFf+pLuBuA2ygZ/puL26hFPMmaIUfTprx2LDpofe84ibfNAsB2DAiTtxGrObfFcMQBKfOxXnZEa83UNjkhuAwhe5zelvmThbYU0CQFX6ER8GTN+E93jqSbv8SHG9TXhTPSCmlDSXxbjX5Zj90cLfMUP27n8zC5Bq0vLMbYjqqElYCew2+4wAHHAizEs4IkH3YMJrnDmHEHTGQiWda5cN4XImxSr0iiU7J6fz5Gka25OR/q0cAvU6J0r2tVi4= 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)(4744005)(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: w2mYO+vTxcLBNiaDL4wB9TVK1+/SbI07MsSZfDoF7237PJFHFb6L8PXCtsvJHycyjORx+Sk1Dn5JziVud+d4iuXQ6XJCyHr9l5/Ze2BZ3ve5F9UcPoY+fgsMoCDTqwPz6KtB6eJQDx2IpXw4RUimmdjdZbmRM57hJbnXvAc6ztfhXz8xie3022jKs3AkQ2aTqafuyv8W00pQnVyTjqnV4eqtxF0svDg0SCjS3JmT40KxUPjdepTYPPnJCaO3DtlS/baCJ8594rfYl9PTJUEyW8C3RRXZF8+nRghl9JnWXV71kk2aYC4GHcZn56YmPmLpMcEUjQBWXlLG6tyMnhrqD0fhcBj/SRgqSbwRSE4DjfwfhYiW1S577vCJF7ufbkdXLpQUXQ6C38+Ixw3EH74N8T8lUOQBhxSuSnssWbEmAhu11A/9eYKg/dxwWUlZG/BxTEGCeXhyyIP5YY4M+dNNUOGUUcsRgG3qG0iWpnczHD408SkdlP8UOdYh7smoRp1374TuZJQCRYX7xJfpKnzrj8q85N9X60fEQq7SLpn72/XEAmNwh6GPiTt+bnrzH+iB3jUjWQBYT9y/2tVFxNTPQqjPrCPY6IMzA7O33a71AVFUw39pS1RDP2vOHCX6qbVeoyHzxPGD9yCMyNnqeGGAxnwQZOh2wUp3PuEjqZiETxWhdysJvCxnB59Dctm1P7k93vRD2I/AJwM3brpuj2+L+z1K4D350/tREtyX2GczyYPdanjZLYdf9CCVnJMb1wES4gh6zjpqUri49jkpAYaIRaFJxowbaC1lcXrp5SjFI5WF2v/h+XV4Bf1akElTsn1pSEjgwPnyOF4MywNLxW3f7MWqGJbBIx42VsQBE5wTBkn+D93WaSfL1DBgIRxfpw/46bEmVm0UbV2WXxuO4rJGk1d65IuNGmW54MgBzuA0LUywoZq+FX20lQ75w9fl7O60DYVvvbtVkPqe8SjVLhBBUlkhz0lHk09+MVHzOv/kTrjVTrZJ6B7ddlYx+N0sYtVzBy8zAsiUrRnFKc+6Wc90gMU7IapNv2/conV5pgFyl/vm0yxYRQm1nYHkYTB9nxHsoHIO9V4M+TEslYY/9IlGZGOut+6HWgljda9+Qzp61eCSdvlyjvo06EG6xHBbxmwcwVu3j94pg8DMTlFWx0GqgRhlZt8EHCUB9pxM37eUkZQZd3X+C+RImXxhSBd2XFDSSNST2QH69IFDsjAmUezMmXhIj8IO9hHEz+9qtDb+rHluJBc8hf6C03q4Gnf5YOYD3oQxx7pP16kjqFSIZEbPS4UEf5LStGEfnVayHaaGkc+ju51IagDpr7RAEFeXYY76aEt9ePeT+KrUuRCYmDyGqoUIzk6d81WWzG0TYMMmtn5f/Li1A1ZiHhG1apQfYrrfc3bphjasmSIDugCg7K1a1wU3d1nCJUUA8P0Ainb+8WHS4fh1WrWkKmCvge5m4HFKDnjt/lYrJXT3JDTqdCysgrRsxNqE/pZjQVg/uHd89ix5999k/5ukWFzA8G/Ka1oP/zWo6ZSYeFHMnVuwMrTd1d5eq38HKN8px2Fs4pWesJo2s/JTJCMMQzUT3HY/lO3P X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d769fa4a-8b0a-4cd4-c805-08da8993f0ce 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:12.3065 (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: 3RyT+830eSbnzQenxcGF7h8jH8hWsPconNJVYBvsndNjo66DVpkvfE4+p2uAVVQlFFkqZLuK90HmaeA9q8zkBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4220 X-Mailman-Approved-At: Mon, 29 Aug 2022 18:05:43 +0200 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" This patch can register different ASoC CPU DAI drivers. So sound cards based on different rpmsg channels can link to their respective CPU DAI drivers. Signed-off-by: Chancel Liu --- sound/soc/fsl/fsl_rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_rpmsg.c b/sound/soc/fsl/fsl_rpmsg.c index bf94838bdbef..fde3d5006ce0 100644 --- a/sound/soc/fsl/fsl_rpmsg.c +++ b/sound/soc/fsl/fsl_rpmsg.c @@ -235,7 +235,7 @@ static int fsl_rpmsg_probe(struct platform_device *pdev) rpmsg->card_pdev = platform_device_register_data(&pdev->dev, "imx-audio-rpmsg", - PLATFORM_DEVID_NONE, + PLATFORM_DEVID_AUTO, NULL, 0); if (IS_ERR(rpmsg->card_pdev)) { From patchwork Mon Aug 29 07:51:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12958133 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 E7755C0502E for ; Mon, 29 Aug 2022 16:08:20 +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 F2F861679; Mon, 29 Aug 2022 18:07:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F2F861679 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661789299; bh=EFI6OayM8qkkkJBujIIOeux7Qo9628Rqa+z/77qsrNE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Hns+RXmqZH7Aj5J+QAq8WFOM2H/O8WNo2eGutHc+xXkaRIvAkP1Yl4F9a1wzS2WAU bCYmftnBg9mH2vzU/PdjR3DFfgmCYsGCLPZZfBmWKVA1IuTAxTofxebqDzu2wrB8PE 5RkquKE/zmnA9lhVnZDpIvVfGJb3x1qmJdA86YhQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D1BC6F80542; Mon, 29 Aug 2022 18:05:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 49A44F80217; Mon, 29 Aug 2022 09:56:26 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60069.outbound.protection.outlook.com [40.107.6.69]) (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 4B6C5F80115 for ; Mon, 29 Aug 2022 09:56:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4B6C5F80115 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="XCT3jI+l" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FcamN6l+ZqBiIt/SfrCoek7npEQbEFYt3k/yzIi7+qQet6ovoZELw9RsYJX15L5SIZ8KmCpMoZIyEMptPekSbC++BYUV3nTWs99WMOQi3S0vjKzD+MHcC1j+fv4GpX8M900qKXlQZANHGoWk1P7NUY7L21cIr9ptObNKMibvyy0y5l8MdsW3xKTv80EzD12vmBX61sFHfAMDaQun3hO6itgEDqSksSCSwYGL6sCuOU78qx7E3XFBi2FvQYvPSH3/DB1iYl9WfrZpfBybbta1w365yyUdDkcoEdmfROxEExkLrWz18BH6Ki+q+mpFhEqoMOo2Zz1hEmYGLd3mKfrRdg== 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=V3rcps9Ux2yF0dLMCGKlmvX1I3K+2JMwGgrblKW04Gg=; b=jt2Mr5aWq7GnPQKnkhKD4xdutPUJggeHx+BmALhW5eL1zBmtfipDdi3NcCcmCrnsN60GISzERhC+50AXiqfEwbaMeVKx2/9Rv16nQUlJTUv7MMyrh6F3rUhmuOWWqJbKZQRtW6LAVcglb026s4dPwrXemHyRcihg/0XyNWZD+u9VY++AeV1JRtdCHlpRPMwqhJyfmXGTq9/Wjpo/33IemTUbhEIk5JUEb2d84Ddsuy5Rap2Q69JLXq2FRwZsEctir3NUR7CxqFJqvgHbTd/BvzqsTq4BviBqX35XWXtshexJuxrqia4dFm+QFyBbxFwJX/FEMTgQbG+ZwJ5dgtpmhg== 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=V3rcps9Ux2yF0dLMCGKlmvX1I3K+2JMwGgrblKW04Gg=; b=XCT3jI+l21iJfgAmPW1WHJ1/X6lhHJjCTYZ8PknRxGWRxilYPbFOpj9Y8raVVwYN/iOY5VDoPECUA6aOeVkEs40zLd/c32Phvvu41UcbbCldm3DdP49qSN3O9X8esR0j8hJmIKthtAIc9OV5SfAZKNMAtoUGbbN9QR8QHUw7iK4= 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:17 +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:16 +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@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 5/5] ASoC: imx-rpmsg: Assign platform driver used by machine driver to link with Date: Mon, 29 Aug 2022 15:51:44 +0800 Message-Id: <20220829075144.2405000-6-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> 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: 3a2dbd6a-087d-45ba-e9ea-08da8993f386 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: ykcmQPY0ax0pEEpv22EBA2hc7hdokClSezxWLCAfM1f2mnN84onZIBI2pd32c3i3cuMf4LUUjXXpY3O4NqR/w2d9eIjHPwBMdyE0YCd+GrUhrSupCv1TXqqa9a4Ebm2p3TPbjuFPjjw+5M+6WS6Vnk3Obxu2KcduI7dA1U7dvankthbxDX8deGTRWIqg98ieHcpgfqgXgJfIm76JFWoJyHpeqVSfEqHq76yAM7yrtxYTgNkhBnD2QFdewxsqUJ6G1QVJN1A0dEN5fWeQ9W89D/XzIbX/ZS9jxYTQ1k1eddCGa6Y+7HmHFlbUccyQRUC7f+j9Hew4CRJp2atJOrJsrZ6iQ4UhJMy976g7gtgb0B5+fYX2329PQBiL2v/9kONb3RH7a/qTE5upngEEqQ+YHu06PA3v/7Jljogfgyq8Pgrjt23PsG81VACXjXz8j5pIPYYm+EH7Emjr4jYyzxPboe/dSqoc1GegUFtl5ks4esumSORfmZbNZRjS9amSjufilteZCmkc5rrTPs6QLsBvmKYPVMtvmaNaOJDKBpv+Yoi7VKgRgrEkZGD2bYuF8QdNQ2XAYTY5SMzFGMY5X9Hp6VzzyL5E5EQQLyhIzHOqNKnfDUTHockNhncv9/bm3urKyHHNJ5UzOh1azw0+vC8HyyFCqGl9vSCviQz4o4bWSKpnGt48127ifgiIyYgd6KjtQ5pDNjGsDMnqCMq15ZMJfXFhRcJD2xEtT2YSMLF0EwWdCrZz96iWKHJlL/uE1gvxa3cavgLW9MJdW7w6tmVPkZYplQJY7XHEULpfZYCqZHk= 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: W6157gZvY62kbxHRkGhKxs9CoGKm2LqgvZkHwX+gNrf76DZmiKcDjrXVy1IWrisZiVfIsTOFCKvL0dxWz/Wx02ms4mYQLl9QR7Lj3aebw4AwAWj1yzLp2DxYJwFpRjhtJ27DIxm05Q/2j4ukUaGnWMyVXdOt6EkUzWhWpouXVg25hH3TIRdqq2s+J39L+3NszL86UPaZDE52snGI/Uh+Zt+srAek6G/saH0UuhjxVZTtOjbwUJ3p68A2jEBbuN4F4Gsvj8eXLFGibTZlEencb75rtQo/AhjNORI3ErdZ0QWsRsITW9JMlAAmDNYFzVIZBPi2dNvcNqS8KYM+Jk7vfkh7CmvzCbl8c0gSoWxvQirIxcv3mYTsrl1GP1cCzf1dwumKS3w20/LD4pJByGywbM3yaa0Bl68gebonj1f0SCgdIjl/3Ad056h9vsX7Hova+uuU5DgLr3Cq0k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bWmtmXvgsFG2X7UUFG015FlnffjaZrjYFehwAANKUYszHoi+YnMwJAEvS1E5tK X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a2dbd6a-087d-45ba-e9ea-08da8993f386 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:16.8530 (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: i9qjtdbjAcHDHG41Ls8wMVT8fj0awHbtvygrl3XTYywghQrT1495ESlkglJrWSfqS5P8rzLsCid6IyPs3hO6Lw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4220 X-Mailman-Approved-At: Mon, 29 Aug 2022 18:05:43 +0200 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" Use "fsl,platform" property to indicate ASoC machine driver which ASoC platform driver should link with. Signed-off-by: Chancel Liu --- sound/soc/fsl/imx-rpmsg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c index 2e117311e582..c534b638698e 100644 --- a/sound/soc/fsl/imx-rpmsg.c +++ b/sound/soc/fsl/imx-rpmsg.c @@ -36,6 +36,7 @@ static int imx_rpmsg_probe(struct platform_device *pdev) struct platform_device *rpmsg_pdev = to_platform_device(dev); struct device_node *np = rpmsg_pdev->dev.of_node; struct of_phandle_args args; + const char *platform_name; struct imx_rpmsg *data; int ret = 0; @@ -81,7 +82,10 @@ static int imx_rpmsg_probe(struct platform_device *pdev) } data->dai.cpus->dai_name = dev_name(&rpmsg_pdev->dev); - data->dai.platforms->name = IMX_PCM_DRV_NAME; + if (!of_property_read_string(np, "fsl,platform", &platform_name)) + data->dai.platforms->name = platform_name; + else + data->dai.platforms->name = "rpmsg-audio-channel"; data->dai.playback_only = true; data->dai.capture_only = true; data->card.num_links = 1;