From patchwork Fri Sep 30 06:44:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12994999 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 1734DC433FE for ; Fri, 30 Sep 2022 06:47:28 +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 ECF31163F; Fri, 30 Sep 2022 08:46:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz ECF31163F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664520446; bh=t8Fu/mfhXK7yyo58qYF4jaBoWo4FKqmXSOBZZZKtUR4=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=hcQHPBNjYhg8eaHEUY1IpIsnY9DMMbG4td779+6ez+oOKGqFRJE/+iic0XHAtx+Rz UysSC3loD4tf+eVOHykpAynrA4+oRN1I1mSXXz8GIud/stPmYzjZuQ0wieptWLAA3v P1Nm8davOsdl01VuSYmUzhDVSmTeB1NBu6l3cvzA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C09A2F8053A; Fri, 30 Sep 2022 08:46:13 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 66820F8053B; Fri, 30 Sep 2022 08:46:12 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2041.outbound.protection.outlook.com [40.107.20.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 5491CF80095 for ; Fri, 30 Sep 2022 08:46:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5491CF80095 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="bsflZLXM" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gyKiWxxV0uQZqh+dlaBKPxdDxy6pXFY/Ei0d88+K9GX5ukVI4gS8mxMvdYDvc6VYVLAuH+kWPEpkGSKd/FzMeSfPWwg8w0NyDcudzvBppP07Q1ubCbWgBCFyxDv/7oAGlSjY/fEl9acehV3FFjDA0wd5LjVFeop4/NEhQkv1V0QuT4Xm+J0AS2Z7IFAIbb7ekRw2ZP0sHMLUFWDbzOMtD9dpOeQpXswteQgG6yeNWtZyWGtIBDc/R50QC7u6UGadnR9fYU3TvGKVStMZd/jpzSrNSGanQlhLM11+ULZE0GWy9jf3SrXkvViw9VfSHS1cef80fOCOeC4q1rAZpc7dLw== 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=lOuZ6ulSnbx4D4POUFKxiguyOpmud1L/Mh28NlVpbFY=; b=cLDgx8DRub55cJaiYHsb6AT03TU4vJCKWi6ixUUJ+3mi7lsTTdT3iX8Fcv8A5/zTyFLMAVrEn+z9Fvj8yujfE09gaUUPR2KhNSNhKXvUnHkZ37hws8UCu3j1ROiO7NIo1hAcrP+fIsI95yv3SSmhAXu8B1FIDztcREL5BNIH0RxxAjHowlfTNYi/M7owSsm0XMNrg3+Os6ZoK8Y96KujQQfH+wSsCTQikgEa9emN4JVvDQXKN27zFZMviK8HrrPzNwp6x76EVsCpe6RNiI4rsxZCQVBY72NN/GPq7obmk6Q+5JSnH/nbhnjJL3H/payuEUx2jHOmAZucpJFW8GhR9w== 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=lOuZ6ulSnbx4D4POUFKxiguyOpmud1L/Mh28NlVpbFY=; b=bsflZLXMkrr/MexvI0aAsVyRO9f4sgFirTLpj5kH0X7h16w7BaVCAnczsG8b1fTf5COKEpKnoVGUIElnWUXRCM2rJYrn0IjKP0+Y9wREEITz+mNCbV0Saf0meoBDdQlLkeQBlM8lh8m63v4sw2bkzbWd4D6u+MX3pdSBcb268fU= 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:04 +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:04 +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 1/7] ASoC: dt-bindings: fsl_rpmsg: Add a property to assign the rpmsg channel Date: Fri, 30 Sep 2022 14:44:35 +0800 Message-Id: <20220930064441.2548505-2-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: d9217a00-e835-484e-55db-08daa2af7222 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /2XscgOHX8ZwJhB0wjFF9LhLuzj4AM27MyIE2kDIFIDWEzYtjpupE/SyPraKIPHROMWjkxHp0OPgwzIwGWWnhDLkdG91JS/hTQgQ64D5HLS675WxEpmLi+T/OfF7jt/OUHbexWWGcmBmxaWjpu+YGGYqmTcg2bfpIWj7BtN6KVVEGSpeb5R3OKOd6+uqzE66u+5hQph0m/g5aZMsh0JaYNr0S7KsdQ6PcV9TUdVYMwbhrqR7QpRXyhXjnTzrLOXey2hgUL8r1KvWd53P456r1ya70XuXzXBezywnPvGI/YeT+qiAbH5lugL9/uALVXJF5AwsEzAXDd8GQU7ENmMechbm2y0vnzxHT8zdOTFucdq5Xo+ZsWlj3Gfw+7mQgKUAYJbmeeoD04x3rUHcnKjVb4CPc0OL9eh7tolXZMFvLtkBFNz+4QumrkitL+B0EO72xX01Pb/ttR178YWosraIwEhj5xy/V4sC0p3/PP4jS+10Inhp8L7Bda8K2+G06tHcaRNZQ+JosJIPEIQaHaDtdJmRIGUSxiM5mkD4Q6qbpHKRSIqJpt227xqhaHgKTKtZT7SK+0qwG5C5enH7Lbk9HHDkulTO0lJKYNlpCFxpN3yF/AKUA4TP7PLZ4Ad0Maoqtaoa+8P7rjKmxQ4mdP2hMQ0Vq/woqOljrUxsrvb1aExpYV6z7pU6ScqD+IrGzecVSFDFNf5TuIS64SEHzqFgw6XNzhdYkkpToV+bCmrGzdttqP1uOvR5fDb0p+JuFQ/8XHOEAR9Pxz2cxtn5TjJiWy5QV7lpgcynHGX3M8FaG9A= 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: wR3lhwMF9BjH3YavrracLBQmHJrr7vfW+fWnEt4G0d1o1du1uEzd7A5+L7C+zHTGel2wB2YUYoHvHzjCVi+ViH4LjN6yR2JMw8k5gPhlVpqH89kHy0klyE59e8ROUkO1Rn4wKqLW73sOZkbJVwMOmzvNzGkpu1jeZ3xpi1WuXMhWTCR+WCKUMfZeKSPoyMC3SCiyVpwotNf++OiFMmdrnmXwRME9FHtWKK/jNSO6l2+FJGYN98Z5rCMNYQfam+nMgIdVifBWjJvdNknuVBoKEsutdaiLEm57uVbULI2eXwYd+a6O++qP49Ik4S8XlKNjg/9E2F5MvA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7JkbmyDw+isaL690Usf9RAIEqRlH4W6KzoXM9RoP+JYw/6dnz2y7EAThMXBjTHyWfG45wMh+MAlX53B7+d1AF0Kfx7bxZjEqdU3t+//b+H/3a3NgB2+Z61+e0N9tDU7fHbxsMPARJRjYvpjxy6kwVBal8ymtVg/O5+WkiKsiauq3f7hn/jQAh761Fd9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9217a00-e835-484e-55db-08daa2af7222 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:04.6206 (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: 5NHrNQQgghpcv0mH4dABJm3+bKyEmygKXEMsNoypQfX7qP4K0HsRMOVJ2FtE9bFvCmFXwq6yFaYDznpV/kn1YQ== 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" Add a string property to assign 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 Acked-by: Rob Herring --- .../devicetree/bindings/sound/fsl,rpmsg.yaml | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml index d370c98a62c7..e847611a85f7 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,16 @@ properties: This is a boolean property. If present, the receiving function will be enabled. + fsl,rpmsg-channel-name: + $ref: /schemas/types.yaml#/definitions/string + description: | + A string property to assign 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". + enum: + - rpmsg-audio-channel + - rpmsg-micfil-channel + required: - compatible - model @@ -107,3 +120,22 @@ examples: <&clk IMX8MN_AUDIO_PLL2_OUT>; clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; }; + + - | + #include + + rpmsg_micfil: audio-controller { + compatible = "fsl,imx8mm-rpmsg-audio"; + model = "micfil-audio"; + fsl,rpmsg-channel-name = "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 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: 12995005 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/zu3l04Al1VxhVx1bVciBkw2Z8WoQ9dSl5Q9C1rqI03jfCh4qqeD9zcAsZCXbFytUWWPQdPJdecpk0vgRvnjQhBKqVv9jUxUnHE0YaE+iNcFeAkL9WY+pPGg1yJoM6rlrt35hXYqrhvDjoeSwGIbHUYlC5V9REj87/nKVeSIvryELQQYlv99v/4oxkvgQIisFgCRFXg4NbnOQMml7FPGDtwcWmtvBsTN2IqJfEelOTNsY9E0RjicJjqSF3E/iWxPie4AOt8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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 Acked-by: Shengjiu Wang --- 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 Fri Sep 30 06:44:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12995000 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 17DA9C433F5 for ; Fri, 30 Sep 2022 06:47:37 +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 24CCF851; Fri, 30 Sep 2022 08:46:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 24CCF851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664520455; bh=C0pHOLLwLFgbyHpon4eTcfLnsO8/whclifoTiHBZyc0=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=EkvFmja3XLKyTVhqMIxRAmKWMtoOq0p0P29YNOcV5/IczbGNZhCfYDP72XjVRVE2I yD/+5PJS8vuBQty/rOJ8Ii0TdSagSMeFx0Vpb1TcUd8AEYXMjnpn9V0yL5Gxdhp4Uh jydRhe3MdS3AQfs1wfuDlva/PfHD+Z+2W0P4hVLw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 86402F80543; Fri, 30 Sep 2022 08:46:22 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 63964F8053C; Fri, 30 Sep 2022 08:46:21 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2079.outbound.protection.outlook.com [40.107.21.79]) (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 8C8F3F8053C for ; Fri, 30 Sep 2022 08:46:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8C8F3F8053C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="e7PNuN9D" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bb4snV54Z3WxTt1JhQu1b/IMNpYoaul22TJJA5gNAtXoniaouxArH7PqrAmNeJ/LglCZEOjLZvuU2nO3DfrcFi3l9dbadp538tmllKU+cztp34vdmXoE74R3GMnVoDjY8pRHqqsf5iqr4f48larqw2Lv0LoklpXmEovhPliIFD+NqBlfnBPhO+kwNAeW5JPg0aNOFeItgVyV604EH+w60Leq+yKLKCi+mzpu7XZ+S019tzqEtjUZXC1aS4G1hWNwYcs5NorINDvCSMWu51ZxtV42GcEjDAqP9oeE9mQ5hkG9EO1l4m3MNF5JP+PYV+WeiNFcGqjU/Ltd7tMziPgu1w== 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=XYTwAAt7/koMSdph33oVPkc9b5DPWLIipSpB1mPQMd8=; b=kRarVE4l/NKyOjoTTGJrqLwc2sx8b9fOer/3Qyj2zMQUEC0YEakiO4ijfbO9uZ/4j3TbwTy4YuP7lexkJSS6HXFVX8wYwV+dwpSAy43elGhGs6fLe12hygwhVaQ2oDxibr55C69hm56xjiNGCXg5GaMf2oQ/RUHTh11TdFibeFttraoCXSESqgN7km4djFjN2T72LeIxOwfQu8aBGDzzQYnZltFXWQYy/IUhaBHoUmeVRfQZPumCpBI1wZOS7QDqFcYTKedD0KLM2o9LVpENw7NTh9Vm+p9eSbcujCsbtIW+rS+Ta2WTsJc4WMEaEGrDe4Gg+kYfusY1OmDLgi/qYQ== 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=XYTwAAt7/koMSdph33oVPkc9b5DPWLIipSpB1mPQMd8=; b=e7PNuN9DaSPa/0WrKtWoLwXyDDOAeIdVjiMMTF7edy3zbEn1resgIFkGuN9Tlv+tJ8rU2RVipkYg32DyYVX3ZyRFtwbxp9rd+NP/xRVwZ7PW7WDL3u0Z0RLD2ZJ4KLwPCu9kpAyuO6QoY1x/rhzWTouinfBcdGMNMjKC02z8pRQ= 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:13 +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:13 +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 3/7] ASoC: imx-pcm-rpmsg: Register different platform drivers Date: Fri, 30 Sep 2022 14:44:37 +0800 Message-Id: <20220930064441.2548505-4-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: 6fd0eebb-7a9f-4d03-4bb2-08daa2af7784 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hUdEKGzKHstPegjKh8cyr8QDvx2NJKz113KrqeMBAyzmp1+jS1Kc5PX+i4Myst0g8XVvOpq4s65Zz98xJjFqcqUyEHdj2I2z0XNKZqmT6nBVAhuGv78W5WRj6RungNFlrjR3mM6VPNiuyPAsqNYPGtSp/pmUBB6vhzbUcf0acftjwPAEchiagNVXXrWdM32GiFkhNxDe6tYw/1SkwAc/zPEpDY/j2QUxI5VohHqG5AjjJa+Dz9uynGgCETc9O0KRuWtfBEg0Sy5jMcP+h3mfth8E+T3eX6t7BAtFOKnm4NWdlz5GnSnECp29JMCHCAkibGbArilLEixE2WGuuMXZcoEPJ7Dif0WMjLTT+6oKI7RC2/4o+0W+gG/6bGaDdt3ElIeG/IKegsC1NhXion/O94Gi8AEH6IWqS8ZkgPvubODXbinO9dOxc7OPwS7lpQvxc6E4zxG2/f89Mrr7Affb8uCKCiBuU3ngi1fi5Yz/Aks/VfOwkuUNStc/paZR1RObak83nk8lJBCwkk69MCcTqHiPhil2cWwTE87bQkaKgkVaTvNiLiDgkQ5AZ/PyUOrIWEtq+ZUlcHS+6KZpbuG0OHxKU3t9zKgH1G2EIpFZi2eI6pwKPMXuxnKaiTUDvyzJBjy2TLB7hvvdl3iWbpYzAc/iMa50Kl7Lmr1rEUznxoYhpaYlltvy+fAo9j4WtzNNp2k0BGBk4wvnm6tEzssTarewwmDLGYCj2868WxdzBl69m7tfHM99zzpN27zvPk0F16d49dQo1o+HuguZFgXbbugGDdBDsvr/XkL93qWNWJY= 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: mXIGqZGy+rg6sAv6+X/HvnYSHA7H2s5Mhd1gTA8TBC2zb4MdyzFamj0yE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EaAoAZJEy6CBIWWYI+lOCPokRJRLClSLik7QBqCua6P+lz48IK1Jdm4HrMKPzn7jIaCPqXIiPCD5GEXr6WdZSJdl5I2KFHnHTmbAP9zg3GbiIjzMWZcVY2uO1GnqLst3GzjPk3DPvaLmADhgfNRYDK81NFFHPC4LlbNWJh7Mh8c9UOVCLgVm21ew4reMqD4qxjQ1f8lSXm2T/uXyTw/8qC9wgwu016pf++f6PzSfZ6H2Ms7VxFJTjLoixbdIk8Zlrl5xpJeAH3KnJJg2HGAYMXyTOx0JQ6AT544I7AhNjahuLW1cqfLlCJtc4k1JlubJpL4IdmDhFY2uKzoFdjDrXjmFwEybFY5gBH4/ktVQfmW3bPRACqmgCUorVyUVVQS0pA+6rKHL1vMLW6k2W8sBk8dubGczRmUnqkQmjcDFAKAvRPAkGv3GmcjXb1C7sfG68tP02PKojqk1Zv7AUFqexRomL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fd0eebb-7a9f-4d03-4bb2-08daa2af7784 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:13.6200 (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: fsg82xx5/zgCX4Opj+Ai5r2UNRXzFqVYig5hRcw8LnFrckNNl0GUrGLFRreFCSHxbWfzhZC8KCCdTtcoJimz2w== 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" This patch can register different ASoC platform drivers if there are several rpmsg channels. Thus sound cards based on different rpmsg channels can link to their respective platform drivers. Besides, the name of driver is equal to the name of rpmsg channel. Signed-off-by: Chancel Liu Acked-by: Shengjiu Wang --- sound/soc/fsl/imx-pcm-rpmsg.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index 35049043e532..3157cd5a837e 100644 --- a/sound/soc/fsl/imx-pcm-rpmsg.c +++ b/sound/soc/fsl/imx-pcm-rpmsg.c @@ -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 Fri Sep 30 06:44:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12995001 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 A1513C433FE for ; Fri, 30 Sep 2022 06:47:51 +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 C9583165D; Fri, 30 Sep 2022 08:46:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C9583165D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664520469; bh=SpH7HUWjvfHGzXgYO59O4errarcBRav/30g4E750c0o=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=b9r4XfRX02L1dB7mElilP5ZYkIHcwZbXF90+OEKk8CvbvQRINr11VuIXhnAV2RNTK 9OhCRIqLyZ8p/8+8ZnkN+pcWKN42/kpUsqfy0CPLl+q0rQi8+TcJEFIkzk3WhdVxmI vp9XUPi6jUohQzy0aC7aJ0sJU9skPhlFOAQOGyi0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2F820F80551; Fri, 30 Sep 2022 08:46:27 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6AB3AF80551; Fri, 30 Sep 2022 08:46:26 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2064.outbound.protection.outlook.com [40.107.20.64]) (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 DA5C0F80542 for ; Fri, 30 Sep 2022 08:46:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DA5C0F80542 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="MNEUHA9+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hpIwnx4gDjgZIRrQOypnbUsaDKL8oLQV7oSQgfmPPTeKhpRmzVFCSicNHfI/70hzvLGVBEnwu+K2ncKc+PGRurcbFV3MpiOjZ6n6wK7AGchggkpCqMVnvNp388ChLOzyVD0kJyQ9mFaC+khIXX4o4Wzitg/r/xK/tGeqslsF25wrp8DxjDrVnETgoc9zVwdNOdIz/MXveYbU2lGYeRTjSmRf+tRSJYp7Tyz62BDD4Rcd059rn1t8NIGw7CT4mEH7hJpVFS+mKdFxVK7u/DJxlg+lhVF1oGtpRyp1Cd5BY8VrpSX5CDKf/S5i+pUz5zSndCXIbm5Hc9j6DkzkWoZlJg== 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=pHxRl+PyyXeyleSdme+8llYfXmkco4/2wZZPH9pkCDw=; b=YFmN4SJgQys0t45OlncXSRy0Ism+biuQaWjmlZVHqmgf88ohtsZhQuku+krpk8Ts8iKrrd/aAWRplgScsmEVQ7EMUvKQJrDAoTWfr8aRl5oQEN58wkqJ1uCOGDPXon30QDgF2tGOUgUjLJthfY2glsiYErSra526yhgVu0k1+IZjAohy+Fre3lXem8QD7xz/OIwg/pK3snUaObYDWWbdAfplYjZ/0ekCK5inZ6rTgwSAz8N8TgDaLHk7tktHI+FyP2DmooTbEBuQ5ws/3IyyC/s/Qaqa1p2PYhK7EZU84DVA5CTxf6GUcE95b3/qPNx/7YaKqFJlhP3bv/tCzIfLsg== 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=pHxRl+PyyXeyleSdme+8llYfXmkco4/2wZZPH9pkCDw=; b=MNEUHA9+6vn5UsL3f1W4vjML5bTtOIzHz4PbUoBluGVW1PPK8jPJvCtsIH6oXXbXScBDj9ynNYkptamDuO2GHh/T0mHznh/5azk2il/bvz/NgzGkZiO2OiJQVyOErR7NfsOGBl5DfsS2BZqdeG8Bhzt9RSnVNB0I6P8sn3gk0pU= 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:18 +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:18 +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 4/7] ASoC: imx-pcm-rpmsg: Multi-channel support for sound card based on rpmsg Date: Fri, 30 Sep 2022 14:44:38 +0800 Message-Id: <20220930064441.2548505-5-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: bea7b867-1b27-439c-e450-08daa2af7a32 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u7f6tnQvbhwY2xYf2bYFTHlpe8/kxN4vVV8nXi0pi3wOH4tq53916hV4RlZY63/aQoiITXAgIOwAu8HTamxVLW89JWv2EIMUr2WQfMC/SjmR1C/G8UXyu5pYwBnPB9Tsl1sWf3sRY4eXcJCAvXgc2H0jVNVnGMkhMI6XYGSVwSXsUbl+tFnkxhKfxgE72CiJQI2CCisrNBMkjM0HzAFPdUi01KTR9/uodIw3Y0Tuk5a86DDyaGqMMAsG8+sCGkb1bNaj8I/pgVIcSa5rWXwnqNjVMAJz6hhdKmGGXMWJx/e8klfdK+KZah4ukJOS9NYoTV3lYbJPZoXSJLMf7Ei3bIeqKzRmCucQZwos63AmHh+aXFW3zSTebguJ5RM5vndd9/CdmI+Lo6+pgN5MgCLkfJQqY8pm8XsoC1CrWfi4nE0pRn5j/VK2jXNMlzVI/fpyE7DpNu1IwbKbYRDGa4HNHh5R8/8oy9IpxZz04gEDwKylMOInOdYFERMWVhbA2I+Xc4/pmRe1SIMIoCoGH5FFpUJ8zMySGEVeSODBLlWyrXn1Q1xZ5w9nZP9dkkVXveYqOuF9o7E3GHxwRBUgOfO0QLb0+HIWqGBm4VL3SD6rFBCKAucKtZLKsUoqGXBVNpD7xx7cXAVDBkRNDZi6gJfpge4B/aEC8P+DfQ3K7uFi1oZsGZm52szW6xpyxNFi3x/mfzfnwbM29vjfpb28Ztn1s/2t8h6rPMndwqZ0BB5JnZkdVfV1zXNMQOk2erFpvYdJv9jJPuNB1Oh7d5V9fcJtml4mSVoIZhCPZ8UQaQeK7jEYiAj/lv7hfaPkV8BcEGOb 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)(4744005)(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)(17423001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: beEZi3PR9Fk30CONFBCBld9MydSrQAHZWq9QwtzTrHoJ1Yry9oI864LKHSP7fsYuN4nuOCgatHmFkebdvrECncGE0O8sTS51CMzTPLpXJvbXs2lAukAbdvC+VhDv1jprOytJazp07JimVQwSO/K6Mp5mWSNLZXW6QgvNog2v/1l5r3LCQjoWLxVRqeBzcJV/Bc7jajmB2WINw7FpFO2rYwk5lXhte/hdRv66dIab7czu790oP9aEmxEe7CvrrRr5QmAAI5ezuq30iGZJvuIdu8+FswiPJbo6j1OeTbTDu/sCRv5Pv2ifKWjqjpNZRtjphDRMdUlNEtLxzO4vV7HHVT7eqoAxKFBa1VtnNfKqUMVTIa/RmwrO6VUCAo8vV+16xnprIV8swHBsYwQzDiQrgb128QFLTeA5NzfD8f7ehiIWtniI7OvDVBQSSi5WH0uuGbIyswgOdDabf2PNP8wRhfxqgrEuSKS38J5IDkvrv7bYDA0bhQTPgDPAWElwvbr4I2xseQ22AcduT+iQgCyZ5nrgIUOPfwJ8F1NfeM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CrossTenant-Network-Message-Id: bea7b867-1b27-439c-e450-08daa2af7a32 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:18.2759 (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: 0f49VcUBP8oNiWjnFU5fwnsH4wqSLdCem5qsV0fCpIYaU91grcRGAmXh5N7l7+hyyF4/x0tpIf/nkBCbf3ouIw== 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" Some sound card based on rpmsg may support multi-channel. The number of channels can be sent to Cortex-M in rpmsg for process. Signed-off-by: Chancel Liu Acked-by: Shengjiu Wang --- sound/soc/fsl/imx-pcm-rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index 3157cd5a837e..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; } From patchwork Fri Sep 30 06:44:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12995002 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 48BA2C433F5 for ; Fri, 30 Sep 2022 06:48:18 +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 60808166F; Fri, 30 Sep 2022 08:47:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 60808166F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664520496; bh=aLeWNsHsaddvXYT9xCzht0Xx1S4x7WTFpQWe1GZYfgk=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=IkjGVRAjeIS29yX1SZDtLBgVElvDvNF8djOzARpg/rqn79dR2JY51Xjc+UOWmy0TM xjZK2q1zHmdDwqbIjnvHPKNyHat3+qi0+S1zZsZ2y5v66vsyuwF9XnTXM+Yl7DrOpx WSmjfjSDjCysrOQd49nb4SZ3mFVT1OTLLmjfpuJo= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6423EF80563; Fri, 30 Sep 2022 08:46:33 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2035BF80564; Fri, 30 Sep 2022 08:46:32 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2058.outbound.protection.outlook.com [40.107.20.58]) (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 E1E37F80549 for ; Fri, 30 Sep 2022 08:46:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E1E37F80549 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="IVnV7G77" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BdcAONRDKDRJxxcg6rYxSihx61mBea7BePjVYU25+mgyAzA5YVeyIjAPwNKH+Q+MeQ3kBb7cBayV8+pKEgEep/rhB3tuYMgbHR8W06By8XecTz8GwWFITd0rbDGaWJ/jwq/XWJl/mkNflIO6nn5eVEvt55VVRkq+hAo8eWvILl19RcxUNF0sillCQqMJ2treHO4ODyV582AjXCBBjKU5fcz4P6k+dr72HTtw7iV8WY8wZw8/GJ9b4smp+aTVfMoAAFhfDBFAGgvNv6QmPPUsJqPSpMCqUBVWd1Umj3HxoyF70N0ulo4g5RLC2LgJPiO5gJplpkutbAgLMLxz2fuQvA== 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=XLcmkkiNlbs0tz1gDm+D2uOeNAsHk5XjyBwV+M9cYLE=; b=li1N7j+BhYTvSXHAMYJ2pBbGdDxmbOKgl5IHheW6vgbxknHwyAGuAzL2JOizuQ1euk/nfLMKamNt/tjkyVgyPH7+iuKiNtvbwvJb20ad+Dl2WKSdA92EY9/C8sMXckvjLksddwHq0MV/YKmisYd+t8mYmpQ9cP56t2oMFjEsCfFeTE1FGgoeenZGb14hunyQGSTsd/i951esUAZzrSJVKYlIGIab2TGIimbNFexMJMrHN55o8fce6g07uKHll5/yZoyCx9+Dne3RZwWogG9YyNapE++KeZaZmO+Ll4GXdmwrI9h/3XiV59CK4YfJs7sSqO9/NNfCoghYEpClUQgS1Q== 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=XLcmkkiNlbs0tz1gDm+D2uOeNAsHk5XjyBwV+M9cYLE=; b=IVnV7G77jLTnJBaqq/6p3InpfOs2PCAF9slk6x0uMjwLkN35d0oqb+ahraHK/9AVx+yEkhyPTnDlngmd4YWXIJL5XzpzDzcfFSMaqcG8ou3nwQLM/zih07S4+SY6BOIq9gB+L7r6I7gAOTiPwEo+bnB+0xWvkfoJvG0OskLMums= 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:23 +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:23 +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 5/7] ASoC: fsl_rpmsg: Register different ASoC machine devices Date: Fri, 30 Sep 2022 14:44:39 +0800 Message-Id: <20220930064441.2548505-6-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: 4492983c-1049-4fc8-189d-08daa2af7cfe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DJSOpw46RJunws9D0OOQ+Uyid7ewhyPrfsW7OKQiKkAZ6YhDsidBy+0iuDINi7IgXFYJJJqEpXs2SSHCuQaiVH513XU5GGnHBRmtInxC+HzwJdYOU1MT0+gguqkbBHAL9rf9ISCG4TLNqlx9ixsmK7NgwIMP62L5/7Hp0V9+QoYqLVvpP7UU/zd2yiqPoVfQZYLBIIK021O7zjGk0gd9pKkxMbwgSTbO1LC249apZx/qDZxzhEJIF2U28AbsU6OCriQA4Rv35DSVXESkqPOfoZWwC+HUueqaOwCj+1sHHLOnpqKMQqdNpCOY9Gf6ZwQoIPjqAeCJqyVcjtsNb9ywuB+2NOzkDR19qmKvzyoJnlqzNkkjkFnQFKfPz7C0vIW3gWMzXQbc+IOn59hp0JlR71Ucoq7n+a9RwpgSOD+iTj/TaiWd8k5YHqaMiaI4K0vU7TA7DmDNY7gZSJ7Y3gZC3m2FdWfvdacdGCvn/7wyhb6I5CRShcH9yS7/q4fXN5y5fVQEVoeDWqSIES5XvExlm+l016psDYrJPmCAXY9Bmrm75wMBlokUJY3y00UVuPWMKKb2QfXjwJHTxFTg05m2YaimCqlhTjcR1TatDPop2HyZh8pHWE+uCzs3NI47NNdGfRL8bQ5zrFA2+0rm/NnR/0RQD1eDC/wg5nB9Q+7XkdOXh5kR8IHftJm7EcXYmTKftxiOGaGDnqBAilj6w2fPOmWuqx8TlTsQtqlEqzAHD4k8plXbeqg7DHi0ETuLutzVutqekCNeQyAdfC8ZyhHJBK4xu5m+7yh1zjgt0pB/gNc= 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)(4744005)(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: Zbp5sjuppiYjfN2XfNJnjTzgk7teocHqtldd7YM3ujxaTMPp6oRmIiCnTASjZqXkJtXPe40RlyPf29zfmk1OcUVZahr51SkNV64PR38lQfFfKrnEZpXHKZYnZHaCwYGxErs1Fsg6f5J+lzHcew0AyOKmZmN1mXNWRsTCLYn0yBh3CIO/5GAmZnVJmQBkE2bWSu7Si2N7tOyD/ZHKJojUMdCJNU6JF2/ejlWYn9/MvRjx24utlJ8VGoMO/3R+gXSHNOsvD9wRxr1HEQb7XPqddECkQ+2bmjyK2XCKdTTg1tak9tzAj3sRCNakuOZ7NZ3fDcef8PFnmtKFdPCeCg99rD5MR8fo2E6NrUJSM4uxbJrBP9jRr8pr9cHFYL/u9h2AnapbmPmqXG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+CKP4aBmdQL9qhciWCjXMMOVSP91Gj+GM1r/0I1ACqD1SJWsTpuJYzP1xsDUWqvf7kkprDMFil3SKIaP57DMyDrCRU2HESY2MRYQhnlW7vpOcUvEhOKyM0+pMugfPONXt9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4492983c-1049-4fc8-189d-08daa2af7cfe 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:22.9475 (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: u+SLTPoQyBniREjbKdci81XM8TGgF9tKGCq81Bh3Pm6011mo/MMI2ftaloi0O85TVpTeaHYzr+05r23D7TrpSA== 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" This driver helps register ASoC machine device thus use of PLATFORM_DEVID_AUTO macro in API can automatically create device for each sound card based on rpmsg. Signed-off-by: Chancel Liu Acked-by: Shengjiu Wang --- 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 Fri Sep 30 06:44: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: 12995004 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 0C516C433FE for ; Fri, 30 Sep 2022 06:48:43 +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 3714A1658; Fri, 30 Sep 2022 08:47:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3714A1658 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664520521; bh=EyquvYI6+4XIzlSz3JobW5dNx+X6qanS8Fsu2ta31KE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=hDz8gXMgb2nY+XYOe1SAToKXiS2OF/x9M1WTNyu4McBIQ0c8Z1fxxqMt7ES8fxv5K SE1vIb6oFFND+RMX0iTdKPuVveYOB/64v/JmSK4fSJE7LDS/QJMg4OhhZwsgUe2BnC 9eKaIf7oU1LH2QTcVK1vsgvYIxG0VmlzCPr+3m/Y= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8D674F800E8; Fri, 30 Sep 2022 08:47:16 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9E9E0F8053C; 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 3BE45F8055C for ; Fri, 30 Sep 2022 08:46:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3BE45F8055C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="hxt86oe8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mvFATu+y5LJjbIaUbcsnljB9cl/OdStbO/7Z94A2Aac/GjEp6+4KdJ1JVotVy9WMRL9auk3nXlghiKVpIadjip7OO5T4d8VeSrqNHFwyOlkBGbA5bbMCiCynchtGtupirhTRKnjigGjsMw2iwp4Jbw38fFDnOrc7Zwsy4kiCmNYvI9wxBcmu6MXJ2yW6HxCIjzBfG2WlUX8iC5LZf+98Ynqe8pzPkEQmT7tU4Wea4MzyEU4xyXNR0nw7XljFJ7yZBRKKSRlEsbrL5nZbD0hC0bKgI/kK1kvHT+8cWoDAlguFRnRZb68KKrkkRxFQr/qwfQkn5a2h+gbwNyEq0VkLSg== 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=gHKoZ/w4g5hkrRVBGiXAnTDf8+HzWV9NMppMRUHKI9g=; b=aX//diFq2XIKd1BLhoL1ekhC5Mhgtf9zUHFgBvZ2ErrxQP1wTQ+d2n6ova1vmmEI5sR9RpJlmrdkx11Pzoy3pCGSZeg7I2qpx4JLwFtSKvl1OJ1co5ZBQGKC+Tig10CFwxsV47Y/BA5gZ36UpjmOKlu88kEY4j7n2WxNju3gtlOdvwQUP1yeDv3HhAVkByRVZrM/CuEaebiKl9+Mvsl1ITX0yr/2W/uB1GEYHA3nOWZ4Ku5txfrUsi3owTlvcdqiXK4Z7mpxAij8ndy8PLRD6PDimq44hN+xjFQ1FUwGttePvw0gKJx5hG4pOjBnvxSBzI715LtBsRNOaOXNhuTLIA== 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=gHKoZ/w4g5hkrRVBGiXAnTDf8+HzWV9NMppMRUHKI9g=; b=hxt86oe8q54/U0kZPE1CytSPEI9XjpyJfSXc4JBo9K8faWM+NWl9OmF3gNvQg1dr+DHoz/nzm7h0Fgd79UQbDvAT5p1zX0zbDGeW628/pFs8tl7c9x4Uz2gg3z7wokLDeWcbXZ86nvykQJW9P4mEbDqVh8lgxQsPEPMY19JVGlE= 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:28 +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:28 +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 6/7] ASoC: fsl_rpmsg: Multi-channel support in CPU DAI driver Date: Fri, 30 Sep 2022 14:44:40 +0800 Message-Id: <20220930064441.2548505-7-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: a4e422b0-0507-4027-48e8-08daa2af8007 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dMbDt2jdEhs37iquwcLcCCTqkwYl/34i1JYp77p9l4unXswhGKEprfxWmlqii0T51HdclNMeBpteT66jWdijO2lyCRkUou4MtLTRB/JW/S2CQu/iVu1QBHiXG0F0hLaB80UM7UH+28vn8oYLgGRp8p0DFkqK9lPPKqxsfeaPPHi7nOVCqT84kn8GQenAqViKfS/ixEm1b62LvbyUrJf9AUYrCKLQ+SSHSYUIB1NgBNjzpEMVxrpw3NseWA0BsSz8ndE75w7W5aLivHAXNB0p7eY9Zq8Ch/mv+ZRsHwaIsuYrgkjgOCi7DoOuLylRsCkDbau+qmimoidCbfa7cZQkt3JgGYWmm/2ZtrQeWtyfN3HEXHcB0JJCmVLliufGng7wqQhk1ZW8EtlsBjtFF3NAC+rqMtB9ew7yEDk8B0LcB62DpmZHH2RfDS5RcJz2vqgqB7/JEMNJPrpxYgVrv6VD4YnYtrTdbpNuHPe0AekCN+hCjtSe673I5Xn2Y68YBMBCcc6tIe1Ulxxr4x8qAxIJfxE2Uw/FvPs0NaE7VD6PnWZpeCwCA2hiMm9u9R8TApqw59ZKuOPg0dN/6sBb4qyM+Dki5X44J0DmQN3gVey3jPKeuWwf10SxIt47PpfdJOpS4fkUkAMDmdqXsSMoZmxnyRu2Sg6ekZUXTaQHF2MdHlu+Q1JEbbXvPbfOWxMtqj9FLvfw7vrxYbzYcKqnpTuTlcgu1Gzr8Iqx7AmAmviiGMGoPik8yyRqua9/TA5ZkGe5AQUopjJ9ueilFuw2DlVVaPcqDi1h/owLfxC8eKNXtKo= 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)(4744005)(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: rJvU6mkRPQYwbYd3nPBaclWO/maTKvL3Z1hVEXkwfKzIRbR+lyAURsLleLzR4Qp5h4PI7xzuNrTFwMKAi2cM+lzBftPxXxw0wElUhr0cCr+RVkxj3Vx2irL4H9hg9QdYqtfrF5fWfv4dekJWJO5IsL14v0GxsWd6r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G2KEKD0Lq7RsECi7dLFZw05dsTOsbFRGbf1wb4/40knNenQfcs5h16i2d0Y72jelUI8dZJTQjsvJ2VnEKuiGUjSTS2yMePd8sUMvr8u0JtxrPg5kB9anDJabCOOPLk0peyeSC3jHbWP8wzwqh49VKkzGXqZY+ynFpZ3UANKm0Dj6iUI1Z1QFsIqmIKHDStOrJmj9DveCjVD+8VOoPpHeMqjCYDgo8h4R2ZYHvurQTjgKL9nx+Rk9aqqwxnlz63Wvhiy89REAh2epQsvQRzH2Y/toItoXKGQj3LD3ILqyzCh24B4rph5PYA3eWbYN9yadiH29fuqvEkGRpKo6Q9WzL8HJxK X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4e422b0-0507-4027-48e8-08daa2af8007 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:28.1346 (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: zHJWxY6BYjUKLLOpC/u/mWRgdpuABG6tsigzBvgSwIErB8WhA0iRSZm2jkcpdxX8TAXWRB9nNdutbGPoNwh1Kg== 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" Some sound card based on rpmsg may support multi-channel. This patch expands the maximum channels to 32. Signed-off-by: Chancel Liu Acked-by: Shengjiu Wang --- sound/soc/fsl/fsl_rpmsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_rpmsg.c b/sound/soc/fsl/fsl_rpmsg.c index fde3d5006ce0..46c7868a2653 100644 --- a/sound/soc/fsl/fsl_rpmsg.c +++ b/sound/soc/fsl/fsl_rpmsg.c @@ -117,14 +117,14 @@ static struct snd_soc_dai_driver fsl_rpmsg_dai = { .playback = { .stream_name = "CPU-Playback", .channels_min = 2, - .channels_max = 2, + .channels_max = 32, .rates = SNDRV_PCM_RATE_KNOT, .formats = FSL_RPMSG_FORMATS, }, .capture = { .stream_name = "CPU-Capture", .channels_min = 2, - .channels_max = 2, + .channels_max = 32, .rates = SNDRV_PCM_RATE_KNOT, .formats = FSL_RPMSG_FORMATS, }, From patchwork Fri Sep 30 06:44: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: 12995003 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 542B3C433FE for ; Fri, 30 Sep 2022 06:48: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 837041657; Fri, 30 Sep 2022 08:47:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 837041657 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664520505; bh=vmOV1UZ/E/jX5vU8FUsXTZ3pru3DqVnzfvc5/CU6s/M=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=a2bTPUPDQFsB5a/K+xYj5FxBJfwqb72XeGxx2JqWvDxFy+3ytPs7SGdLv9ApmQtGb 5AWjeSdc8YKCrujYb64GsoE+tJqWdPVbWefcos8cWjK6OvliITKJyahuG4YMDVxiz/ Z1RNgzdH8ZEeLLO0GTZC/lrfS4jbwduaNUDd3VKs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 04E02F804D8; Fri, 30 Sep 2022 08:46:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8AA49F80153; Fri, 30 Sep 2022 08:46:40 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2089.outbound.protection.outlook.com [40.107.20.89]) (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 5163DF80549 for ; Fri, 30 Sep 2022 08:46:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5163DF80549 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="ovbyTrKA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L9a+a3HfuvE2oxy6ROf7QtItpuUxepaSt7hzxu/dVCjfWJaeCdFG2VsdIASt9fS7/2EFIPVPG9Z507L0ktcK3XaUizV6SovQ3mahYfV1Yjrko/I0SFOv/wXgeE0sjqjcmgMHn32zNXJI0bmQ8mBrEqxPNOzUOCg59+suyesSnND4BY1DkC5t11p5DlWMxlmPwoxTtPmG8q6OvH0QfoMOhvc+q/Rw0s6OxRX0UrPL31oVUDt3N3as+OZDMADa0jpV9JWcYPJS80Xzbd5059vL1COppE7584FgOhJV6Ugwi1TDrD+HQkXgPU76+LFJFB/gHt12Fbe4lT22/ipMcHUH2w== 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=PxTQ7IVzde13UUXchPar1dvJ+XllS83LF43FxapAL3E=; b=IppSwjybC6FGRayCWpV0GeS2YuaQgu0VdjkrC8n9OTG1m6yVsj5TljHe+pMy6spNVCAYEfhmWsn+wdp5XtEcYQCrPwYiqvOjy4a1F9y2kn2GTsTTXTDE2zGHSogqU4QD/DJZi43PXLQ0GRJTBqidZHj4KYoxs+YRMVMyOL3yKOqhRFj50YGE2o/1KZjcK4WzXvsrWH3wCZpVN+P5gULD4S+PX5c3PpudtLpjbHK5edXsGRypRNvjy6YONwooE41u9VHqzTMK04Mu13/Dw7QpueMy5rHy7nND4cgLW/ouVVC3CHo5CN45t1fpcixapSEHKIa4c341nrInoSI4Yeo4Ng== 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=PxTQ7IVzde13UUXchPar1dvJ+XllS83LF43FxapAL3E=; b=ovbyTrKABrEmgxA2XeeXPMZLJRTzQUpYqFj7ayPbY6UgV94nbLFr+w+zUCGJhfGmTXeDAZzPvduxATSdpueMiE125jvr0HLykNCbJ98/gjVLjUCHbBqKwsJjvaOBxeStJf2nmQQil5mUEPit4wTQlMReiBWFmj9TJ8nxq6oRDF0= 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:32 +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:32 +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 7/7] ASoC: imx-rpmsg: Assign platform driver used by machine driver to link with Date: Fri, 30 Sep 2022 14:44:41 +0800 Message-Id: <20220930064441.2548505-8-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: d3f9734a-b949-4071-067e-08daa2af82dc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P1RYtWeT0OEu3IGyrZ1PeFVv4tl8Gr/VKdexYZkoSMzBQbaUmZNRwvSDV2hbv5FU0JdSf1CFlTAoXUSbIV2yCuMxWQBMDAgmptIRdqEGj5EZCIfuMatCiijVKyZL0WKhe9JG9A9HSZxAdEAH7pcM/3pu41Xy+Bxn2QbJxrq2bORwn75fUI1+h7F5rS9I+i3r1Wy/vk4QzPaxuRDeFbgeGwdLhJmsMu6GxANCuKNBB3JuA8fcVKoDilMipeQDvOtE5/ih1pcE/BEqxD07nctEXCBk2h1Mj9jVh8VVcfghGuby0v30UGCXCBrYRFlTdLl6OHD1oNvKtCVkOzP9phe1ufYwHDkdOmCivno1LJ4JWAdtKC/21GPto8AolHJw/iesiB453SjHvgbogLlpUnJ0oBZ7CPcylWZ4qt6sGpLtLDubpAYjv1wAwUknnWtVupnlCIi4CENRzkdtVVk7FZS8dTZZO1RwF3OpnUZQu+EoblpqYJRpdHTyQQeAbKBst4CrDLC61gD0lBP5YtXhFEWegds9sw1H/yyIHlSJ4FIKqzIhfEne7wLt3AKpgaaAITWu4NPDkds2m1r8xPbycpoYIO4eruxDao+dDQaky799A09+gY79w0fdC8M7bo2LMQ+eLcM3tzADpiyzUAU6te0LhVYxn/unIFHpg75LW+KSDzoig1PXOSAmICGXMrSKZxk+V7sUfKUgeyi1DKhNEJ6g+1V6UJy1C7ZXZ7w22cGo/gOw//iokpUDFxFNijj8zbm/j8ZkcNX35OcAYy6pblq4ZbD2sk+rtfu2w+LxBffy23c= 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;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/OtLw/vrq99KhuERV2NJCr0BRS8CTE0mUDqU8vYyxTGvXOtMCpT6MTkDj2maGkZPTfX6bo8/85Qkq0xQAk3R6YHMnAxGtH9Qh2ikHZ9un3zubeVcP1/BONEPSIxUc4zT8S0RkEqyYV0vPzyY8zns5FRWDOq3woS0xEulLEfKzksTySpj4zTsdU0h4cIthSyXPWmd7dHcnt2ni7KzJs9Of8JoRGdGxNRnxUX/4WD4KkAaQbtYPr+kO+gEegPjIaE1tSWz+sHdGBGmc3tRjNaV+zJLuY0QHXs+pvLSDCnHlSPpDOwZ+bb1x2NNWvsurtr79q93l4gwAvJPJDsCTtwuyi3ToZItPvCUT/HR9RG+Bu8KPn33f+gGIpuU5UxQj5pl/2vzDVx5bYVZu1zvBlW5AG3VWZaqOliW5SaBz7Z/W8uEQLxy5g/5B0Hhk8q2Kdp+BfR9Hb/yNTaKlGYFLb4+2xkpzK/iBU7iwabo5A6TA9LxM/aoR8hiABab/wBkHhFp28jhUOXlf/vLcoxOweOUV2hGXNoFTInoHW7eKbwuN1wxlFco8+EP+8H7jtHFk55C38vxfdAe1sMV3 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3f9734a-b949-4071-067e-08daa2af82dc 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:32.8374 (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: j5smtdEt7MDHvpjNzyGXwuVPrhX3nxh0nROnHDgVXRF2SgU0MeZNONQt9Hq2sIb4SXSQ6o6bL3IhDWdjf0asOQ== 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" Each ASoC platform driver is named by rpmsg channel. ASoC machine driver can parse "fsl,rpmsg-channel-name" property to figure out which ASoC platform driver it should link with. Signed-off-by: Chancel Liu Acked-by: Shengjiu Wang --- 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..57684064c9da 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,rpmsg-channel-name", &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;