Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3254038rwb; Fri, 30 Sep 2022 00:25:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5oRIa6SH+LoACT+5aJjQ3Cdho0A2yjeHXB1c81FZ3R24f63Ya8NxXJqONTw4D0ekBeF4/b X-Received: by 2002:a17:906:8455:b0:773:c45b:d970 with SMTP id e21-20020a170906845500b00773c45bd970mr5580231ejy.46.1664522729819; Fri, 30 Sep 2022 00:25:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664522729; cv=pass; d=google.com; s=arc-20160816; b=MQSh5O+NvgtKQwP2YMZnR1vJ/T3CVRMenmDw/L+4NrcfTbmA0q6BtLtngsucZPakT3 oCyR7ZeVzO/x5l9H67jna0Gd0JU2cxXqoODViaoa+Vge37GqDxMrSjk0HeM4TT1/NgnE Mu9jMP1+rzn0hxAo9/3KhCgq+nvhU1Yoz4Sr+/fIkAOguOiTBAgB4CVzK+x7a1kN1EDL Jzbmsg0GduEKPUtWLNjkDCys8diB+MC0CKin3IX7ju52BoQs/JJJx8akiu+HWfcCtvYy 6790JyRNT9LC8je88koEAOEx4JetMHB1FVShj6YlPfNKcO9yFHxKWt2+9HddnKMNnOHU aSwg== 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=CV7uPc954U0xCEAwc0HEfRGm2/QzIFxGFl7FafmS+3xWrsIq1NBiXI1AwgGQcvkr1U EKabgijk9q97cVr2zSRxpOh9XPEoEeD0BJJF2el4xdsH7MQKg1Gjss62RR02DfrdQLeR fJRwMamz1HXoZJGOsDW1jYxejbIMATqbOMezvRurHcnZsY5nmwSxrJ5lEhy3uv3fq56a I2FQkRVSHPgY+hKYg2iNDznb06+K07mXzASkmMDFTiz8yOvVjKrJicKFdNQt47uJeQIX Qtuve7goyzymusQauaNFBgmD7vKjkB6371z8sb5sDjjRjE5U2rWcja60j5aC7J82jE9q ulbQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=MNEUHA9+; 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 h14-20020a17090619ce00b0072b40bc7412si965089ejd.223.2022.09.30.00.25.04; Fri, 30 Sep 2022 00:25:29 -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=MNEUHA9+; 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 S231174AbiI3GrU (ORCPT + 99 others); Fri, 30 Sep 2022 02:47:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231171AbiI3Gqt (ORCPT ); Fri, 30 Sep 2022 02:46:49 -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 E0F3720856D; Thu, 29 Sep 2022 23:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hpIwnx4gDjgZIRrQOypnbUsaDKL8oLQV7oSQgfmPPTeKhpRmzVFCSicNHfI/70hzvLGVBEnwu+K2ncKc+PGRurcbFV3MpiOjZ6n6wK7AGchggkpCqMVnvNp388ChLOzyVD0kJyQ9mFaC+khIXX4o4Wzitg/r/xK/tGeqslsF25wrp8DxjDrVnETgoc9zVwdNOdIz/MXveYbU2lGYeRTjSmRf+tRSJYp7Tyz62BDD4Rcd059rn1t8NIGw7CT4mEH7hJpVFS+mKdFxVK7u/DJxlg+lhVF1oGtpRyp1Cd5BY8VrpSX5CDKf/S5i+pUz5zSndCXIbm5Hc9j6DkzkWoZlJg== 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=YFmN4SJgQys0t45OlncXSRy0Ism+biuQaWjmlZVHqmgf88ohtsZhQuku+krpk8Ts8iKrrd/aAWRplgScsmEVQ7EMUvKQJrDAoTWfr8aRl5oQEN58wkqJ1uCOGDPXon30QDgF2tGOUgUjLJthfY2glsiYErSra526yhgVu0k1+IZjAohy+Fre3lXem8QD7xz/OIwg/pK3snUaObYDWWbdAfplYjZ/0ekCK5inZ6rTgwSAz8N8TgDaLHk7tktHI+FyP2DmooTbEBuQ5ws/3IyyC/s/Qaqa1p2PYhK7EZU84DVA5CTxf6GUcE95b3/qPNx/7YaKqFJlhP3bv/tCzIfLsg== 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=MNEUHA9+6vn5UsL3f1W4vjML5bTtOIzHz4PbUoBluGVW1PPK8jPJvCtsIH6oXXbXScBDj9ynNYkptamDuO2GHh/T0mHznh/5azk2il/bvz/NgzGkZiO2OiJQVyOErR7NfsOGBl5DfsS2BZqdeG8Bhzt9RSnVNB0I6P8sn3gk0pU= 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:18 +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:18 +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 4/7] ASoC: imx-pcm-rpmsg: Multi-channel support for sound card based on rpmsg Date: Fri, 30 Sep 2022 14:44:38 +0800 Message-Id: <20220930064441.2548505-5-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220930064441.2548505-1-chancel.liu@nxp.com> References: <20220930064441.2548505-1-chancel.liu@nxp.com> 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: bea7b867-1b27-439c-e450-08daa2af7a32 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u7f6tnQvbhwY2xYf2bYFTHlpe8/kxN4vVV8nXi0pi3wOH4tq53916hV4RlZY63/aQoiITXAgIOwAu8HTamxVLW89JWv2EIMUr2WQfMC/SjmR1C/G8UXyu5pYwBnPB9Tsl1sWf3sRY4eXcJCAvXgc2H0jVNVnGMkhMI6XYGSVwSXsUbl+tFnkxhKfxgE72CiJQI2CCisrNBMkjM0HzAFPdUi01KTR9/uodIw3Y0Tuk5a86DDyaGqMMAsG8+sCGkb1bNaj8I/pgVIcSa5rWXwnqNjVMAJz6hhdKmGGXMWJx/e8klfdK+KZah4ukJOS9NYoTV3lYbJPZoXSJLMf7Ei3bIeqKzRmCucQZwos63AmHh+aXFW3zSTebguJ5RM5vndd9/CdmI+Lo6+pgN5MgCLkfJQqY8pm8XsoC1CrWfi4nE0pRn5j/VK2jXNMlzVI/fpyE7DpNu1IwbKbYRDGa4HNHh5R8/8oy9IpxZz04gEDwKylMOInOdYFERMWVhbA2I+Xc4/pmRe1SIMIoCoGH5FFpUJ8zMySGEVeSODBLlWyrXn1Q1xZ5w9nZP9dkkVXveYqOuF9o7E3GHxwRBUgOfO0QLb0+HIWqGBm4VL3SD6rFBCKAucKtZLKsUoqGXBVNpD7xx7cXAVDBkRNDZi6gJfpge4B/aEC8P+DfQ3K7uFi1oZsGZm52szW6xpyxNFi3x/mfzfnwbM29vjfpb28Ztn1s/2t8h6rPMndwqZ0BB5JnZkdVfV1zXNMQOk2erFpvYdJv9jJPuNB1Oh7d5V9fcJtml4mSVoIZhCPZ8UQaQeK7jEYiAj/lv7hfaPkV8BcEGOb 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)(4744005)(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)(17423001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?beEZi3PR9Fk30CONFBCBld9MydSrQAHZWq9QwtzTrHoJ1Yry9oI864LKHSP7?= =?us-ascii?Q?fsYuN4nuOCgatHmFkebdvrECncGE0O8sTS51CMzTPLpXJvbXs2lAukAbdvC+?= =?us-ascii?Q?VhDv1jprOytJazp07JimVQwSO/K6Mp5mWSNLZXW6QgvNog2v/1l5r3LCQjoW?= =?us-ascii?Q?LxVRqeBzcJV/Bc7jajmB2WINw7FpFO2rYwk5lXhte/hdRv66dIab7czu790o?= =?us-ascii?Q?P9aEmxEe7CvrrRr5QmAAI5ezuq30iGZJvuIdu8+FswiPJbo6j1OeTbTDu/sC?= =?us-ascii?Q?Rv5Pv2ifKWjqjpNZRtjphDRMdUlNEtLxzO4vV7HHVT7eqoAxKFBa1VtnNfKq?= =?us-ascii?Q?UMVTIa/Rmw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U8WK?= =?us-ascii?Q?46r1j57OAjdvTSHlgvnexPC811y/f6otxS5ZaixlNAIi6Gtk7fCcPdNE/vB5?= =?us-ascii?Q?2zjX4UzuliW83g6w8NSEiNkqKeHvWNElUfxsmvYWc1BgDaGM5K4rzfUJGBBT?= =?us-ascii?Q?luS+eznhLYR+FOyJbZ0wHokK0ZVKl53vM7wCZCxvkOqnec9kmFZaTZQ1hn+y?= =?us-ascii?Q?F12if5yZNfefT4AyRBLCFwyHNNFIOG0Oh/rK1AGSsHl2e9Q4Mo0qaRAmPqMG?= =?us-ascii?Q?Repq3PvAkQ4qyTx1I3hHL+tkHI6eq6tPf0pyNlskKYx2QKgVlFYYRTs0q4aM?= =?us-ascii?Q?QD4jn4/V3fyus/9GX08Y+b80wclKBdryG5MqEdhe?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bea7b867-1b27-439c-e450-08daa2af7a32 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:18.2759 (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: 0f49VcUBP8oNiWjnFU5fwnsH4wqSLdCem5qsV0fCpIYaU91grcRGAmXh5N7l7+hyyF4/x0tpIf/nkBCbf3ouIw== 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 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