From patchwork Fri Sep 30 06:44:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 12994998 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 C1C97C433F5 for ; Fri, 30 Sep 2022 06:47:01 +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 1D18D84C; Fri, 30 Sep 2022 08:46:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1D18D84C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664520419; bh=x7yInc5NOmICqCYem2xcVKw1WkXEzxnc3gEQiai+v0s=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=CFaKE7C/3G93YkzWyVhpBR5kosDZs3DYgFTLo8gSX6k9aI+GMT7gdQ9QwIL1x/9DE q1sWc+p8ocpIVNET5tV72NQplA8g/1pc58YsqpAnno+koou73GMd+9wGZBQnwA6/ii lg2Hnd5zoDKaNBGMFhhpoLw1ZQINXNrvYiPxufQE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A26A6F800E8; Fri, 30 Sep 2022 08:46:08 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id ADDD8F80155; Fri, 30 Sep 2022 08:46:06 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2075.outbound.protection.outlook.com [40.107.20.75]) (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 5E800F800E8 for ; Fri, 30 Sep 2022 08:46:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5E800F800E8 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="jj7T5c23" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B+6xsuWPKo0yU3dxC5Z/6NYG9fHMm7lDapM/XqI3k78FSdIhwXNH+u6mTixO04dy77xWJevdhhEQj6WG7mtTgmczxXSkmkKIVp1/pOc52mZWUG/P9/eD/UumxzTQuzhpSJJzAhnlnS6bkndahwVM8WglPprx/aZMfah+cmuqMesjmT44NQ8b3Uu33n2U9hD+jt/V+O3mBC7e41mHKb9kVv2W++RdOROcLYFl0TQ7YCvbKxYNL4bqTWv/0Ssu8IkoF/f32xVHS+OSlJuw1S42XFbKmN3y5UjeeeqvIyDGxWESupmGsgPmY1BGlVxzduk2w4TZ4HTgwYje+tSUBUdI5g== 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=2JA+lfMWEe10GCJnGuF07YDn2tTo0Tu0Qukb/4Y8U2Q=; b=aRx955+3NRhiDbv1LoBbSKOnmFOxKVqEb+GmPwvz7p78vCkc/Hwi8kw1NJ5mZ9/+lAm4DH69aVnMcKwUzeChN6QfUHH393Ms//SOeRIBH0r14l0x1boooGgFrQ/YePYVAROdHv5BFbcAoPC0xGLnRj1vZ2o2pJnoTrafnLqlETiGWjasV/dH96C0bEmFQPxMIvPcwtr86/OqYC/VvEYE2fSwEA/8FXgHKsIU0tO+OBYcWA/GZ0v6Xpwp9o88FSJDmPrjpffo38yCSwkq6t7Unh+El7JHNF1JbhBoUZCL8hUDBo5BLDJA9I8pyRI/4cI3uVYkcwaCJ4/1Ts0kYk48Cw== 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=2JA+lfMWEe10GCJnGuF07YDn2tTo0Tu0Qukb/4Y8U2Q=; b=jj7T5c239VSwwFArQkc5AyYKlV/AJg7+EXmFMkkBB6d9xzrhFv8tY69h1ROx189FyxCN8OxAaBpGndF5xJV5Ya9u5GAECr2lDpgBYsxWQ36tXOoBCGngn2nvPriC8RLowyNoJlWQ07KAKInwqu4CCsmaGlcPZBx6+8LhvxZ2QFQ= 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:00 +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:00 +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 0/7] Create a new sound card to access MICFIL based on rpmsg channel Date: Fri, 30 Sep 2022 14:44:34 +0800 Message-Id: <20220930064441.2548505-1-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 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: 5da9bebf-9245-4701-3405-08daa2af6f6a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LQ8yMqqvw4T+UuYQhWrffO8RM5DXhrjMXYQ0Txmo1DP3JG6LC//wkkEMNfXKH7/JisPTtg6byqxgRsRwZSwF3Z7dYbud7VZN8ZAvmVlElzK+XxNn6XQOppGYDzOWFzq6co2sri65wLJvcEexeRTUptQhZGgWC7rVH3i1CuiHWDT07/69G+yvb+6Xd/WSANNTCcHEKKY6vrajuHCBs3LgQuAJ19l/bK/DUA8tgV7B25bn+ZytISVPxWV7JGTuG0hL4AN+3eLFlfPo9RKtj+93s0Ed80k/EQvnY76JOnc4oXXU4eMQac0udRVMKFAocRybp/gQZsmlX5fnQLXWR/v/zR2MQ+9dgPXJ5YqLb7xtTP4735wDfsHtmwDu9SYfstODEcTIRUTUXcWYZ4RbXI4eIWEahloXcttKyhTjv/SNEjcGftnl2pumnNHdWOaH99xBEQF+3boPXNcZExHyPRe8kH4Lb/QZ4++rFf3N3F8SenF1aZRqPbocprs1Oi4HXNoLJT1QgBDGyAQGF3Wjnx2NtT1SpkH3MXwojULTNkGLTNbENwMnYZhdf7QTKfqGPzGx1kUjm6IyrK8QNDAngNgQHTBKC8s+M+ly/Hpi1Bjni3h5yOxtaWSKbx5GO+1cN4DIyfxdhUYAHMRPm5nnqUHvi5hl9G9kzMblMNz5qBjjGSPdZBjajrg+z1bhApWZxwDDzK5cLscpUlEoyFaFN483jP9DQeHOoE82m6V+rvIH11z6kjLodCyE00oHZ03jOaKphUhl/V9R5BG2I2BQI26CDjHLDf47p4Aaz0AM/fN+xNA= 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: WNslTYWlFcKBpzDj3Qr9JKUFmUYlFDqPzD0Nv0YOcGAndAIsfDCesmSWL39PV8maIQYIo5dG9lUFDZveHLZIHle/0b0aaWeNBgRqyTrlyj7M9AKt3UPVRLP8pxNhR9mopak1VR9XGnsR/7P8upNL1SDpSZMpE9Qa34MoCGzcueyRMILL+eFBWCyzaprLG51327GZifFf+8y6uU5nIcnhGWp6JmknwJhqmuTapUPVHCsw9RPe9TVLvjgn+mANoR2wtuEd6shKF57jJVuyuaBPKlpo+kbmce+E/mCc4Inwud24MH5ZUR1ROzRDVb3RF+tgm0yYNlzuktCtLTZSK/Qy5SdCYi/NGvpxqHYOTI5xU/bGH1uvGRiTxh5916Svu4v5hzC4oyNaaJR1LoWhCRCAnzJJIkmIyWuyx9RL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JpG2Yz9PXnw6OBY6G3E3KmCGWMkvXSbr7vzWsuE3JvkLo0PPYu3U4iP+LmL5pfHhCwlhkVCVgN9Gy5hpAFCEh7hhXP53+AkDnhGl6 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5da9bebf-9245-4701-3405-08daa2af6f6a 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:00.0585 (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: l9yTcWmCZlg0kixZJjHdZ47Dm0q8V6HiEmA7gOJ+Sxte4gzfSyMjM3fBLBEwWSxrgIwgUQC9xhSX7NUlKfBCeQ== 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" 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. changes in v3 - Delete the statement referring to linux drivers in dts changes in v2: - Rename property in bindings file according to Krzysztof's comments - Update codes and comments according to Shengjiu's comments Chancel Liu (7): ASoC: dt-bindings: fsl_rpmsg: Add a property to assign the rpmsg channel ASoC: imx-audio-rpmsg: Create rpmsg channel for MICFIL ASoC: imx-pcm-rpmsg: Register different platform drivers ASoC: imx-pcm-rpmsg: Multi-channel support for sound card based on rpmsg ASoC: fsl_rpmsg: Register different ASoC machine devices ASoC: fsl_rpmsg: Multi-channel support in CPU DAI driver ASoC: imx-rpmsg: Assign platform driver used by machine driver to link with .../devicetree/bindings/sound/fsl,rpmsg.yaml | 36 +++++++++++++++++-- sound/soc/fsl/fsl_rpmsg.c | 6 ++-- 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, 51 insertions(+), 10 deletions(-) --- 2.25.1