From patchwork Wed Sep 14 10:51: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: 605796 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 8C0C7C6FA86 for ; Wed, 14 Sep 2022 10:54:10 +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 B15B4188F; Wed, 14 Sep 2022 12:53:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B15B4188F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663152848; bh=yp/ZlX4z+I32Bj8szlnwFLsWNbBqQUZbZPFuk3pdlso=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=QAJbSqvUVAzAWFOzi6RpMpxAGF+qq6txLTMVfU7PqwCXhLwNKkMPuI10wIel83sHf Bahj0uML4l2+MiQg00W9APcGiWIL0HiuHvwJHtc7U1O7UkdSLIvoBG2cFR7E8zClNy /GyGDjuBkEioxFdDzHVy5/B4up87917hYquELHaE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0BC6AF80430; Wed, 14 Sep 2022 12:52:52 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 738A2F801D8; Wed, 14 Sep 2022 12:52:50 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60059.outbound.protection.outlook.com [40.107.6.59]) (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 21751F800FE for ; Wed, 14 Sep 2022 12:52:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 21751F800FE Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="J5KoNIRI" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hrE4bzOnqpUyHGJ+1QLMmD+3uDSJDsn0bLP1RYJfqP5ucWeFlMNR2gWMaXvdCwPAt7txVx2gKe9WuSOMNrjrUUYkXoXp45sAP03hqBBjuAS0JQpnCPy3PkZHrbr+vAml0opVuEybbf9sEawV8jAdeo256eS6t9qsktL9n7o0ekhwiYdXl0PW2t3LlUlUihPFJNpHcdQ0qX/hOoUqE6KUfk7Q3iqEeleszbVhD/9vdYzgnzGvK4PfAdAQ9ZNPc7HDizItuNEzGkueYUfNfVs3iBkGFKbWEvdmAQkzhbPjhTJfrAbe+AbG940RFSG5daSmwetohdSj9HXPScDJPa+Bfw== 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=1TKgRDoukB1V8cgig6wqC14VRXjV1C9MOU674acfqh4=; b=howOUtOJIK4sBNXNHEdGw8I5yfSW46bQJ87BdF1EfICD0kr7OiceYGzNhzDmsoiq4YSNe2zPnKeHjoTCvlEA0MUw0jGazg0K0t1QKHJagXvNAn6K+Eo0kaw02yludvhObyGoTp7O2AJ8O5bdxSnpE8wO4Vmxez+up/xZuwvhNEZNxdDoAoUAOHHvvWd14VqB30gB1067Zx7GP6bzRhZIpFf/lPVVNDLXLq0l+tOHWAKa5WefJOzRCSDVU5g3PRFxxHvwTQl5EQ65tA4oBccy3nLh/7e6u12552qvM/grpqk2ydcjL5WAJDoBFiYkYg36wOeJMmNoG/SsAhh8QtffrA== 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=1TKgRDoukB1V8cgig6wqC14VRXjV1C9MOU674acfqh4=; b=J5KoNIRIY4obssar38p6HUFZ77frNoW5v9MDcslqb7mE2A6IQO1Q9cmcPD1cvkMl/nUxeF3FSXJkGG2IYhSSL1DSCBhiZbA8Mi/qrJqfzdKdxkxKuRrkZOOVBFkmWopLKqY8RZPsRw4Zit+aEFp2xYrXfuNeHaLDOZcwvscT4Hs= 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 10:52:41 +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.5612.022; Wed, 14 Sep 2022 10:52:41 +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, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 1/7] ASoC: dt-bindings: fsl_rpmsg: Add a property to assign the rpmsg channel Date: Wed, 14 Sep 2022 18:51:39 +0800 Message-Id: <20220914105145.2543646-2-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914105145.2543646-1-chancel.liu@nxp.com> References: <20220914105145.2543646-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:1f4::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_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: b5688576-1395-4e4c-f64f-08da963f3f2a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GAikBegB/awLzKR2Wolgq8rrUSSl9ALAdvDyyli4BW0a4fYi2sHwIIVl3oRe8LiIzXjaMalMXNzfy7rAxMJ4JHJvDdI0is9IqbAa7KB1gWf/kzouDX3VpgYG/b79FxPxGVmyWyyz2JQz5p3mjLsc5AgJvEFuK/OirxEbAJiBGY5qRtD/mIJiSWAOXn+yiY2qnzMc5diwHcoY6OS3wqkVQXZxIVVng9ViNIayLvuYcYUnKWW6HYDR8R0b8fK0kp0fv4T7TudlvZzrz09X6xnpFUGx0eksURBHaKAa4irImMlZSne8CUHFnZKipRkUFUovHRNLVSk511Z3uoVAKuCrhdkSq/NH9hG3nfZ4n/5qNoHMqznVovZ/VBF/25oPoCy/CkL/ee11ZJQk4QnuMT9YL0phXb0pSRm3P3AIf00/bcrLa+0nW8D9rWO+TLrMjP1BtN5+7agDbK0S3twhbsWkTYOn+TNh2QHN0XhouVMwGMjfRp7BZnZC3e9GL+zpE6e3u+zL0W7A8gx8ypZB9FhEvHZnxznuS6pd3z2Tl8L7lqGf1TATBxFAociumQeGugmv5zPqG0jvhttr7DcztKI+ZwJDa4E0jc19x+0pn/In1a8xwcbJE2gvMWWzajr89X+G1uWy4IvUMfDfy2DbE2n8rY/Ds6jkumVviTmfk+u9trSrWHLYPGpYOjhIx7+tkLcfuVuTXtIafJpXdc/KBRSbutk+bI1NeajYvJvbz7LjYcQI4N6pv7NBCLmypQoKOLS2pk/kE7vlzT9MDkLIB1zbV37j3bRZEG+CnBOH6JsjT+A= 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199015)(36756003)(66946007)(921005)(316002)(2616005)(1076003)(8676002)(2906002)(186003)(52116002)(26005)(478600001)(83380400001)(86362001)(38350700002)(41300700001)(38100700002)(6512007)(7416002)(6506007)(44832011)(66556008)(66476007)(6486002)(5660300002)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EnCWGmKFkjqjshTZV5wqXzvBC7GsfhDZHnhJqPO3adaX5XqsbOtvuj/GJWcHsEd3E8YOORcgRHtlI9+6kYG20hE5dhJyUuBWSfNU3haS3Uzwn8V95rE30b03AO52C5Orwq1YcxQYP5kZy/4QfiJpP6DyWYRVvnVKmcPods7wHn7PucNhiUxK6v1MEUVKGSc4uiZiCJByVYZ8k3G99MOg4gILTpJ4gfeCNyy+QlzpHBceGNMBjtPRn8BfigH/Drr8/tu86qOdC146vbA5Vt6RYd+smZ8WTvDAUy6z75KmFVu6u+ti0xc/K2QoXkIByvxsOkfwqEUZj4/G+E9zvxweHh9Tpl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C1GMlfbomoxpXo2PE+sYi5UVbzUCvnPbhxvHrQ0I1q9Ob/Y2i89ZeEdHtV7OFOCYXxBRf9WBV1QfIkut/qFIy4TI1E1amPnBBjXKYJ7pr8ShSLqESXgYgEXVLZwGfgVV0EcH/kQ0bq9JuqnrcTU5LaE6ETqF8N7s6RBxwP1ZhV7xVWp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5688576-1395-4e4c-f64f-08da963f3f2a X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 10:52:41.4951 (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: 8VZCFfHTxf19CHUoaMwRfN5nm/LNs2sr+K5Dcaxi04yMTouPMTuJEps0DjPvYvLyB0GSPAipJ0NJj8vePHKneQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 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. It also represents the name of ASoC platform driver. 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 | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml index d370c98a62c7..3744ae794c00 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,17 @@ 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. + It also represents the name of ASoC platform driver. 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 +121,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 Wed Sep 14 10: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: 606468 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 B9A36C6FA86 for ; Wed, 14 Sep 2022 10:54:34 +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 CAC0718A2; Wed, 14 Sep 2022 12:53:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CAC0718A2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663152872; 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=eW8pI6XOYCH+sce/peb9aivB13hO3XQAwXGfq4IlxkspsPAUmMfQQo8f+UwJOs1kL LbIfMBZpiCYVD6PL86tG7kTEjaMKXyWfZ9l3eBVFqD124rAp8rmFI/NfFwrBcRmtWY FD1wNIWu2Yg274zXFHSt27ALN4JqgAD/SG0b2lqo= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1B31BF80538; Wed, 14 Sep 2022 12:52:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6E3B4F8053A; Wed, 14 Sep 2022 12:52:54 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20084.outbound.protection.outlook.com [40.107.2.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 3595AF8014B for ; Wed, 14 Sep 2022 12:52:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3595AF8014B Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="KzqIGDZ5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YFGZiSd1SwOqGiVfcW5QoERi+IewlXXAycvqoUFYTneBlC8hLP6hWwN+GevMY4bC2fgHTJAL1YxF/rdkAN4XE2oAbrBBsEcj0JyTRhJ4f+5eUKasCrlkiRX9xLsWB03q3IKe8twBpJ2tgBtrKcv6ZbIORvz0Bxj28vPz8fSawcXbCpGWDSIncNVmxbcRzdG8NDsJ4j6L9rZDHgCfqkNTn/S0Vf0LXcuPehUegKYwyRTvRprH2lfVnv0ATPtn0m3VlFa1E6syDNVOnthpVxP//43ytDqn8YBLoYGj8zfnXQuWwlCaUQRgu6mrdeHt/OLeZGoFzuUIExFJRR1TmUZ2rA== 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=YzO8rPTRox68DVzRcGu8vld67Zsu5f5X5QMWuUwOmGHK53dpLc1C1EJSYiAOufNQvdRMoevKq+kQf7DzxZKZM+4GKXl8gLdk4T5ZQCsdA2qVbQIjngv6d7PfFskPWYI1kiwU26vB4yDiK38kQ3K7l7l3kRLqXkfBcKj9DNPphA15a1ZBoKsCcqF1dGnwjMNp+fsmqif2hfp3ke3PaS7nZNK0co9veQpDysocLHHTKy4z/uuiUx4pPkhapp6LpyTYCKgxrsaD50lcPFge6GvQRToTyEny2lccXCylaHxsXjry40/fQNOV8F8NibBNJtgEpRRtCEbuIQtdRAjXQ1/WTQ== 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=KzqIGDZ5HEMAvHeIvb+lIVT4RJLau2/8HUYde4H5xhHwdP0QlcOr59AMuzGWutzuMICS0OLcmTTY+P+uVuzzceoASE5ndUFOYGyCiN3sqg9xM/uHKZP1beRpO8Om5w2Q/LySXkcM5u6SxhHacgLpgXSvdbqUjl2TiGimgaqjiaA= 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 10:52:46 +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.5612.022; Wed, 14 Sep 2022 10:52:46 +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, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 2/7] ASoC: imx-audio-rpmsg: Create rpmsg channel for MICFIL Date: Wed, 14 Sep 2022 18:51:40 +0800 Message-Id: <20220914105145.2543646-3-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914105145.2543646-1-chancel.liu@nxp.com> References: <20220914105145.2543646-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:1f4::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_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f896897-4995-41f7-518c-08da963f41fd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HcEl9o4cHj3BpZBCOLxpVGj90/qOtthurKo3105Ok9jlhv5BeBs/E+p989VvrSGVTGOk65MiEKN1DdxZ4YgSmvbST56J7OdPNuLVEXx3Dh9Y3Jk2UGWiFKwd6H/IJtZZWw5h5VWFP76FfOKEEexxLhJAXrxu3ryjQBNof2mwf+vKVO7AWku1z+yFmtDIpifGD+uIEPcuLLsDn4FVAVRzXCM8WnPWPV2+6P+hKyD5X/H45/OhXZBaXtP+p4c7h6/55yLv4sW4+fkhuOgxY9EIq2anVu27TL15gMO/ySOlRZ5rvz8AVziwifEIHRF/YZsv+FSd95SmBca18Jc7ALzTkjYyVoeLkOnCmDLy30xDbfxqmp9bHoSN6Zf5zJ95oQ6zLVNaZErYm8tGb9I8SlT7TeEBeWC00zFC39CnoKpv29TcS6us/u42iq1RmyGKG1vpiL5CNeyqULI7xbOovcO/zafoeXY4w9NRFRiF0luLw7+EBgPT2HFrQ1p0dPEYf/Eq/sKsadrSaw25jc6S3FWjCpTI7+7yP94Goqbfti1nvAN/LnKUezk4TKOm/ecT4G5VTSoFwf2tf3ka5ZwihRgGLAENc3MUpu54yIi6ZEzOR4SefqjUuoD3AQZD95c3fW0WZkecGLXjRxaPfKwGliutOQsOPjnpeT8k94GqvyKIi5vA/eUsgdZsr2mIaNjWUK1fB/ptP4lcT3l7kxwp9q+1xxKsFiOtKfVGtJr63ypqudjAe7EDKnEo6Ol+tKB37MaoCITtTZe7FCk6F7s32uPrrg== 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199015)(36756003)(66946007)(921005)(316002)(2616005)(6666004)(1076003)(8676002)(2906002)(186003)(52116002)(26005)(478600001)(83380400001)(86362001)(38350700002)(41300700001)(38100700002)(6512007)(7416002)(6506007)(44832011)(66556008)(66476007)(6486002)(5660300002)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GSmByizf2nH05kgSJhJ92Ey6CrYNpewOWMqVRCbSiBRqh/WB10l30hTGF5z6+MblssQS6NHa7o1ldJIah4smkho3fZOKhtJNly6IA4LuRvAtrT9YjHnrWQskpIKnzbjGMB6v16rLx1QVSSIu4ykHoV69DPyiJDz+/mdHA0+FxGIbUOrGgCujCTQ6q9Hxl/q3NnmnS7gIRxHdsWSiDQS2UTPKUBi/P1Q4kGUXgYrOFfRVDQTXJaMm7B2bjoTYm/iqVGeRN/9x04k/+Jnq3T6M7cn/PMlYT9WBvmt9pPqzQnn03OI1g89d2Eon2+LqbaDktL53F0PgCQl/1uwDpYxQXZWPpEBmMecPwzJXKfdnK0SWg33zrF8mdi3R7ifHxcf8KG4f6QldCzBKoXlH+i4qeBdx0r7febVtO6vLnSbWcITO1k3H+/sD8vjT7NcQEcR4GwA9LF2HOkuTU7omap2rawKeNwrrkq5BdMzsCpEGBytw3f5eM7NBTxOhGF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J53SJ6Brv X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f896897-4995-41f7-518c-08da963f41fd X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 10:52:46.2604 (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: asLZOhsX+29ZMCy6XPYg6xxE7p4bwVfj4hFNF7Wqkl5uzLvp1lOoxgi7SPBkvsmP2Ozo0RpSZVH+b227NBfVCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 Cc: Chancel Liu X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Rpmsg channel for MICFIL can also be created through rpmsg name service announcement. If this driver is probed, Cortex-A can access MICFIL which is actually controlled by Cortex-M through rpmsg channel for MICFIL. This driver also helps register ASoC platform device thus use of PLATFORM_DEVID_AUTO macro in API can automatically create device for each rpmsg channel. Signed-off-by: Chancel Liu --- sound/soc/fsl/imx-audio-rpmsg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-audio-rpmsg.c b/sound/soc/fsl/imx-audio-rpmsg.c index 905c3a071300..d5234ac4b09b 100644 --- a/sound/soc/fsl/imx-audio-rpmsg.c +++ b/sound/soc/fsl/imx-audio-rpmsg.c @@ -88,7 +88,7 @@ static int imx_audio_rpmsg_probe(struct rpmsg_device *rpdev) /* Register platform driver for rpmsg routine */ data->rpmsg_pdev = platform_device_register_data(&rpdev->dev, IMX_PCM_DRV_NAME, - PLATFORM_DEVID_NONE, + PLATFORM_DEVID_AUTO, NULL, 0); if (IS_ERR(data->rpmsg_pdev)) { dev_err(&rpdev->dev, "failed to register rpmsg platform.\n"); @@ -110,6 +110,7 @@ static void imx_audio_rpmsg_remove(struct rpmsg_device *rpdev) static struct rpmsg_device_id imx_audio_rpmsg_id_table[] = { { .name = "rpmsg-audio-channel" }, + { .name = "rpmsg-micfil-channel" }, { }, }; From patchwork Wed Sep 14 10: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: 605795 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 DF1F7C6FA86 for ; Wed, 14 Sep 2022 10:54:40 +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 1343A18AD; Wed, 14 Sep 2022 12:53:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1343A18AD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663152879; 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=lFUKrLSSxF911nuCWxGqWdEjr7fFBr4f7U8CEmZNmnSuii0VtIaPT4TTNjQ977NNB nPrDz+IlU+M+RyzWSLRfSW/wt6QeL1PaK6XcPVh9nmLGFzfyXUsOuXf6AvBZuw7ahV eJ7UqlIWzor8QnT8GIEQ8k1MzjPz81bJTybvM9YM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9CD3EF8053C; Wed, 14 Sep 2022 12:53:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9C463F80543; Wed, 14 Sep 2022 12:53:03 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60071.outbound.protection.outlook.com [40.107.6.71]) (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 6C20CF8053C for ; Wed, 14 Sep 2022 12:52:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6C20CF8053C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="NO0InIpy" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hblI6jE3DiXTV9XpPTjFmeUD1wcwpqmyd0iOsVQuRNjijsXioBSpUQBx+bEXychiGbiUqhE2XJiTMUIMgpDiFqJYO+4i/LAOndERSy1mio7nSlEU5voIG4yAoFrroLgzh98Fjjy+vG+surBBQCdhWHcWk2oTFRjMt+RU91bzK3LYUlqaGHAQaGe9QXCsn1PegMEuTo04CBuDYU7DxlCJUFmgfFMXU7XZLMmcm+1y/wK9u9PKGqfDQL2P1f2n+uqFi0IT/aJWX2l5JrYohmz5QHes1ZzRYRCBercYQfiOQLUoWQH33qeEFP7Gj2eIQfxSdc/0DOMn7ePyhBgz2aJ3Bw== 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=Q8P9bRVe3sqY/x2y4sXBAel6X2gwgcYutN0nQR/FzZTM/LmvJhrtfdmGSU4ZRq/P8jrXuBVhWg8dh2Jz6w188AfgP77FjnmZtoBvFLSEfzRI905aG7qHCJYvT2495wWsP8tX0UJv5PNfHu2mE77ZnagppUClQCPgpuYGHs3ePluf7TjuQAW7Jshpqp7LHQxCpNFkRcUeHQTleX2yYc1DxK2InGKnOcJpk8kstB+enSZWlGwfirTFajxz6kna62LFWiZoMH/uOD7tYi6upZuAcR3kYpFrqzrjo6MIJN2qVwfP8QezEjn2M08mCWqK9ZQOvdZ6X6h9+YARvD+LZrFMCg== 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=NO0InIpyfKZLZbloZ8hfZFTPIkn+aOBkyTuF8AxkOSKz7pSIteV1nDMp5ilYs4vD4omFQ5WKuJLfphiIEsTP3BGkU9DVFqn6bZM7WvbLSZvaA+C3x/mClgo8qoqvbTVLHehLQpPXDtJDnPgsYq6uf/MvYhZ5aG2i50TFKVjvNgU= 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 10:52:51 +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.5612.022; Wed, 14 Sep 2022 10:52:51 +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, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 3/7] ASoC: imx-pcm-rpmsg: Register different platform drivers Date: Wed, 14 Sep 2022 18:51:41 +0800 Message-Id: <20220914105145.2543646-4-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914105145.2543646-1-chancel.liu@nxp.com> References: <20220914105145.2543646-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:1f4::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_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: 79a90189-f432-4a61-0f14-08da963f44d2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: srB9tg/ldbky4Keegy6GCv5D4YQLC5VNS7UgJLPkkvAHZLwUk+G5ycljau0AmI5HCAw124ZzJ3ZNAm+SIK62P6foObXYI6pG2z1CJMJIh3pmh3wPUdksFVSuu4JSlCqFF+HA3OWqZgMZov85/MZYtXiD1Nlc0t6ssOqXj3Jk06qOelULKrHGDz++Rr62wZZp9WpsWJpuid9EYOPJnZGijGkgMKsn9UAmSo0kdrFGuRNPFLVaWfz9i/RMSEBW3DB7snxxDZne54b8loeId9yVu9xAUjrA88csV3a/YjFa9N61j0iJAVqrYLOZWg8HQCFbj1GrPJia7uw1egZdlwZar+CNZKGhlcR0TdK7u5iG6FcStJv93ymEjSP3Y8SoIwBfKdn6GVqEE9ACLGE+BLUIGJmS8wKXhw7q1MGDPp/nNq75AB8mwuMDJ2z9OlLyYOCMpw/su4mcg3BohZG4OoSjCZ9FPGGfQ/tiUZ9zgQGX1mGFx4C+HZIfA+rZ4Dt3nuHHuFkLzvyiQ1TuNFQmG19YDf3Ju2NLwEXwwQW491MDFH+TGDNBjyTv2c2Xqr2mnaZVBSWkWlRBoH0kTT1BuGvjHyweZEs9iXiO3mvvAFtql80EmONlSsGCMq1pRTvUGZQWvhoRPyyvWJnzM3+BZ128QVnervL0r1nGGDLr7v0GQJ0OkW/EJq13GrKUWic95mTHO3vIrww24r3F/Jtxug9SqvfIYBegs0EZcgl1T+Etm0G7oXMSdjeuIpC38c/CJJg/X0a+aqLKLQ8OAdI2NyarNSe0AoGiN/okl9czmGpWiJE= 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199015)(36756003)(66946007)(921005)(316002)(2616005)(6666004)(1076003)(8676002)(2906002)(186003)(52116002)(26005)(478600001)(83380400001)(86362001)(38350700002)(41300700001)(38100700002)(6512007)(7416002)(6506007)(44832011)(66556008)(66476007)(6486002)(5660300002)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zLoErgvafDexR+6C2V3J7L7jOJQzNC7bN5c4E1PHgD4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uNDFmbSOb8cZAkerShnSkNlr6YVuX2+4Ulx//W8SirQsbI+HZKiHPEvTtk6cfAhmjKWzCKpM0FjXEzYhUUA8toBv+vd2/ZVoRuTdrrDUs7CKXr9sugx++Bs6GsjTDNNWItU/xAlyLLupEt2NtVwfVF6Y5THlZyIlIrYW/VvS8pqT8flkLJq6lvXzZq6sdJjXfiXHKbwd0KEETdKrvEq2LndlAL+R/ovTzLKh9ByqtOCrn0mmEEQO5hhrM7REVzGLV/XfKa2tfay+2/qXK7ufiShhxWNPngbU8jMBRlpj1kPEkV6RvObRMDBUeqI1ZSuYllRTJorRzTir/7F7k/TErjlXGxa+oYoEvL3VysT4Uy9yJ9tPvyVUdLZ+g/ETRuVtIToIA241H5cOYevLYaZ9Oqz+WL0SjLnXHYcf4OxUV9nmh5YrZLBufrtiOtPFbOdnSewkz40HpRT/E5V852Mpytg/1V/ck3T9bM/2Mnv6J0vajff X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79a90189-f432-4a61-0f14-08da963f44d2 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 10:52:51.2913 (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: s4QBX/JMQ42UISF++QppqCRf7JwH/JCXQ+7rtsIBzbQvpcdVIYkod5qGsuw1mfCYz9H0KXmmJxwY9lhrjpZsuw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 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 --- 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 Wed Sep 14 10: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: 606467 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 756A0ECAAD8 for ; Wed, 14 Sep 2022 10:54:59 +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 DB7D1188B; Wed, 14 Sep 2022 12:54:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DB7D1188B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663152897; 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=WNu/4CtAK+EGWOcqnkwDvZC8GV7KakFeifi3wKh3f0mBEaTJs+9eBCMfO60pMzsAY DP/1e6Rjh5JoT71XiVZhIwvZgD4oap1PFb9K1jeST1VaRcQ6ZZsl3hh3nDilOxEKj2 YgoNp/0mm5+TxwBYvNMeIztxymJfaN3PiyyhxPlQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6C340F80548; Wed, 14 Sep 2022 12:53:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DB1E6F8054A; Wed, 14 Sep 2022 12:53:04 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60071.outbound.protection.outlook.com [40.107.6.71]) (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 AF2D5F8053D for ; Wed, 14 Sep 2022 12:52:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AF2D5F8053D Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Tdc6BPu6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K7LxRNDjW02AF59eKslPdIApwIA+XfdyTGSSSaEYbDJAXERA3NjvEzIWBMLGU4zOc4GBFG85SHlLujunATAIJAxnb7X7GWqjYGS3CaC8c5rQTt9uUlxuPQJU81OwtnkMBstKtj0zNPnW48U4jKlHB7oeqzYFJtWST2uEcBGn0gIza/5LJla70P6tvj3P2rKB2XgX+XAKHdw8QZuw3uALihn+X4XNEOGOR9iTlqdl1joYOhGTU2gt+ucuAgots8h9mYjqyY1qHARZxIBNmAvI1X+B56QO/JFa0LGHIQ2csHVKHgQYYi2DYWbNi2i2rJ7NZz3ix0zZVqnIx7r9kkkClg== 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=Bxjg+42uXs+ZsSEpk2dS+lS3ZLw6oVx0TPB075IoVVYDkvCJ7BeGtOEI8t36faFuqXXtEpS3pkbH1iO7xXtC/86muabS3SjCnhyAOElQADu1MAMMbK8I0e3pr1HDFLb7fWMGDgzeVcC2xMX/ZZCCaiwKB2MkW9+uc0VjBvZdjDHd4GaWi/CS+xX7Pr5xMPQdiSCiqn8PP1ML/MQvQphIYccV96gSse2bIUc0iV8D/8ADau6/y9Id4vb0l6T5h8MSmdq3ZPNPW8WeEP6VeXHI3/UZuk9nMkSkEsy3SCc8gtWMmI/Ci24rKE7tk+iuRWzxQU2bg3SY6kC7NEjLD+m/aw== 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=Tdc6BPu6zLWfdUQ0iGnLVC5E0z9O8EC7cAJr8dK1NfmFx8IMNsFK6En8PDGsMovEGfgc5woTBBnlwstaFWLDE9Qy3XLPbcUQ6QGa7S7PG90j09Ic01pfidFCgPz4PCmMnnbK8kSjR4HG7heGl4URjTgIEaU54Paqu7wEyhwxFwI= 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 10:52:56 +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.5612.022; Wed, 14 Sep 2022 10:52:56 +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, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 4/7] ASoC: imx-pcm-rpmsg: Multi-channel support for sound card based on rpmsg Date: Wed, 14 Sep 2022 18:51:42 +0800 Message-Id: <20220914105145.2543646-5-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914105145.2543646-1-chancel.liu@nxp.com> References: <20220914105145.2543646-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:1f4::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_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: baa3cde0-0339-45d0-0408-08da963f47e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eg8HRwTzdNXUkDxkxyhPvgxTLu6PJIm6K9TvlzLbGAgiw6ubGldake5nqGCZHYQkRtxMx05/2Ihll8w3chiTwzatt5KQxOkB2X9vMH30mxLM13bmzW1CK0qRlzDxjNuBXifP0MwVeZ5FGxR9vB1xDqRCsOfB9lOYMky+1jGzQC+VEVmlD3rlPRCPSz/hst5k7POJevt536uWI5FWgyTmonW56E6ksnLxMBE7Pe4I/HObJimsFVi4vOWGNniNvL+lXJ3pKiqbW+4fwyItlsr+WgXxl1LIjzC0x8+WNp3mXp4otfDB4K4az2L13plyAm6TmG5HKYsJAjD6XpO+TN5xurNBMsG9REvKwnwFLHYDK0HT6Gy7JQmOGxHZinvRatHdtXn4woJXGQWY6OvxDn10XryvOcPdNOJhCnXwmJjyONfO1MK/QfajL4G/Ess7699nt2UAHoQoSVAElFuWt2T4ztwkcrSPy+NbGh//HfDTV+c7nnkYUtiLn6wGoMHntt/29ndm1VByzObUR8FM4GWQtqA+7DnZptWQKEJGW/RRFy9096/kuOCzs51c66JeVDMWfQBctFIRrOVTpVksty3WJIFfz4dT4pimzGHRIqj3UjvNFO3TMCoIDgGi3HksDTqk/v51rNcZeBrMeN1mkW2NEWBIJ6oJfT+wJAEsiIRTN1VBhlC71gUW1GgWnbPUHtrM3XHFm5uTAHvEZCuoOJYcG7m6yAEKHRM3ZLeKbIMaUtHOvqDwBjt7ol/PO1gJXLYIJrMZr3GMQ6sLKfJHC2G6pMH3p3AxsxoBmBZ6fWU/5Zu4HgLLVBccMPZoRstAI1Ea 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199015)(36756003)(66946007)(921005)(316002)(2616005)(6666004)(1076003)(8676002)(2906002)(186003)(52116002)(26005)(478600001)(83380400001)(86362001)(38350700002)(41300700001)(38100700002)(6512007)(7416002)(6506007)(44832011)(66556008)(66476007)(6486002)(5660300002)(4326008)(4744005)(8936002)(17423001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r4HZK4VIRy+ezAPKKPUQHtA2m3oMjHlMnVmVgtwYNFsOQSuIEgnKNj4ZQxNYTydXq4h2fuSEfBtepYAbMi199JNdWwtTvbrK5L4wyF/cHTQ4e8x9bTCacA3/If0TsJ+T2uiFOkyrqZwyeEqSWG3DtxtXuPAgX4pb/3AvExJSQZybNxXWnWSHYsZu6VO00uR0QbrxF9rJQW0umKSZZNuSMKIH6QMlGK/+0QKoLQq3eFjZlSw3H99F3ULl5phGCx8mygtF4m61xHvv8JRwCGjZ9THP3ZnGpiPBTHRZaotQB/1O12E+nTaL0uZWc3f79pRi6L8au5kk1FB9+XJCBwFOpqo3sOk5FlQwXenbK9Hivf6zin9EJ4EaTtHVNLroioZYKIAigdRzQP9Ehgowj9wB0ZtLX0uOCZoS3xrPC17YqTU7CX3tF69fHXpbZx+eOtVMH7LORz9ZdT5h2qt7D9GCP/iyRDRN7rwbuGtme7Zu9kZAyj5ZW8i4bGfNhs3MFVhNN8aseVXfnQawicrXMpF91dI6U2HUc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rossTenant-Network-Message-Id: baa3cde0-0339-45d0-0408-08da963f47e0 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 10:52:56.3846 (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: vHzZRDtTtLJt8w+G/g486glxd5PbSwB+kDUbXoAi/r5ZsMEbaWKA6MdlpBB2Zu18R0xz29CGgAFJUj1zJdGRgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 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 --- 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 Wed Sep 14 10: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: 605794 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 3EEEEECAAD3 for ; Wed, 14 Sep 2022 10:55:25 +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 6015118A1; Wed, 14 Sep 2022 12:54:33 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6015118A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663152923; 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=sVSjXCNhbrBbkVwvD21ZRRE9tiXRXNASRjzZiKEA1nB50b12909g7b1ZDxL3QZvc3 ayu1XMhuP3QHC1N7XS1nNoIz28wRzGYCMe9pxQ5C+EMZbmtZ38C0LILJvJSGf6Z1QU Xir/PS93rNoy461sVuoC6uHL+xAB7zAXg4qK1Q70= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 79734F8053B; Wed, 14 Sep 2022 12:53:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 206A8F80563; Wed, 14 Sep 2022 12:53:10 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60076.outbound.protection.outlook.com [40.107.6.76]) (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 6FB2EF8053B for ; Wed, 14 Sep 2022 12:53:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6FB2EF8053B Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="hCybVIQg" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BhsAq5MqncbydV+oAFECT5hXoCxuHLe6M6yjPWVzEXlQOZPsPvzkMdkCR513rpFOicHR7p+O9rrbeAS+zMhVBl+orFny+o/PcmrG1pMePSz4ZT9NNd4KtHxYVOrCphUIysbwaPcYrBGvszhXBsXNsL7ofMF3E62K9+3U4fDysKCJ+KkcLGXh/WobYq0bY7PtvDzRyy1zQd2zqUBZq6f42zfoR76A1c1dzUk8NhhfOd5ej3ymVDAukfMXRGNjdbJ6wI9iGm0cmpC97WjeneLFDptnthe7MsMTjnn1vUSvQ2zLHn3XN4+9zXyTaTG5pFGS97UNrBcTK1htMy0995qihw== 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=YCOjdybrX7t++PKeGQqr7BAUuejEsy2mQsxOsxBvDUw+kpcevlo4i0qs++adTcVuPYV8PC1RhQHSSsza37x1WdGA/zUzoiU/OpzhX0mX6KE9eyxbnAD7zOQ+pKBFF5sXXyzT23hQstPOeMVENn8BJ5JI40IjO7jA3Cs3MsheRg8gwZE5IRs6tAXW0jVaUsTBoNrrNTlXP8dfbthlv2kHPVO3ObVMUdF8gjw+HNXe7jU2SJWevTOmzW3d67LdjyUwrZnwSJ/5txcwvfelw/aKk+XZNz9yjdxLqIwSdmo3U2e1PDDzIFchNCdLVJmIDEtHUMicxvVujjxUVO1cSAjsiA== 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=hCybVIQgYvow8FpUgCckyj0GTsoZrF7uVkdjbbeo2cGvpEg7C93TqhTfaEiygU/UXQNXNjjk//u18wHwClygU/ql7fJ1mcHCh9N5hYQaaKVwkv1+g3LuexaQrAWRV9ivCdsH0ttUlndLZfZhabSNwX0cwpSca6NqTSQLH1cd0Uk= 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 10:53:01 +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.5612.022; Wed, 14 Sep 2022 10:53:01 +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, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 5/7] ASoC: fsl_rpmsg: Register different ASoC machine devices Date: Wed, 14 Sep 2022 18:51:43 +0800 Message-Id: <20220914105145.2543646-6-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914105145.2543646-1-chancel.liu@nxp.com> References: <20220914105145.2543646-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:1f4::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_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: dbf8eb0b-90ca-4c45-48bf-08da963f4add X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R6r0XmpGG+Qx547+Zkf1gZk5ZRmrMLGCh/mFBQf8YLKRwN+lqtMuBFB3EBDFwCTegQ9C+gW3MEYvmUEhkqddpeO7Dw6jkSbNNPW1G5VtU66V1t/GgMpNYLC10WoB1fcwmplkh0DGAul6zYTc292Gy7P1HYuenjTrM5mclu9266cQB921JtzGQtsvNiL8NUtHNMtszdh7GlIcw6+iqR92Ln1aPlIAXK3iMt1/S/b/dBhTIZn3YW/bO44TDBdR64Rmkv5wCA2A0gwL/0PxlQk5jyrzmyGwtI8bY+dNAIT/jO5BlivZvXRg07nuhHGMRQaBErFUoslHIHGSs9xAMmcASi+GxdSuBtsErYuKFvYL8V9bi1qeuSk0acQL6G8J6BUGpO3d3N6Vh8qcWp0LWJ44HrbQnQ2AiWKW+FTrPupA9SE5SGttf8PmJL/IvXFYlbH8RzBRAZPHViar5RynTfnXirn/SAa1fhlmtE3MPJMiviMldGeWaDDYOuLAR3ssHlLOnj50H5vEM2rqgvJ4M+XZ2W+DQlO+y4yMaIn+lvdOZI9XW6nq47uIqY0NuWNxufoPF7xeVzugDsXtLji1bGwzcOBAng/8CLKRatH/KNx8x4ArY4LCjbRMsDM6ITsP7dAhL/6m+22BqJBizAm+46y0JRsgzD1kezWOGtxEOC79V3JYcnqhYEaoqXB1qfCz5+/1/FVR0GBuUnpjqtWM+qHH7YFQSXtxYZ7lUdmUxxBlIHgBK8i5XzzgWmgjyygUCVJH6DRhLJDJzE4h1LzOlQEb3T+uYAheD7HlkoxFKBscUOc= 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199015)(36756003)(66946007)(921005)(316002)(2616005)(6666004)(1076003)(8676002)(2906002)(186003)(52116002)(26005)(478600001)(83380400001)(86362001)(38350700002)(41300700001)(38100700002)(6512007)(7416002)(6506007)(44832011)(66556008)(66476007)(6486002)(5660300002)(4326008)(4744005)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0B/DNRFII8C2nc9cec5j8Yaecyf9cUooRX+DCOHOZtPM0OoaiOOSwtUJuISrewvAaeCm1cX+BTEncWelGtPS94jCGy5P9c99FmcxviXL/f+MCtvdbBwmwi3jF3+RIcxj3BZbZ41Sy/XtPVEr30kERqOlVEYsH2cTiek7Jw22k097T9lwVJoFX543g6TOheokhNJTz+v7fRhO46mt+uvu7/qlsfwes8A9mzhIu5ZhPtHSYXY5YGg1GVObIN3wMYgUFWZJXGyBtL0ZJgEr0ZGSh2efREH5cdNSj4EB2n1rr6040tLpj7wYnyzewN+7zw4edjjRQzqEq77jUlk43eJtRJihgiJsY6hr78uGIBVY7GI9e2ujpzI8iflCUytD2eeFQd9aY3nLV3S388fd2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h8nKNVQcHTnyJVhfQZQ/vj4fL+wiZFie1SFab396XQDtVuMEc62C4x5S2NtOS12j7s78uV1BY+7UaXVY/Yewio3U2Nm6VBuNnK+zNuNgqgYKfyreDC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbf8eb0b-90ca-4c45-48bf-08da963f4add X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 10:53:01.2437 (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: SwqE8KV8D5Tuy5B92IFI/TgU/3ZQIjp0la8WDwo5o3ceylwPuhrUqDEjMKmNOBkgLkhGty60/lnq2GGkZqyfgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 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 --- 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 Wed Sep 14 10: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: 606466 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 BB519ECAAD3 for ; Wed, 14 Sep 2022 10:55:32 +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 E422E18B9; Wed, 14 Sep 2022 12:54:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E422E18B9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663152931; 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=exkqa0XejRTYwMgkigxcai9p0nFOjxhpoomID+YV5U0tov1H27FIR7YyoNW563NuR ACrzQhwYkUExO0kgxHIu31GG5rQu0lVJOrEAhhHafNDpzzfyVErdS7Oxuql+bSjtHf 0T02m3xxFtMopR8gnK7DHhQFa8NVYe22fRLj9hhE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id EF561F80567; Wed, 14 Sep 2022 12:53:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B167EF8055B; Wed, 14 Sep 2022 12:53:14 +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 63A89F8055B for ; Wed, 14 Sep 2022 12:53:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 63A89F8055B Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="IeEqrQou" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GXVlLjiQXOeuRLT05m9bAl8LNrI4NPaSecsQQPYC4rjGnYJj0fboBVxJ+b+F/WCqmwvZ+TzpxmWQTRftxnZe06hFpOFwU8HbO4S8CvOJZahQd3hGwAiJohbmIiEGJCVZCcT+k3C4GGpSbvpqLw0XqKKoxBNLDASQr0vpoinZw85cAGpJWffo5EisIvgtRUeoyGdDeN+9wz3CbG9LgYlxuKuQLClcZYkLs9ZB2tx+vY3qwfU7b3V82lVUE+dqgcTrGS39RhgUtOhpDgVgqzw+ZBEsBD85UkUldXuOhP+mYtR/6VnUOLRXa7ku2FpnQiAQe3kxbf3IaBRLHO0v1ux4jg== 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=e1Uy9Dpgyz9A3AlxXoA3Jd0pFnRxmZBWIVkdGDeimWNsgqMvV5eX7FuTFnHuA5y13b/rqyYg1DPVbEhsU14TtwRFgm53QMHNf0BTf2KPhN7CE7zrV9QiRia+mkFeDAJTSRpV/03HBK6EEi4/Y6VmNuzp5trEsgaA8d7SST5sbYB+AnAf0Sy2j2OHyc7W7Yp6PxrzPPthqBZ/5wrzxEGIw145+2AUkP0sy3hb69yXn8Eq5yW952dkvRU1948+XcxJJakyIIwPhep9I13V53beB2x7VLwZhrmE6m86OS4Nai2nFOm5ZwRki5n+aPeTCUrs7/KMSEbvC/xjlVw6wdU5GQ== 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=IeEqrQou2760IzAJ7hwoL3xuqRQrzJsVpQBApYqS+dfsMlSblR+mMscYADmD5U9Sf/MyNWOblCv4a4blcNrMg81nQ/CzTRrKRXTmpY5P8ajjyBlpIgQeKXcquJdxRe3Fbztuvhnn+IHrrTnlm5hNhPof/GIHAn84c2h8s9KMzTs= 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 10:53:06 +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.5612.022; Wed, 14 Sep 2022 10:53:06 +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, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 6/7] ASoC: fsl_rpmsg: Multi-channel support in CPU DAI driver Date: Wed, 14 Sep 2022 18:51:44 +0800 Message-Id: <20220914105145.2543646-7-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914105145.2543646-1-chancel.liu@nxp.com> References: <20220914105145.2543646-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:1f4::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_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: fbc8e88e-2bc5-4d51-18bf-08da963f4dc5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yFmCg37VotNuGRuvFxOtRGGfgcbVWoR3RUspZhS0vj2snPY0zz6wysge/HZ3rS+ptSOtE12zX6he96mGwdhcLdras18g3BcDazWAE3S/Dd4budvyfqLEnyiIA+4CzvDSfvTGeNXiw947eTh/7am588xEa844v8eTu0NbvmAke0g/MguHEz8KdVsqWFQ0yaUO/MeZJZCkwNarhcZJ781O9Hc489vjRwUELmgUT4wM64gad5cP43qp9mmGzJtUNoQozlW9jCFPAONuShs5bc2iJ9ZItj8SlfhVKH013OMOrGmrq2nE/9tmBv3m0zMJM8fS4VV3xKSB1k3pV/+4Q6w8fxvPf2DEubIJx98Ryd0SndsMPhhhzxprzhOR20J7vJpyWiDSAxh74sO5KLt2DRlZk/8rH/o2v9VUgPDGjmqnqPUM9Lw82+zT24yoIXB46uecGtm3qqvG3Kn+tcbxX+xUhdMJIMmOpc56U8BXBQpE91wl4C9lEHsMe+OEKMLGe1fWlM6VZEkntJE84di3EJ8PfcTvsJYVOHFy1U2fC/pCG1acGCWumGCJ2aHq9xxB4YLUR/Zg3ZD2pqQEh9+MkaJO9ZOUS55aXYefqLVFp4woJO4LmmSbvkudZXHM5mGmrC4s1J7ZL9VRicJsYFmYLSX1OheHc9YpkaNphpaQNrpFqVc0nsnNXcSahff/EvovrbPi2sCyCPJzd2cpRbPLh8613xeVLl0RAJqk+NN1lfxcJFMaqMYqSRBeEgK97pajk8l2AqHPjwnnNqc1O628DJEC1AYwWWEuOgOCwSd5t3AFRtw= 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199015)(36756003)(66946007)(921005)(316002)(2616005)(6666004)(1076003)(8676002)(2906002)(186003)(52116002)(26005)(478600001)(83380400001)(86362001)(38350700002)(41300700001)(38100700002)(6512007)(7416002)(6506007)(44832011)(66556008)(66476007)(6486002)(5660300002)(4326008)(4744005)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bR/uR+cmSElnMUXI2cC3c2StYrzocphiigpl29nGGiPNylwuRPd7EPjemsIcO+fDQp4ZyCIQISBguhM81iAk1J/Wm2A+nHVmxrvyrN9DJ2ODqIOD656cHBcaQ+WLaoRYeAsv9xnd7O6f+MAK2bjV+gCfEnXZMU5wFZ5jx3lRMUVOYOpgar58asFXrGr9E5dPmrG7XTpMStdHdYP3uhOdS3OHkuGFj8Hu5VsaD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ct8lOtKUGwZP0FSl6DzLu91fa8gI6qVIY4RH2BompPIE24R+9EGoK1calTrt+WJH9ye2PVIMmJug5Sz8HbkQ/pEmjkVu8lFGhzIPB+Gc8aKrZKm4gjvDv80IFwxQcItr3yLuFsBOG64vqRotIJdI6Bx2oW1SenZEVlTUYdmqxwmKA6yHGaYugOt1ibl6ftVQaH1CnZmpdNTK/pUut4A1BuKqMLtQ6w+d6V8oYB1jh2c86TVlhibEONzWINB7rQ/NLhQkGelnZfTedgfWsBiUMm X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbc8e88e-2bc5-4d51-18bf-08da963f4dc5 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 10:53:06.4464 (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: EFw4QoUzBS6BQLLykRj7jOeiTRPjSf6TccqPXAjsmRy+QupLUyAkb3mOsEfmojUlIjKI24h5R/JGc9XzEIZYuw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 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 --- 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 Wed Sep 14 10:51:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 605793 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 296A9ECAAD3 for ; Wed, 14 Sep 2022 10:55: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 547C01841; Wed, 14 Sep 2022 12:54:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 547C01841 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663152948; 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=FUJXAYhgb8LCl/hMBHeJkWkKBe+fYI5rtxuvlcFY3N89zMlc84S2JKkElKmBd8v2O Tj4MJUd2tVJQYZI3JxZ4NzYoIJOdg49FSV+DoAl1OQ/AyemF1LY3NHduPYKG9PvAlD IJ9i/UFwOrFR7pXIx3tHMZqxSSEEPJlvh3aXAoGk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9857AF80568; Wed, 14 Sep 2022 12:53:20 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 05411F80571; Wed, 14 Sep 2022 12:53:19 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60087.outbound.protection.outlook.com [40.107.6.87]) (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 BCA9EF8055C for ; Wed, 14 Sep 2022 12:53:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BCA9EF8055C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="D38spTBD" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XbP2TnQP0iXsWtBXyLEGwfQ1IjXGT1gy8clyd/p7chMMEHHuVgHK1N2m5NldOe/tOPs8eo1dPRA+orUWi61v26PFuy2SLUxNywW1Rpl9bPKAqTqsk8L+9iwVSpDgA0MZh7GrV2FTBbhDSFkpeOWfQlfFBZ3WKGzxZ87XNktt8EuccKWHzaxJtQ1SXhoBRAvwDIq08Lsrydpo9lCzshUhrVEpT0xPtZcC+Yy8tmSdi49dVFzc2G0ta4H462WO0H7WwE6QGQ/xkwjJPPWNwaBWkzkTeq4tTqrIdB6URi4YStH/c2HBYjc/60RJRKETJJ/JtTMXwT3U0xUF0eB0ae6zqw== 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=fuZnNzNalix4Ij4FSEWgnThxQt8DKwtEP0RCJZj59cM0RCRnISA6kF1WLn7P2VINxB6lTzTDsG6e/Bn5GHElna8bfQdwoOcFPZVEvzqip/3x7xTr0tQnoOO/+Sz4+yf1fWaYr4D5DFolZ/OoiFO/BJ4vOfQv4qFneXfAFg2ctddMFID8qQ/Iiq3Ia/R+fiN8NnzW5ZjXjUQfD4Qvp1vvhr/P050jIFEcqrwF0Jd9hZRcuIQOB/zvqQcwA0hIXJFpIb/9zcIaeFSHft2KqKkVjkgBoV74vMNZYVj+tiavo3catumxz1tMNfuuirZ35ErRAX8POZn/UouW1tiPUDE69w== 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=D38spTBDRR796QMIzkyiS4w9EQsB4j/uYAPhz0UFbAiaCtU44I/uhMhsqvJq7loH7fZoy/BtTBi3sJEFIYP+g0Z96DCkDtHy9r6e6zF4kiKZDHYFBqV2su+EONZitBvOSTFy9k3QSYRl+jdnpRHTUIgRR3WDdXAMlBLNjsi+Y3c= 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 10:53:11 +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.5612.022; Wed, 14 Sep 2022 10:53:11 +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, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 7/7] ASoC: imx-rpmsg: Assign platform driver used by machine driver to link with Date: Wed, 14 Sep 2022 18:51:45 +0800 Message-Id: <20220914105145.2543646-8-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914105145.2543646-1-chancel.liu@nxp.com> References: <20220914105145.2543646-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:1f4::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_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: 91ac7b32-99c2-4332-f937-08da963f50de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tJtzV7k7ktrr69yrqu9xHZ2hqNq28+hO/D21roToFEcA/NpsTi3l4HKM4TROk6IoTF/Fg7/enFre3/49VazrzkgxXvn9eibcb6NFwklBCga8g4vqUUPXQTWS2YNoMMUbtz1LCQMj86UUq7zbur4LdAPrpHZQKX3ou113juqpfCaHuVjJH11DryfaDHMKY3xzxW1lCC37OERLIVzY4n7Zc+rNKvJ/Ebpntx2CBAZNdm5qpoqvnSOcVseFOeLxetiYqd8mbKcObZ4ljNKkte3tPlnFJubEsO9VUkTn2G8/oLGqsAOrx4YTw8M8JQv/eVYFznDsHHBvdQeHANhoq4c0JmaNbE1yQSL+ojSaiVtLAo5JtKOhmqUpZqS0W1n5pvh3D4Axr1DIMH0/B1aj9aWIuCzc6t/7+CUFlUOJtJ1VYoSL02eMhFDiHhSPfB0rma6TEQ+/AZA1emlsODAKEeCigb2lvwku1SfEDxrAZ6iK3Tpa4U0MGQuwdLR9DlvqC7g7zibe26iFDe0h4IvRy4N1dVFxvRI2VbjREXvJ4K9zNhTQH0yXXzV7ea1BfvEPEt0aE5Sket+jzkPpq1vom7Jx1VmGT8532c292VFmfnpYlTr5RJ+tDD3ES8OVLOaguR9iR0sGcqtAse6rbb5ndvvtNIGnITEkU0gPCuw1HqmT/6kuUFGC4IvM0/KgiRy0QM9/LrDm9vWmj4f9Ts0Hf826vh1K8guzVg7S+biPFGMTqPCEQYcGIQFv1xA3fosLg3iswpeM4BRQOJrq8IAOTANbFIY+UUKJSWkz9sluasO+FyA= 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199015)(36756003)(66946007)(921005)(316002)(2616005)(6666004)(1076003)(8676002)(2906002)(186003)(52116002)(26005)(478600001)(83380400001)(86362001)(38350700002)(41300700001)(38100700002)(6512007)(7416002)(6506007)(44832011)(66556008)(66476007)(6486002)(5660300002)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-A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vV6uY78BZPD9n1tg3g+8t4oW4j/OIPG0qvL5QOk8aUmEtILYofDFaeLLRssw1OaM0DFmjZhDsj810zJ6JN4k+t9dJMOwRI4wEi0WmW3diGvFoaVmBOb2dc8xe476zg4o70u/Dp4vLDdYdbzzDRLd8NWJKF6Gd5F6p7w6g86Qo2hc0j8HH+kEoT6UHkuO3MErxMWRzXuaIleXOT683VhuOAXtPBk84eoUCqPb7nLWsGY12irbXBnVWKA1rMDdcOEaHpV/25+unjKnD6EokGGQMLcHhCvBVrzd2GEAKkGvaR0MdaubcgkHlPFgBt1WcVsqX5QehBhRFAcTiQ3KadynzLq01PAVqREvdSfGTWlYDr+aJBszIl0/Qjsk+2xMKr5t9zPd3np+m4Iphvbpyx/p2Qga343dBsiqRwBsAM3JscK1HvTYpDom10zHMbGkSLB84/aUyFugvJC+AkvpdI9CGlqGk/pKNpBBO0JKN4ECZH4zbJfUxZpZFDI61ZzhoQKFq9xg X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91ac7b32-99c2-4332-f937-08da963f50de X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 10:53:11.3679 (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: Di8Mif1hC/yZVl0kpWRqUvV7CKCkQ63HHhOFQVKt1CBdncXaivyWfduWY2iaAjSyn7CHn+4YUyxB3qMZSSziYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 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 --- 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;