Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp918215lqs; Wed, 6 Mar 2024 00:08:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtN+/sWdAt+D9qsvV0HsQmxwlHMOHyHw3a4JsN8hjeAEScFvRUrQGawEAS1SfTYYqUeXzhZY0tfLlurS/me5zx8SzCH/ld/vnSxRjLnw== X-Google-Smtp-Source: AGHT+IFSzfQqo4q7Og1oXN7KWNrmZ/CAWDzDCsu13OX4KoRWFXu4QlDf52PFlHMvFHaQzgUw67e4 X-Received: by 2002:a05:6830:1d62:b0:6e4:8d2d:64e5 with SMTP id l2-20020a0568301d6200b006e48d2d64e5mr4096230oti.13.1709712481940; Wed, 06 Mar 2024 00:08:01 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y15-20020a63e24f000000b005dc6e684fd7si11204603pgj.451.2024.03.06.00.08.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:08:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=HEM4xhsp; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-93451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93451-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0B575B24CEA for ; Wed, 6 Mar 2024 07:56:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C75685CDF6; Wed, 6 Mar 2024 07:56:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="HEM4xhsp" Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2071.outbound.protection.outlook.com [40.107.20.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D51005C60F; Wed, 6 Mar 2024 07:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.71 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709711776; cv=fail; b=AiGSnRRRE0ujaVfQx30skQ6vxouc0v6NHs07iohHwOfj3tirnLI7A3RRAPK9TpJWaxt6/7at7DxnldiYhPBY6g0H4TR66YeI3LhtUeD4Abx0p0ss5RhTBofcROSudVDMWM2rTT11zW4OBaYJw3DAv23Yi79uNJRoxgF6EX1KqRY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709711776; c=relaxed/simple; bh=MEcCxXykT3WpTFkSYYKMFyG1D1HdVIEMVAxg7nJGFkQ=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=T4jZI27+ruvvNjemVl2G/riVCxBc1Iea9Fq60I2/p4DMCrJGgQYVzrJwhgXrN0945XfW1sVF9p8af2n/71T9ulnVABm4WyzfxK3CQmpks3AiQsSxv21E3CLeYPr27j5uWvrulrgbUxmQclM7nvnJsiS2DqxkPpsMsTQJ1OkRX68= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=HEM4xhsp; arc=fail smtp.client-ip=40.107.20.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N2UEUQydOrMinr8GovqQW/caR7GWL4bTHezQFrfHOrkpI1aP7/r/B66sHzqn+/Pyep5+FbnE2YBm9QG2KejiKOh0fN5ND6zU2B751kk9fcre5fYNqAWAmzgBARyTmjigQau7O/gyafVxsWmD4R63LOzevmfYkep+uiYCqA6AGCOEFU5ULZZjpMdodE0QGlAZBRe0zdXrYc2HpKVn0g4UnKpeAM+NV+qnbFrqvy27ExeKzD55YyFnmJcxHmvU8GugnZQIF11rJCXfKLCFWl0Bq3HANTHV231Dsu1bN2IjDR8QperApJscjAhoy8+tbzBatUB/iXQctv3VDANN0XRdJg== 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=KogfI+Bwc+F6tW2umRyYpttJgjfLzTfDgR6lxTBBDFU=; b=R1QzG//alN9RKZImIll2RERczET4ovc0CBG60ZMQyXIOu32/cH0EvyPI3oncQCTFd098wwEhFb3QWymtQSXGBxIbARGezHCfQLBqIldCk34yoPzd1Aa5AHJkej3k3+YkfeC/ltc1BoNzN5mpmuIzlSNKk7hjkdr1Dyb/cruIN9JMbOrEI+h3qURz9ANUCOjiKBDfFDeWSAqeY4i6MmseAl0z4+l/5RlPqLIDPwSlgeXS0HqKz3VNxbJlQHvx9YUvTXdYCyY49XqUoFt+BrWRzWwKZ7eto278bgifPWHBwA/3g+Gx+JL23q2Tl/J/zrR2yuHfuYJ/A4QzxmXtobDs4g== 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=KogfI+Bwc+F6tW2umRyYpttJgjfLzTfDgR6lxTBBDFU=; b=HEM4xhspZPvzNKto4xLbah924lY1vw49i1YtT379EzDtM2edoTdsUTr7WFMkUhBUg5MqC6Q2VaGp5dn/ZK0VKwZqpJ1Vsy6UTtZnUjqZtVmpjLlofVlppTLgQgXCPtIw9pHWUGD/Ln1Yf3Xc70XsVNS8h5SNx+7/YueaBXhSIPg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) by DU2PR04MB9147.eurprd04.prod.outlook.com (2603:10a6:10:2f6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39; Wed, 6 Mar 2024 07:56:12 +0000 Received: from DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01]) by DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01%7]) with mapi id 15.20.7339.035; Wed, 6 Mar 2024 07:56:11 +0000 From: Chancel Liu To: shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Chancel Liu Subject: [PATCH 0/4] ASoC: fsl: Support register and unregister rpmsg sound card through remoteproc Date: Wed, 6 Mar 2024 16:55:06 +0900 Message-ID: <20240306075510.535963-1-chancel.liu@nxp.com> X-Mailer: git-send-email 2.43.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) To DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9498:EE_|DU2PR04MB9147:EE_ X-MS-Office365-Filtering-Correlation-Id: 38389de8-9272-41c9-b011-08dc3db2e384 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gtgctc5BgGap1/+LjmqbF/7ZkmSyHzpx1pFubDmwcpuJ44zmrTBppK+mIUnEHPwCe/EKP/aunQ4sWonjcUPUgUXYXTyLWgHpjbraUuXdyy4ZdKUrbacAbpB9mmMbE4fGKUh8HRO23uwm7GwjJ8FySHn0e3YKq0cESP2EtKI6R5ivBITikiZem7EmnE+wRTtZLqxPy9j+vMX0ml7oSHE16BUAwKcDUoX2OwlkfufRfw497KvqApH/WjAY7/AbyeG3Mu7jGMNh4h1p+bGPURrbP8x/x+TvFKamc7rxHWo1RNEcjmn+VoEShE0MQ+X1fN/tKvUt1iPFnmKI0/LLXoi71X7y3QGENC8NvSFelR4fsaYOq0Emnsjs/KR/W3fIVb1WyFNLY3DniW9ArZUe1wwQMJHSZxQwAxeDelBrUwCM0rtyBFodCiPvvopEh3a8e0pH6JRsotrmF0SBrGhZ95iPYFwLdFsZdE9i4KqvseyZFuSjXxcMOraH8VrYNM1aE8AKhHHGBqXGfkjPPnA4MijjBK+EgSQbId96wO2epz74l3GjSPny9dFt0Imf0o+biAWuiLJiM5nyXXUIleJAYT2ijJWbVCWw9uDpcVw3nXbYoMAq5TyeMHO5qMZ4r1gSVEA8aJ/2LyhfCqQG3ppl8oQsy8jM+Tka4aAG1v7lDS5HIw6zXHypwi08WKPN1K1BMQMcZF0tav3sw/CIyx/LsnwP8qEfqpohNqs/cTZF51LU2V8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9498.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?38LmUDWj9toWTvdkZ0y+GK6VSKf+s/26wED4tQLO8CFG5kU1nWm8iZUtiHyQ?= =?us-ascii?Q?24zgZngmFxmRFv5yGYknOa2I1qRE3eR0OyQbEtilO4jhKyr31r72410NAYKt?= =?us-ascii?Q?+Hnf8z069H9eoCL3cfqYY1TdI/rx/d/BVYtZTuPjysAeIFobeHoOCcAAy4Ot?= =?us-ascii?Q?Y3iI/MZc2TQBdyuYUpM7L8oNOCh9p7DUgvrhQ9SGztjI3tZLUZuJe/Enpm1W?= =?us-ascii?Q?dpVOHBKo+QGwkkfvDvO6cuDyVPjTtYezjy8OgplATS+woBVtA8kNkO+HiHg9?= =?us-ascii?Q?jJW/n7pRztq1ifxkLzadYTuCBsHlrOZ2/Iqu2I9CN9wepZsTpO3RknbTtk5a?= =?us-ascii?Q?dMro5HcPxnJKHXlyYOO7EPqXj+e6aBUmkjd3faEWGRyNiCBYFEyjlkqbYiK0?= =?us-ascii?Q?2N6x+pHIbLkTh6Wp7Eje77zktloXTEM9BaStZvozT+VmOLN4eYvymFteoxco?= =?us-ascii?Q?j/Wy7/7+le6ydv/6C+4uGopG0TpI2gB4CRrl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yx9HpZrKH8+onglrkOxnMOcsVnDta0F7Tyr/16?= =?us-ascii?Q?+r0XK6pfQ6Oo3u2b5FdU5A/zbd0Qqjfu69kUJQNMLlyjUrEZWIqb1lkZZ+R7?= =?us-ascii?Q?joMvtRTW9QAPnf2d7y7aZkLgSOKrdRA4zuHXo5FdRj8JI6mUHi+hDDf9355s?= =?us-ascii?Q?6Jc2h74WTZE5T1gtb5KT943WWtj28eJYsHjNJ2wN?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38389de8-9272-41c9-b011-08dc3db2e384 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9498.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2024 07:56:11.3433 (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: ZxtT8zOpNWqmqvS53eLPPkMFz9gZmLQtijnrR/7lF4q8ajUCk5Y+ibW808WV1+rHFN4ysJFNyzQE4kCI5zkElA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9147 echo /lib/firmware/fw.elf > /sys/class/remoteproc/remoteproc0/firmware (A) echo start > /sys/class/remoteproc/remoteproc0/state (B) echo stop > /sys/class/remoteproc/remoteproc0/state The rpmsg sound card is registered in (A) and unregistered in (B). After "start", imx-audio-rpmsg registers devices for ASoC platform driver and machine driver. Then sound card is registered. After "stop", imx-audio-rpmsg unregisters devices for ASoC platform driver and machine driver. Then sound card is unregistered. Chancel Liu (4): ASoC: fsl: imx_pcm_rpmsg: Register component with rpmsg channel name ASoC: fsl: imx-audio-rpmsg: Register device with rpmsg channel name ASoC: fsl: Let imx-audio-rpmsg register platform device for card ASoC: fsl: imx-rpmsg: Update to correct DT node sound/soc/fsl/fsl_rpmsg.c | 11 ----------- sound/soc/fsl/imx-audio-rpmsg.c | 22 +++++++++++++++++++--- sound/soc/fsl/imx-pcm-rpmsg.c | 11 ++++++++--- sound/soc/fsl/imx-rpmsg.c | 21 ++++++++++++++++++--- 4 files changed, 45 insertions(+), 20 deletions(-) -- 2.43.0