From patchwork Mon Aug 29 07: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: 12958111 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 BC973ECAAD2 for ; Mon, 29 Aug 2022 16:07:05 +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 0F79A1638; Mon, 29 Aug 2022 18:06:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0F79A1638 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661789224; bh=GUI+P2O7vVoTNUH4EbWplLhEc5KNxb0+Sush54zLKMc=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=G8MY/ZWKV0ZBL9fNC0MyWyWrEHSmk5+bkJB53erxtVD1u6wviyMg2/3Mr3+lS/YuT e0jjX+XSGI0XCV4VyCwKwwRHuBJtBZZ6CBv4h2IfZPQ3ep45GweEIKNiIkSoOjSpk5 +wjkL0kOIroBahU60M1rR0H1ETgNi+Y8R8VQ1kqc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 32FB0F803DC; Mon, 29 Aug 2022 18:05:45 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 767EBF801F7; Mon, 29 Aug 2022 09:55:58 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2081.outbound.protection.outlook.com [40.107.21.81]) (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 C1292F80115 for ; Mon, 29 Aug 2022 09:55:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C1292F80115 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="DGDRD7JI" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G7XBzdXNZkAag/qGc07a3Ou9YX6v2bNA0XvSyNm5SjZEYQLtJCNzzzxW3BJ1fEHehhxM7EElzNH8enPhYv2juiGZDnPPD8rrLH5KITDZU9EiqY9wbmMuYkinzhitBg9+heWsKZAmlKBUBSCcrL0xljNpDbQw+KXwAZpc7ZpoKxs5Ktcr8XoNm90jlJlHB8hyZ+9BgvcR6sKqZb5m+DxqXjoiV56g5G8QNTyrvPy3qdrqBRJiq8V6oSUacA6OhEVFJCN89Grdxd6HkhMZkHSp1TLFcWAlguIxc+9IKasFolyGKbSWqztbzPfDgL49gt49z+gwToUGK4AtrOijv8Qmjw== 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=JVuBw52pC0wM0ynQfdfQ75zsf3a8DcBHIpsVIwVQkTE=; b=XTJd2yI2govGyAfDazZNpkSO7HAtapNhaEYmUzfYqHXW3fgDENYz46u7pIHeRAKt2AOjmG40Pxrcd1vyYmgK6YE4OI2yJEZmwNNqod2n8e8tx81CHHyNYoAVaj3KRP49j2OR+vBjCHo/udFWrft0qd9El1znsLRjyH1K0unIXcTX3sh/jPBUX+Hrv0VRmmIEI4STbw4Vr6sc2w5KNyuJXxMaBzKGFBXsZHO+l6onXNt1shxwPKtXmJsZpz5vDATylKf0Z+x5TCErEeSA0c9/FKkIqZ5GXUgKVVDX0iH5y1KBykzYUAuTFsXWOYaoHi7k4Lvi3OITZAZXi0WP7bzbtw== 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=JVuBw52pC0wM0ynQfdfQ75zsf3a8DcBHIpsVIwVQkTE=; b=DGDRD7JIRE12hw/H3DHNee4rUOLxD4YoTUTTPmBWmYJCV2WLr3h4n54DfcKLQ8D+CwLv23I8oGKK9gpKKnbQq6B1tXcWtzRCKK/wo8C83ooT7xcouKWn0kzlvljV4W2v0mIS4OnN8Iazdk28X/2QGouXDqvHOPQmVcta5S6Ty/o= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) by PR3PR04MB7482.eurprd04.prod.outlook.com (2603:10a6:102:8f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.21; Mon, 29 Aug 2022 07:55:53 +0000 Received: from VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::3139:70b4:6648:bd32]) by VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::3139:70b4:6648:bd32%4]) with mapi id 15.20.5566.021; Mon, 29 Aug 2022 07:55:53 +0000 From: Chancel Liu To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 0/5] Create a new sound card to access MICFIL based on rpmsg channel Date: Mon, 29 Aug 2022 15:51:39 +0800 Message-Id: <20220829075144.2405000-1-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SI2PR06CA0012.apcprd06.prod.outlook.com (2603:1096:4:186::13) To VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 45b6a89b-30a0-4e36-0c92-08da8993e577 X-MS-TrafficTypeDiagnostic: PR3PR04MB7482:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VgE8hGf73FMjvzg6L5YfJXhz8yuIc+w4vzk7YUPbQbEodUYe00lndtYf4PlRv/u8gKEqtqDRcdd/E5WsVi9kuQNl9HHiImuxP+zXkAIL/azqsJFRt/mSCIy9lsxjdpVq4ShZR4HMz7yL0pN9NHJ3l3mLPvvn3w65bERBj69NJkjKIGcYG477iIGOQDxsxYEv+OcyYH6HM62SKoOOfbou2ZH17gIzIRnOQVD/wOPQPyACZU5DpgbnZEBRp6BX5s3jSybyjdPIdPUiueKRRSP3E7Knb57o0FzQVYVdRsO62nT5uDtlMMFk4SYiEU6hDABcxXD/ph3n+4wL+Au7EpCz+Z5kwcJSoUxlQOMwdlprUkI6mrHQ1cy86ipkDuNI7s+uchF+pAwQYreOmIeAq3tPvWK43rX1xwj31dxQ/QwU9mTaOg/bVOReSxyMSsKpNwaJ2bPGxhnvA4Iw1Iv2qKry1uEFoa8cPqBQYIKJQQyUZidPlaIkeL5xwt/1IVDYxMRVCT1y21aWJITUXYEhvbBhw1n89daK6XSMmiSROLx1Nec79fZBN4SVAs474obqcgrvkw7A0epKMdChhFD4PdUCxKnGw6KIjh5i6TzTZny8NzvVabTqCeF9eM1yKlMyQ5uT0AhEdbc7Ct/4cQQ/p+J2y/flx9zSeYCJtSpAIKxNYa8BT9Pjf9SleB24cL6rNzweLJ2x/LPk4pgd97DUaW8rLMMUhhYK9INwKZUJEUPqty6wkvwUUKk8IgQSddDXv73H+eRPJzkS79qRu+fLF9tXQA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB4222.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(376002)(346002)(366004)(39860400002)(136003)(396003)(7416002)(5660300002)(8936002)(41300700001)(186003)(6506007)(2616005)(6512007)(86362001)(1076003)(6666004)(44832011)(52116002)(2906002)(26005)(38350700002)(316002)(36756003)(66476007)(83380400001)(478600001)(38100700002)(921005)(4326008)(6486002)(66556008)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZJWI92TsNCnjPLKuPto27fDw1BTpz2jwFUHWz94Ens8eZXsBiu/LH9JKvsjGnEcSxk+PReMQbnprebIocPn9SIK2KbNJN4V9RHQ0GR4MBY0tcVpFF866w0y34iVTBYbv4ILrzKZF/yv7aTnSlzCG4d/HIlo690bMFIB3PgTkMxhBC+vQhsAoUFOXN2FaQOby7wh/HWqyWOZoQF4cCen2ZcGUojtMo9EAuyjEd6S5lmWdlRE9CEAM6OE2CLXWg923Jh/jMhfKf+Rp+oK5l0ixpKyn3Rg1h1UrANEE3vHKs48dBpcE1Bu2C00mGMHNWnLEPjJxAbAx2pc5rOUgZz9nlmVkksJiWBthDOZGgZuiQAuCg43QLwa2DJnP8pRouqcmOgvZmVi+hoQ1iZTyEqI2tYkE3JIvnJVstDjeUi9OnC/9F5AAEYs58ePnvXzPzDGniVH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WO0FFQF0yhiwOBrlbu3N7zvox7JJ5CN1nSNIErbIkkfK+RXhFpIELm9cf X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45b6a89b-30a0-4e36-0c92-08da8993e577 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2022 07:55:53.1828 (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: iOTs4L9UGsza2Q3tdJEmv1IDQzrUWZCwhnRyU693HMnpg7eXMF1fgEu9k1YCjFsxXfpBeGA3X9SY6MxSMPO49Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7482 X-Mailman-Approved-At: Mon, 29 Aug 2022 18:05:43 +0200 Cc: Chancel Liu X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" At a previous time, we have successfully created a virtual sound card based on rpmsg. The sound card works under this mechanism Cortex-A core tells the Cortex-M core the format, rate, channel, .etc configuration of the PCM parameters and Cortex-M controls real hardware devices such as SAI and DMA. From the view of Linux side, the sound card is bound to a rpmsg channel through which it can access SAI. Here these patches are introduced to create a new virtual sound card to access MICFIL based on a new created rpmsg channel. It's easy to create a new rpmsg channel for MICFIL through rpmsg name service announcment. Also the other ASoC components bound to this rpmsg MICFIL sound card will be registered with these patches. If other sound cards using different hardware devices needs to be created over rpmsg in the future, these patches can be referred. Chancel Liu (5): ASoC: dt-bindings: fsl_rpmsg: Add a property to assign platform driver name ASoC: imx-audio-rpmsg: Create rpmsg channel for MICFIL ASoC: imx-pcm-rpmsg: Register different platform drivers ASoC: fsl_rpmsg: Register different CPU DAI drivers ASoC: imx-rpmsg: Assign platform driver used by machine driver to link with .../devicetree/bindings/sound/fsl,rpmsg.yaml | 34 +++++++++++++++++-- sound/soc/fsl/fsl_rpmsg.c | 2 +- sound/soc/fsl/imx-audio-rpmsg.c | 3 +- sound/soc/fsl/imx-pcm-rpmsg.c | 10 ++++-- sound/soc/fsl/imx-rpmsg.c | 6 +++- 5 files changed, 47 insertions(+), 8 deletions(-) --- 2.25.1