Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3223381rwb; Thu, 29 Sep 2022 23:52:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Q3QgZJava0r+zNCKJUH5uLoDEM3tW94sbKw/CUc+0wQa0IslDBQYo2EW/jJmW7gtBuvtd X-Received: by 2002:a17:902:db08:b0:176:d40e:4b57 with SMTP id m8-20020a170902db0800b00176d40e4b57mr7449498plx.172.1664520766323; Thu, 29 Sep 2022 23:52:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664520766; cv=pass; d=google.com; s=arc-20160816; b=yqTDomwdxtY3JKT/svwaNW3latuH+1myavr3g3H7mPldcszCFukn7twGORPN4SkjSa zfQLtedjqBBKaucBKW+f0GiTQR1xBQGbR4QGOQKXmWQMubdDMyBYJQHBwEEjuA77NRZF rT25QA6i1bh9oEX4VhaPyRSO7CThSvtzju4BDTsvbkKc2H2Zh+ZSsfnCmVJzKWHFArjv r8RCquQzefsfKhEq5crzGWf6gvRQG2K9AiKAhsk2yqP58W3AX5vMhApx+TaXAV4qu8ZR 1+iyTXGKlfJDRWTw99jv2yej9Ia1DxDOu28dcf0+oEKdjA69/dvu9vm0zd8pdXxS3XxO 9FsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=2JA+lfMWEe10GCJnGuF07YDn2tTo0Tu0Qukb/4Y8U2Q=; b=KlNJQq/ARBnhy3JdzusErHNYnSxAgGM/xgVetlvcsD6in8oUCARw1FUdzNQdRwCi1g yTMEMAmueZCi9XC7WvHQzG4PwEZEEr+CfTRIp9YpSSo+V7HheiAOo554qDWGy1wcblme v/asY82pLtsEpaVFoRQpJAjOVDzhl+rft8FzctVzSde3qivnX/U0P6YWLxXNMXXe2EgF 13vQxy82hUVp+o5iS4lNGmBV4tV3HEySnMHzWyfBoWQYn8XdgCGHEUj19RPY6/GvuOAC /BtkKlL9ybTkK/FVb1gF1u7SoR0NflMZFaxKNMO5u/9+wVSY1+iwIyX1RhTKvPxuVoMG tV6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jj7T5c23; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020aa79798000000b0055702b26ef1si1584134pfp.274.2022.09.29.23.52.33; Thu, 29 Sep 2022 23:52:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jj7T5c23; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbiI3GqP (ORCPT + 99 others); Fri, 30 Sep 2022 02:46:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230227AbiI3GqI (ORCPT ); Fri, 30 Sep 2022 02:46:08 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60070.outbound.protection.outlook.com [40.107.6.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBC1311A69A; Thu, 29 Sep 2022 23:46:02 -0700 (PDT) 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 Cc: Chancel Liu 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: =?us-ascii?Q?WNslTYWlFcKBpzDj3Qr9JKUFmUYlFDqPzD0Nv0YOcGAndAIsfDCesmSWL39P?= =?us-ascii?Q?V8maIQYIo5dG9lUFDZveHLZIHle/0b0aaWeNBgRqyTrlyj7M9AKt3UPVRLP8?= =?us-ascii?Q?pxNhR9mopak1VR9XGnsR/7P8upNL1SDpSZMpE9Qa34MoCGzcueyRMILL+eFB?= =?us-ascii?Q?WCyzaprLG51327GZifFf+8y6uU5nIcnhGWp6JmknwJhqmuTapUPVHCsw9RPe?= =?us-ascii?Q?9TVLvjgn+mANoR2wtuEd6shKF57jJVuyuaBPKlpo+kbmce+E/mCc4Inwud24?= =?us-ascii?Q?MH5ZUR1ROzRDVb3RF+tgm0yYNlzuktCtLTZSK/Qy5SdCYi/NGvpxqHYOTI5x?= =?us-ascii?Q?U/bGH1uvGRiTxh5916Svu4v5hzC4oyNaaJR1LoWhCRCAnzJJIkmIyWuyx9RL?= =?us-ascii?Q?lqoRFlM/Xuqc36AE+mEgVOCKcrYkDc1cycyP36e+kWScPMb9KAOdxSNucA07?= =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aMXfL/Y5wtz75nvJVgsWuegInG5Afv6V1?= =?us-ascii?Q?B9qCe1928rA26zYCOEeCv6dwj2nBff/RWtPzh8armcQp3A7tXJDbfJUI1Gj+?= =?us-ascii?Q?sD6fhTzSrIYcn1uxMUi/hvMaxT/BDOI225oSwpDj19rg3SH1RHhwadlQuZEJ?= =?us-ascii?Q?pG2Yz9PXnw6OBY6G3E3KmCGWMkvXSbr7vzWsuE3JvkLo0PPYu3U4iP+LmL5p?= =?us-ascii?Q?fHhCwlhkVCVgN9Gy5hpAFCEh7hhXP53+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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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