Message ID | 20220914105145.2543646-5-chancel.liu@nxp.com |
---|---|
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 756A0ECAAD8 for <alsa-devel@archiver.kernel.org>; Wed, 14 Sep 2022 10:54:59 +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 DB7D1188B; Wed, 14 Sep 2022 12:54:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DB7D1188B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663152897; bh=SpH7HUWjvfHGzXgYO59O4errarcBRav/30g4E750c0o=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=WNu/4CtAK+EGWOcqnkwDvZC8GV7KakFeifi3wKh3f0mBEaTJs+9eBCMfO60pMzsAY DP/1e6Rjh5JoT71XiVZhIwvZgD4oap1PFb9K1jeST1VaRcQ6ZZsl3hh3nDilOxEKj2 YgoNp/0mm5+TxwBYvNMeIztxymJfaN3PiyyhxPlQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6C340F80548; Wed, 14 Sep 2022 12:53:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DB1E6F8054A; Wed, 14 Sep 2022 12:53:04 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60071.outbound.protection.outlook.com [40.107.6.71]) (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 AF2D5F8053D for <alsa-devel@alsa-project.org>; Wed, 14 Sep 2022 12:52:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AF2D5F8053D Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Tdc6BPu6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K7LxRNDjW02AF59eKslPdIApwIA+XfdyTGSSSaEYbDJAXERA3NjvEzIWBMLGU4zOc4GBFG85SHlLujunATAIJAxnb7X7GWqjYGS3CaC8c5rQTt9uUlxuPQJU81OwtnkMBstKtj0zNPnW48U4jKlHB7oeqzYFJtWST2uEcBGn0gIza/5LJla70P6tvj3P2rKB2XgX+XAKHdw8QZuw3uALihn+X4XNEOGOR9iTlqdl1joYOhGTU2gt+ucuAgots8h9mYjqyY1qHARZxIBNmAvI1X+B56QO/JFa0LGHIQ2csHVKHgQYYi2DYWbNi2i2rJ7NZz3ix0zZVqnIx7r9kkkClg== 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=pHxRl+PyyXeyleSdme+8llYfXmkco4/2wZZPH9pkCDw=; b=Bxjg+42uXs+ZsSEpk2dS+lS3ZLw6oVx0TPB075IoVVYDkvCJ7BeGtOEI8t36faFuqXXtEpS3pkbH1iO7xXtC/86muabS3SjCnhyAOElQADu1MAMMbK8I0e3pr1HDFLb7fWMGDgzeVcC2xMX/ZZCCaiwKB2MkW9+uc0VjBvZdjDHd4GaWi/CS+xX7Pr5xMPQdiSCiqn8PP1ML/MQvQphIYccV96gSse2bIUc0iV8D/8ADau6/y9Id4vb0l6T5h8MSmdq3ZPNPW8WeEP6VeXHI3/UZuk9nMkSkEsy3SCc8gtWMmI/Ci24rKE7tk+iuRWzxQU2bg3SY6kC7NEjLD+m/aw== 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=pHxRl+PyyXeyleSdme+8llYfXmkco4/2wZZPH9pkCDw=; b=Tdc6BPu6zLWfdUQ0iGnLVC5E0z9O8EC7cAJr8dK1NfmFx8IMNsFK6En8PDGsMovEGfgc5woTBBnlwstaFWLDE9Qy3XLPbcUQ6QGa7S7PG90j09Ic01pfidFCgPz4PCmMnnbK8kSjR4HG7heGl4URjTgIEaU54Paqu7wEyhwxFwI= 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 10:52:56 +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.5612.022; Wed, 14 Sep 2022 10:52:56 +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@gmail.com, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 4/7] ASoC: imx-pcm-rpmsg: Multi-channel support for sound card based on rpmsg Date: Wed, 14 Sep 2022 18:51:42 +0800 Message-Id: <20220914105145.2543646-5-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914105145.2543646-1-chancel.liu@nxp.com> References: <20220914105145.2543646-1-chancel.liu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:1f4::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_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: baa3cde0-0339-45d0-0408-08da963f47e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eg8HRwTzdNXUkDxkxyhPvgxTLu6PJIm6K9TvlzLbGAgiw6ubGldake5nqGCZHYQkRtxMx05/2Ihll8w3chiTwzatt5KQxOkB2X9vMH30mxLM13bmzW1CK0qRlzDxjNuBXifP0MwVeZ5FGxR9vB1xDqRCsOfB9lOYMky+1jGzQC+VEVmlD3rlPRCPSz/hst5k7POJevt536uWI5FWgyTmonW56E6ksnLxMBE7Pe4I/HObJimsFVi4vOWGNniNvL+lXJ3pKiqbW+4fwyItlsr+WgXxl1LIjzC0x8+WNp3mXp4otfDB4K4az2L13plyAm6TmG5HKYsJAjD6XpO+TN5xurNBMsG9REvKwnwFLHYDK0HT6Gy7JQmOGxHZinvRatHdtXn4woJXGQWY6OvxDn10XryvOcPdNOJhCnXwmJjyONfO1MK/QfajL4G/Ess7699nt2UAHoQoSVAElFuWt2T4ztwkcrSPy+NbGh//HfDTV+c7nnkYUtiLn6wGoMHntt/29ndm1VByzObUR8FM4GWQtqA+7DnZptWQKEJGW/RRFy9096/kuOCzs51c66JeVDMWfQBctFIRrOVTpVksty3WJIFfz4dT4pimzGHRIqj3UjvNFO3TMCoIDgGi3HksDTqk/v51rNcZeBrMeN1mkW2NEWBIJ6oJfT+wJAEsiIRTN1VBhlC71gUW1GgWnbPUHtrM3XHFm5uTAHvEZCuoOJYcG7m6yAEKHRM3ZLeKbIMaUtHOvqDwBjt7ol/PO1gJXLYIJrMZr3GMQ6sLKfJHC2G6pMH3p3AxsxoBmBZ6fWU/5Zu4HgLLVBccMPZoRstAI1Ea 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199015)(36756003)(66946007)(921005)(316002)(2616005)(6666004)(1076003)(8676002)(2906002)(186003)(52116002)(26005)(478600001)(83380400001)(86362001)(38350700002)(41300700001)(38100700002)(6512007)(7416002)(6506007)(44832011)(66556008)(66476007)(6486002)(5660300002)(4326008)(4744005)(8936002)(17423001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r4HZK4VIRy+ezAPKKPUQHtA2m3oMjHlMnVmVgtwYNFsOQSuIEgnKNj4ZQxNYTydXq4h2fuSEfBtepYAbMi199JNdWwtTvbrK5L4wyF/cHTQ4e8x9bTCacA3/If0TsJ+T2uiFOkyrqZwyeEqSWG3DtxtXuPAgX4pb/3AvExJSQZybNxXWnWSHYsZu6VO00uR0QbrxF9rJQW0umKSZZNuSMKIH6QMlGK/+0QKoLQq3eFjZlSw3H99F3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jCHw3DLHrSTiFPEi1e1vwuP41WDsydbcXSfkxh5ubEsdYlC8wGOPQonsXZA1xq7PyUT4Jj5QQUwGrM/dfluskH3BR6S/5nI8BUAAYgYf7NAwDGlS9farWMG5/u9wFUVhPmlDnceZGYnLu2Mq2Fl8z//C6m8WaWh9+eXY9o/70eWLlndbBkPh5r61huzvsz29tP6senJE+kZ7/sFAgk2FZdSJdQ8rEnpu7iSH+6KVdnenF9wq0WresX3gUlJ8cY+5T6YTeh8+Hne X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: baa3cde0-0339-45d0-0408-08da963f47e0 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 10:52:56.3846 (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: vHzZRDtTtLJt8w+G/g486glxd5PbSwB+kDUbXoAi/r5ZsMEbaWKA6MdlpBB2Zu18R0xz29CGgAFJUj1zJdGRgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 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-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index 3157cd5a837e..2f310994f7ee 100644 --- a/sound/soc/fsl/imx-pcm-rpmsg.c +++ b/sound/soc/fsl/imx-pcm-rpmsg.c @@ -178,7 +178,7 @@ static int imx_rpmsg_pcm_hw_params(struct snd_soc_component *component, msg->s_msg.param.channels = RPMSG_CH_STEREO; break; default: - ret = -EINVAL; + msg->s_msg.param.channels = params_channels(params); break; }
Some sound card based on rpmsg may support multi-channel. The number of channels can be sent to Cortex-M in rpmsg for process. Signed-off-by: Chancel Liu <chancel.liu@nxp.com> --- sound/soc/fsl/imx-pcm-rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)