Message ID | 20220829075144.2405000-6-chancel.liu@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 E7755C0502E for <alsa-devel@archiver.kernel.org>; Mon, 29 Aug 2022 16:08:20 +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 F2F861679; Mon, 29 Aug 2022 18:07:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F2F861679 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661789299; bh=EFI6OayM8qkkkJBujIIOeux7Qo9628Rqa+z/77qsrNE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Hns+RXmqZH7Aj5J+QAq8WFOM2H/O8WNo2eGutHc+xXkaRIvAkP1Yl4F9a1wzS2WAU bCYmftnBg9mH2vzU/PdjR3DFfgmCYsGCLPZZfBmWKVA1IuTAxTofxebqDzu2wrB8PE 5RkquKE/zmnA9lhVnZDpIvVfGJb3x1qmJdA86YhQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D1BC6F80542; Mon, 29 Aug 2022 18:05:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 49A44F80217; Mon, 29 Aug 2022 09:56:26 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60069.outbound.protection.outlook.com [40.107.6.69]) (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 4B6C5F80115 for <alsa-devel@alsa-project.org>; Mon, 29 Aug 2022 09:56:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4B6C5F80115 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="XCT3jI+l" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FcamN6l+ZqBiIt/SfrCoek7npEQbEFYt3k/yzIi7+qQet6ovoZELw9RsYJX15L5SIZ8KmCpMoZIyEMptPekSbC++BYUV3nTWs99WMOQi3S0vjKzD+MHcC1j+fv4GpX8M900qKXlQZANHGoWk1P7NUY7L21cIr9ptObNKMibvyy0y5l8MdsW3xKTv80EzD12vmBX61sFHfAMDaQun3hO6itgEDqSksSCSwYGL6sCuOU78qx7E3XFBi2FvQYvPSH3/DB1iYl9WfrZpfBybbta1w365yyUdDkcoEdmfROxEExkLrWz18BH6Ki+q+mpFhEqoMOo2Zz1hEmYGLd3mKfrRdg== 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=V3rcps9Ux2yF0dLMCGKlmvX1I3K+2JMwGgrblKW04Gg=; b=jt2Mr5aWq7GnPQKnkhKD4xdutPUJggeHx+BmALhW5eL1zBmtfipDdi3NcCcmCrnsN60GISzERhC+50AXiqfEwbaMeVKx2/9Rv16nQUlJTUv7MMyrh6F3rUhmuOWWqJbKZQRtW6LAVcglb026s4dPwrXemHyRcihg/0XyNWZD+u9VY++AeV1JRtdCHlpRPMwqhJyfmXGTq9/Wjpo/33IemTUbhEIk5JUEb2d84Ddsuy5Rap2Q69JLXq2FRwZsEctir3NUR7CxqFJqvgHbTd/BvzqsTq4BviBqX35XWXtshexJuxrqia4dFm+QFyBbxFwJX/FEMTgQbG+ZwJ5dgtpmhg== 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=V3rcps9Ux2yF0dLMCGKlmvX1I3K+2JMwGgrblKW04Gg=; b=XCT3jI+l21iJfgAmPW1WHJ1/X6lhHJjCTYZ8PknRxGWRxilYPbFOpj9Y8raVVwYN/iOY5VDoPECUA6aOeVkEs40zLd/c32Phvvu41UcbbCldm3DdP49qSN3O9X8esR0j8hJmIKthtAIc9OV5SfAZKNMAtoUGbbN9QR8QHUw7iK4= 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 DB7PR04MB4220.eurprd04.prod.outlook.com (2603:10a6:5:27::18) 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:56:17 +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:56:16 +0000 From: Chancel Liu <chancel.liu@nxp.com> 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 5/5] ASoC: imx-rpmsg: Assign platform driver used by machine driver to link with Date: Mon, 29 Aug 2022 15:51:44 +0800 Message-Id: <20220829075144.2405000-6-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220829075144.2405000-1-chancel.liu@nxp.com> References: <20220829075144.2405000-1-chancel.liu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: 3a2dbd6a-087d-45ba-e9ea-08da8993f386 X-MS-TrafficTypeDiagnostic: DB7PR04MB4220:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ykcmQPY0ax0pEEpv22EBA2hc7hdokClSezxWLCAfM1f2mnN84onZIBI2pd32c3i3cuMf4LUUjXXpY3O4NqR/w2d9eIjHPwBMdyE0YCd+GrUhrSupCv1TXqqa9a4Ebm2p3TPbjuFPjjw+5M+6WS6Vnk3Obxu2KcduI7dA1U7dvankthbxDX8deGTRWIqg98ieHcpgfqgXgJfIm76JFWoJyHpeqVSfEqHq76yAM7yrtxYTgNkhBnD2QFdewxsqUJ6G1QVJN1A0dEN5fWeQ9W89D/XzIbX/ZS9jxYTQ1k1eddCGa6Y+7HmHFlbUccyQRUC7f+j9Hew4CRJp2atJOrJsrZ6iQ4UhJMy976g7gtgb0B5+fYX2329PQBiL2v/9kONb3RH7a/qTE5upngEEqQ+YHu06PA3v/7Jljogfgyq8Pgrjt23PsG81VACXjXz8j5pIPYYm+EH7Emjr4jYyzxPboe/dSqoc1GegUFtl5ks4esumSORfmZbNZRjS9amSjufilteZCmkc5rrTPs6QLsBvmKYPVMtvmaNaOJDKBpv+Yoi7VKgRgrEkZGD2bYuF8QdNQ2XAYTY5SMzFGMY5X9Hp6VzzyL5E5EQQLyhIzHOqNKnfDUTHockNhncv9/bm3urKyHHNJ5UzOh1azw0+vC8HyyFCqGl9vSCviQz4o4bWSKpnGt48127ifgiIyYgd6KjtQ5pDNjGsDMnqCMq15ZMJfXFhRcJD2xEtT2YSMLF0EwWdCrZz96iWKHJlL/uE1gvxa3cavgLW9MJdW7w6tmVPkZYplQJY7XHEULpfZYCqZHk= 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)(39860400002)(346002)(136003)(366004)(376002)(396003)(6506007)(38100700002)(52116002)(2906002)(44832011)(38350700002)(6666004)(2616005)(83380400001)(6512007)(186003)(26005)(8676002)(6486002)(4326008)(86362001)(66476007)(66556008)(66946007)(1076003)(316002)(36756003)(7416002)(921005)(8936002)(41300700001)(478600001)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: W6157gZvY62kbxHRkGhKxs9CoGKm2LqgvZkHwX+gNrf76DZmiKcDjrXVy1IWrisZiVfIsTOFCKvL0dxWz/Wx02ms4mYQLl9QR7Lj3aebw4AwAWj1yzLp2DxYJwFpRjhtJ27DIxm05Q/2j4ukUaGnWMyVXdOt6EkUzWhWpouXVg25hH3TIRdqq2s+J39L+3NszL86UPaZDE52snGI/Uh+Zt+srAek6G/saH0UuhjxVZTtOjbwUJ3p68A2jEBbuN4F4Gsvj8eXLFGibTZlEencb75rtQo/AhjNORI3ErdZ0QWsRsITW9JMlAAmDNYFzVIZBP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qdprzhufFhQKIEaUL7K6iz/0IkwpnIBgxVGanY75sxtW8MRa7o9ees+A9ZyoAHCqisl0drh+YPFUO7keCm31B3o1sDjpB7TlCl+8sdk0xdL0ryeXFsFBzG/ygUi+4rkOV5MXFhtpNwaQMbWmtmXvgsFG2X7UUFG015FlnffjaZrjYFehwAANKUYszHoi+YnMwJAEvS1E5tK X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a2dbd6a-087d-45ba-e9ea-08da8993f386 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:56:16.8530 (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: i9qjtdbjAcHDHG41Ls8wMVT8fj0awHbtvygrl3XTYywghQrT1495ESlkglJrWSfqS5P8rzLsCid6IyPs3hO6Lw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4220 X-Mailman-Approved-At: Mon, 29 Aug 2022 18:05:43 +0200 Cc: Chancel Liu <chancel.liu@nxp.com> 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
Create a new sound card to access MICFIL based on rpmsg channel
|
expand
|
diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c index 2e117311e582..c534b638698e 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,platform", &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;
Use "fsl,platform" property to indicate ASoC machine driver which ASoC platform driver should link with. Signed-off-by: Chancel Liu <chancel.liu@nxp.com> --- sound/soc/fsl/imx-rpmsg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)