Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7768827rwn; Wed, 14 Sep 2022 04:19:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Zsr/8dKAPpbTwyN4ECi14EEuMMK/eV60HLVkxrcDnUvxDOzaRQGVmgkEKQY6pPHqa0FZ9 X-Received: by 2002:a63:f917:0:b0:439:1c07:d1da with SMTP id h23-20020a63f917000000b004391c07d1damr10187125pgi.13.1663154367311; Wed, 14 Sep 2022 04:19:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663154367; cv=pass; d=google.com; s=arc-20160816; b=Kc/N6pFJwpVE+yxWyCrGg90KV/ea1EOHNZSVEq8kCmrX2YzYV/m1w8ixiPGpphGnQB qIRYtN+9cbBX/W7gLg8yi1+ql+S8JSSvk5MekZP1/LW5M8o3qD/OBhjK62/iTZAHEkp2 DBC7eWfd5cKfhe9yAY0hbONVS4YZokFikebc/JZuM2jbc2zqwD/9hdpsz5KWN3T9SFQ0 TshWuMT/tjmNZ6s3xRC7sPM5Y0TXJSvHveMM8tVlYggg9HqPLfhXueXx/uZBJnkdYjux T3HwYxd+eXXKKcwcO1XtBVcJfG5Lw328GFTodKwYB/YoT6mb83Pq+UdNhFJsRt6m8QZ+ 9dow== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pHxRl+PyyXeyleSdme+8llYfXmkco4/2wZZPH9pkCDw=; b=WonwF5zkJWVUHqiP0QV9WK5Jofgy4QWkPWwNDTYodMR1+vbgIgQ1mLg64D8cTxVXoH qQDUGxqES/iwe82/MxS0hSSHLMKyOImS87q2pAllwGT+tmNhE3GlrlKFaGOUqlGEnX47 QDhj+6pFIwjLX7p5B+vDKqN49OqVDHcn9yJ//QYDwosJAzTu3n/QO4Ux77jc/QOtyyGF mk++A740zxKaJc+q76VR3IhEIOCIP55FUQmR7PdRrlz4HMtmw47z+rkGiJsvpTFuJ/hA FTUxaPNNZvAomrmKwylKQP+nv4QiJKkKC2RvqEjtYbmbbjXc6R1FDt3oSol9JEVBhj3R vbYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Tdc6BPu6; 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 i70-20020a638749000000b0041b86985526si14056688pge.189.2022.09.14.04.19.14; Wed, 14 Sep 2022 04:19:27 -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=Tdc6BPu6; 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 S230038AbiINKyT (ORCPT + 99 others); Wed, 14 Sep 2022 06:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbiINKxc (ORCPT ); Wed, 14 Sep 2022 06:53:32 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60084.outbound.protection.outlook.com [40.107.6.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6517C78BD2; Wed, 14 Sep 2022 03:52:58 -0700 (PDT) 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 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 Cc: Chancel Liu 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: =?us-ascii?Q?r4HZK4VIRy+ezAPKKPUQHtA2m3oMjHlMnVmVgtwYNFsOQSuIEgnKNj4ZQxNY?= =?us-ascii?Q?TydXq4h2fuSEfBtepYAbMi199JNdWwtTvbrK5L4wyF/cHTQ4e8x9bTCacA3/?= =?us-ascii?Q?If0TsJ+T2uiFOkyrqZwyeEqSWG3DtxtXuPAgX4pb/3AvExJSQZybNxXWnWSH?= =?us-ascii?Q?YsZu6VO00uR0QbrxF9rJQW0umKSZZNuSMKIH6QMlGK/+0QKoLQq3eFjZlSw3?= =?us-ascii?Q?H99F3ULl5phGCx8mygtF4m61xHvv8JRwCGjZ9THP3ZnGpiPBTHRZaotQB/1O?= =?us-ascii?Q?12E+nTaL0uZWc3f79pRi6L8au5kk1FB9+XJCBwFOpqo3sOk5FlQwXenbK9Hi?= =?us-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/7hbfbEyYcZl0gdA?= =?us-ascii?Q?CFkpcedcX7UQn6AlZxPFO80fjM9r93lfRZKKAoPymxqjAnDYt63YvSFBFj+c?= =?us-ascii?Q?PdKjuH6+nxT2PjCHw3DLHrSTiFPEi1e1vwuP41WDsydbcXSfkxh5ubEsdYlC?= =?us-ascii?Q?8wGOPQonsXZA1xq7PyUT4Jj5QQUwGrM/dfluskH3BR6S/5nI8BUAAYgYf7NA?= =?us-ascii?Q?wDGlS9farWMG5/u9wFUVhPmlDnceZGYnLu2Mq2Fl8z//C6m8WaWh9+eXY9o/?= =?us-ascii?Q?70eWLlndbBkPh5r61huzvsz29tP6senJE+kZ7/sFAgk2FZdSJdQ8rEnpu7iS?= =?us-ascii?Q?H+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 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,T_SCC_BODY_TEXT_LINE 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 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 --- sound/soc/fsl/imx-pcm-rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1