From patchwork Fri Apr 21 00:10:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 675894 Return-Path: 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 53786C77B73 for ; Fri, 21 Apr 2023 00:12:37 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 17EFFEB6; Fri, 21 Apr 2023 02:11:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 17EFFEB6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1682035955; bh=E4fgPsGfE2hWP6xmMJO2g+zYp3y/aZZkwWDe2Ej9ku4=; h=To:In-Reply-To:References:From:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jzpNtZHBW2oluu2FdHr/IO2G8n2eK1b6ZjnejxZA28IARroBjQDko3sjDGInGgNTT jAzvO+Q0UhaCrJb36PzD4rhJMZql1fW2x0WjwRMMg1SBM21WQMKhQ1py2bm2r0qx36 LKTfQnQiR5w9RZ8S9lPZx0sUPUQ1FpQYanXx9vWc= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5DFDCF80510; Fri, 21 Apr 2023 02:11:10 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1A05BF80510; Fri, 21 Apr 2023 02:11:07 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2070d.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::70d]) (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 639FFF8019B for ; Fri, 21 Apr 2023 02:11:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 639FFF8019B Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=KsKi7n2B ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KSW9Un1EJMag1O7Om5eIlnlVby166m5zAe98P2l8svprUGAtUhKBBJBd5mMqe6F5JBBssPB2XI36aLc4dGr0iPZ0f/qDcM1PTwFoQ8ybd8KDD4PpYp76gOaTfizYbdwLe4pZWu0xBl6Hd4doBqvTMye+tvPU6BYvcxHoutcSd8+QQNsuqQV3xLp6uZu0E0/GEF3ZvkPry5hsgSe9RUN8CmjX5oP/uIGf8VYZcHqHs+T2Mj5uYw93f/oN4PXDgm6dkepU/s2arieNFCrdPxKlB0BmVw4NYNJ2qG7kDw3UEKFZJACb6s4qem6ttxuBZHF163NI4QE3z0+VvKWJ5D8bJA== 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=wE5oVZgAk1D/PHjJcbxwDmtZ7r+kHM5d/Ob/eN+14vU=; b=O/szZI9AsGpoeSAfOyydV+jfwPfAc/CfOxjYXtraSPkNQdV1KPIC0gX9ZMoQKfkcd+3i27RIPEIF3SoKK/LK2/sc9dP4t1R0WEAP3mQQCdbKwsbFPcFNTCSxU0qEdtMvsFTxOLeUZoAKFTpeHnnvwWcszzcsU7DGRHCT6dvi3/OdyQ36eVWohd2zejg03mSkQ1Hc4xVKhxVXVW+T4CHc2S+uThz0t5p5LGt25fuWzK4BzaLqG9pLFU4TMN7ue/fvvrC5kMlka4hB5OUNk2nNTsgL62uFNeX2zpZoFDYGjhIBlvlHHnOPvOk1Zj6olwu8jPYO/pGgturnEbgM0PhAvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wE5oVZgAk1D/PHjJcbxwDmtZ7r+kHM5d/Ob/eN+14vU=; b=KsKi7n2BZIEhHyzEeqyi0sJvGDagnuXWN//7vpY+vIwbSk/Ad4KoBqD5AC/iyF+fxldd9aD33u5v+KO3d+nd8dVkfcxy6fMTP18PkxCIBtCIjizulWrmn2FY5irH58hT4U2vrhmXSQNrMTBwCaI4UdSJLJ5Wjt0MdzR6P+AKE4c= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB11167.jpnprd01.prod.outlook.com (2603:1096:400:3f4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Fri, 21 Apr 2023 00:10:56 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840%5]) with mapi id 15.20.6319.022; Fri, 21 Apr 2023 00:10:56 +0000 Message-ID: <87bkjif628.wl-kuninori.morimoto.gx@renesas.com> To: Mark Brown In-Reply-To: <87cz3yf631.wl-kuninori.morimoto.gx@renesas.com> References: <87cz3yf631.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [RFC][PATCH 1/4] ASoC: fsl: imx-es8328: cleanup platform which is using Generic DMA User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Fri, 21 Apr 2023 00:10:56 +0000 X-ClientProxiedBy: TYCP286CA0243.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:456::17) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB11167:EE_ X-MS-Office365-Filtering-Correlation-Id: 55263f0a-1213-4a5b-a670-08db41fce0d2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1zNsNmb0OX/9dv6wkCahrF3lMqi5apCBaGCaqozKaHAyHJgBScAdo8TpJR1R/rSL8tNf3wBNKvJ2/rvfZrNvR4tv1Zygr3e2Di8Xn9vFPKCsmGXW+JIfYTT6R+UhgvV41UczDYitB5xPFaCkJ+g8C1UWSW8NLtMQJphbTsZ/MkWxVg2Eqbegb7pHkBWZla/2x04Bz/eu8L7VL6N6gu+0V0/9iCHliLfXflze6+udx4l1L8rCCOzNfCgTTxv7i5LsesIi0fdWwATjB8iWYgqMT65XWjwnOKxAbjlPgK2YLOqcPJ5klmGZeQlFxg9FXKEaEz+ZJtOW0tjonrpiIIrxGY2h1sbHaMBuJE0b1xq/5i+8B73i+s3gc1UvaWjhJ3o7ZIWkItRZLYnqIY0DevkNe+XzkpviFwJDuJWK1UnwM+C1FeF7UE7shk+tlRQOo1qEm52ModVEt8CrLBAMq2NLFy2uc5OnwEqkALXU41yP1Bn3yN0WYdnQIRIBbXwJGf1TMYEXePjofM814qNUbtBQj8Y3RhQdlbV5LMWC8MXkTwTPCximrZnLiDAxWIhwHpV0D77ii038ggrc9uu4VWO0V482SJG/EKB5m0wuvs5m+ZeEs9qcQQM+JHdWYIxZGP+mhtt7vTCpPp3CpGyMSjSiVA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3PR01MB8426.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(39860400002)(346002)(136003)(451199021)(36756003)(2906002)(38100700002)(8936002)(8676002)(38350700002)(5660300002)(86362001)(6486002)(52116002)(6512007)(26005)(6506007)(54906003)(478600001)(2616005)(83380400001)(186003)(66476007)(66946007)(316002)(66556008)(41300700001)(4326008)(6916009)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dB1Me6IXTQPg3anh+9b056b6UZ/0vGC67kzgbCLQ/45VtOiquKBgMuhZv4lVmblcRQkDXPpikHm2rhdKLPcZHua1xqJQYD4SIQJNSfweFkaUgG/bP+HnYx/JKzKRfxEmHdQlauxd5NYmBhYI2fi76O9a1jjKkUUeUd1WoxgZ+hedkfODu8ux6hDmJG4PP1oMbfMk88qKd9wqjQDJB7hXoHcQCqvhCBfM3zzhC5gjSdDRXuwwxijejCQlAXYHOyzZAn2S0ozoELBOuJ9M+HUFGp8np3F6lZ2N8JfyDyC8Ut0GALEkj+QWLJDZ3pC1otxtLG82TBT5ElA4JE5SinOqLWwAWhKj6P8Cpbe7UWhbWrhOkauuZeHqcV3WX2D1PfBeZ0JOmtu54trZMcLKNbnNPxX6zaDATZR3vR73PV95/eFxjb8It0Hbo+1sZxvUXOFzbp2FwEoZbYBL/G09mr9nom5atgpiDNrbzx6HfAScCIAVCbZCmDiwYoSixrIcZcutuTP49a+bW8+TcYSvzKdeYPdjagdVap9mAcpf3f7Dz1aNvX90Z/PNTj1f6W6ep2DCKqBKiGak1BSjnkLdrneBpkSBn1GlmcaJ3SyTqjbEmTj49o4Bpb3bcw4chuauJeNoPHFnjgv13YJ5lsUfJB5tgc5c6R4ZEwCgWNno9fG/GUQrbnVX6fze5KihfajkBt9sePZnNkZVdp5fiJYoPxjPUUbeeEpCfUNXvYo6PTbLpNcQcg3rxtB4WylMJEG74RPOUjiX2KcgjwOO9Ql+J5gGGeiy+XLJl5OPvxuG9zsAT60AuBj9mowplJkFmcNCM0csQaUP6pla9yUkhGV7kZX6f1qc48fzqS/xVoCl5YIoFK7YbjP9rFUPX+IWm3R6KUPqP/NJbxptiUCZZuEodfee8rQ7IjCh2NEQf9j58cvgl1K9qPDiHARfeQ1+GaPa33h03PZhAGXpCb/gKLbCjpIqfKQIYgFWreq4f7Vo8+3QDze/jeaFbXwTQi/AfVqO2fTxlzkEzLMiI0VbeulPcIsN2QN5UyEozMLZN5ToHDDazjhIPUHIOoeYp5eUikWWCuY832zYu1c0oUTXhb6r4cLEYfgsKLZNILHH4N6z0dbmgcfkS6RbEInrNBmaFlRAxdYnyitTe2whPNkmdRxMlzo4KU/Jb6vQ4K4YbLnp7OH1mnhRKVpiuMRVCij4jScryso4JbfI3oL2HLwlfVFI3AGjUj2zrDEeZDolg66ZGlPu9FNmOrHtR8s4ZmqflJqvQlucPUaJJkP/KUcF+56ChvHFafqaEypJYpl+A4zeKDgfmQIznBXoudyy56A6ioIk9rH6/3rCgUzyD0+aC7bs80Ubk4UK5GsLf9unFaRy5GOOaBUKm6GFRXY+BnWItX1feUeHfhEn31Y7OhKGwcyIcVz6lbdrzoecc8N7dyTkq7YsQzN0HWElFRijwIf5z6o+Oq4lcwsKUM2WhF/CRqA6dyWg8qDBPlmlWZMjDaUVdgTmcVsoEoYVR9pi1p/+zPFeitvCrw+bxcRKNL5FF5pN/04ynbo4mWzEhgJRSs8HNJ5BZ3mo+gzvn+yOuH+KQNXN7V/rmm0v+7CTNmmLTTci/5CYryoMMidKy9QnXg9rWKZFwU4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55263f0a-1213-4a5b-a670-08db41fce0d2 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2023 00:10:56.3676 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lamfwuSn7x02DN14M3VoHv6jaYWIHPcJ7TrWXgos9aZtfbAMOARgLnHNGdkRP1ajJfvwP6dxK8KgH8F9YAVSj8AmlPjXXYNIYyXpZu9ixAsmc7IsVbv7HOsTtDSjJEuy X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB11167 Message-ID-Hash: QDN3L72KIFKRCNIKAZKYM6SYWWJWNFC3 X-Message-ID-Hash: QDN3L72KIFKRCNIKAZKYM6SYWWJWNFC3 X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Shawn Guo , Sascha Hauer , alsa-devel@alsa-project.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: If CPU is using soc-generic-dmaengine-pcm, Platform Component will be same as CPU Component. In this case, we can use CPU dlc for Platform dlc. This patch shares CPU dlc with Platform, and add comment. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/imx-es8328.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/imx-es8328.c b/sound/soc/fsl/imx-es8328.c index b80c57362fb8..85bd36fb68a2 100644 --- a/sound/soc/fsl/imx-es8328.c +++ b/sound/soc/fsl/imx-es8328.c @@ -149,7 +149,7 @@ static int imx_es8328_probe(struct platform_device *pdev) goto put_device; } - comp = devm_kzalloc(dev, 3 * sizeof(*comp), GFP_KERNEL); + comp = devm_kzalloc(dev, 2 * sizeof(*comp), GFP_KERNEL); if (!comp) { ret = -ENOMEM; goto put_device; @@ -159,9 +159,13 @@ static int imx_es8328_probe(struct platform_device *pdev) data->jack_gpio = of_get_named_gpio(pdev->dev.of_node, "jack-gpio", 0); - data->dai.cpus = &comp[0]; + /* + * CPU == Platform + * platform is using soc-generic-dmaengine-pcm + */ + data->dai.cpus = + data->dai.platforms = &comp[0]; data->dai.codecs = &comp[1]; - data->dai.platforms = &comp[2]; data->dai.num_cpus = 1; data->dai.num_codecs = 1; @@ -172,7 +176,6 @@ static int imx_es8328_probe(struct platform_device *pdev) data->dai.codecs->dai_name = "es8328-hifi-analog"; data->dai.codecs->of_node = codec_np; data->dai.cpus->of_node = ssi_np; - data->dai.platforms->of_node = ssi_np; data->dai.init = &imx_es8328_dai_init; data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP; From patchwork Fri Apr 21 00:11:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 676914 Return-Path: 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 1838CC77B76 for ; Fri, 21 Apr 2023 00:12:43 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D1788EC3; Fri, 21 Apr 2023 02:11:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D1788EC3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1682035960; bh=3T2NtItc5T7+lHQBVkp+Un6i0TDUfmMmraxghY2Kmsc=; h=To:In-Reply-To:References:From:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=PUE/tmmHo09C3mKzlbzao6EMs4nnl3+gEZIEpQL8H6BKhTRTy2ToCknA3r2xmdpVk DqY8FWiX2y2Meq/PmekGQAtgK22ueds48JAqOw3vzrxfrdcYHOlVe+ly8icgPLSB+K dQcNtCfTJQZqb9OpSHgzLctt9G7Yidiw5P9UPnKs= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id BD430F8052E; Fri, 21 Apr 2023 02:11:19 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CF61AF8052E; Fri, 21 Apr 2023 02:11:16 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20706.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::706]) (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 E3676F80528 for ; Fri, 21 Apr 2023 02:11:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E3676F80528 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=npJn6J70 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YT9JOMmjtZ2b7bIGfgOLFoZQFIcfWmTIvbnilZi+Kbgct0jvZQ+ueeoNgyjqqDdty21uzyRlWfRp+nOLaACwmec1HFxt7rPZSXgM8c5I7fK5pnetMmcdaVjzDVfjOKNKfTYD/Zcr9dxT8EISmoW7zElLNdmZ1G4J1K5zwG4UK2ZpNBGdJF1xxUPmfRxSG72H0J6KYn4vns26As88/+IYLCjCY3DgRm/QdKog1pqJZTMTbWowQaisTkOX89eQO2RtpCv2gQaHs6/04OjE3LyKWam1NUYPRkPyRiupDzs7xZVGL4hWPgDa90j4tWv3OPqyiJ3MRnBwM0uTIu0BVbbzfQ== 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=/kEytZl0L0E2qJ85C85uBo3Kd3F6roPVOV4aa28ILpc=; b=OHrnY8p01tPncfWvOs6iy5UfUS5NThNjqkwbmBxXhqnmo/ot/e2CnqGpPjf1namTSA/ejVC8f5iUZeU0nqyj/LusCsAnSoBaW/sybnhLkVCttikEuOTET0/NTvGIT936OPg/eJ+EKhbLzgv70Wt9qjuQ7hydi46oOCW1hr6Nmsv6u2wrwPrvncHKdv6V3xbF3pOK/nrW7zd26jPeR586qaVRL5kwPdLYYTNLLsJGPvJyOj2MFawJ2PsuZP1E9J+nJXNpILqRjbDV+vWO9ePQQkO46n3tN2KEgzS7Lrx8mJST0AHKKbdZ7JSJ2AWh6yXN/kAaqDnFINSng5YASBAQNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/kEytZl0L0E2qJ85C85uBo3Kd3F6roPVOV4aa28ILpc=; b=npJn6J70nLB1I0Jji5D/EAIpps3i/WWkdsqmA/9286XLHyPoN/pTisDIlJ14zr98YbxK7PFtthLxPFQsYYgssGyOAhfAmltnIxr77wztgF3OZOkaFL7S4Y6NrSl1gMM8qeElGWnXw+oOeW4iL3zXT9n7bZNEi0DtVOQjbs96jWk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB11167.jpnprd01.prod.outlook.com (2603:1096:400:3f4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Fri, 21 Apr 2023 00:11:07 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840%5]) with mapi id 15.20.6319.022; Fri, 21 Apr 2023 00:11:07 +0000 Message-ID: <87a5z2f61w.wl-kuninori.morimoto.gx@renesas.com> To: Mark Brown In-Reply-To: <87cz3yf631.wl-kuninori.morimoto.gx@renesas.com> References: <87cz3yf631.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [RFC][PATCH 2/4] ASoC: fsl: imx-spdif: cleanup platform which is using Generic DMA User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Fri, 21 Apr 2023 00:11:07 +0000 X-ClientProxiedBy: TY2PR02CA0027.apcprd02.prod.outlook.com (2603:1096:404:a6::15) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB11167:EE_ X-MS-Office365-Filtering-Correlation-Id: 5991dfcb-fb51-4ecd-c969-08db41fce79e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Lc4X3UlAWdIZfvyW91Us0h+yTNGfaMMLS64T8DdY2z3StmZDjcAtIYqW3apiHJmSDlC/Q2R5KmaH97vFHeqMZp6mAvnUsYAENyOtQ4FpnBAQrtcC0RU9AwKaAqCnCT24wE13F6xHmmEozv3czfrIi6WBTSKNY3pFtdEgfRUnUQjKAo2GPy4YMsr7WPlD+Prrrp5nGpPzPzXCZbT8SVV2VSxJgWK2fftl9LW2zFJqWI/llPrpQJYMtGoFL5mk91+AueQJH/TXmWjl2VMcgvty5/WeSTxBO/rLlWo1COVTcjW1q+119ebY0GsviVTJYvbqY7Xsqgw01fbvw5qAHVbKII6v9M2/DP0cdWAKSgnczRH2SWx/40eWXnhIpKbTTk6/uInU4F/Pwd9r2VWBoKyle8YOJl7hrDcxn/+TtCuxZpMQku5hvoHM6aWkmYzNku/1OZemNWbDCSS3SQ0UMnDFc5QkFDgbJEk/3brmufKCURqOUm55Wpz3AFaQLtDO2Qpm5CwSGnJu5fyBbrU8/iFWfUTcqDf3R8Uad+qLg1rr6QCfsDGF/tb4BmVcvhjgiwN1TQE7O6FbwYxgNIJICpOJzENPtI5bqsNUJnRI8PISYtxOaxeaR5ZRZtz27+eBWDDyQ4po94TSqaOwkLDXAr44jg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3PR01MB8426.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(39860400002)(346002)(136003)(451199021)(36756003)(2906002)(38100700002)(8936002)(8676002)(38350700002)(5660300002)(86362001)(6486002)(52116002)(6512007)(26005)(6506007)(54906003)(478600001)(2616005)(83380400001)(186003)(66476007)(66946007)(316002)(66556008)(41300700001)(4326008)(6916009)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TDnEhAWDbXEOhHA8fSPcy9t81L93kvWP5jzDe+xALnvcl9rlbH965fpx0CJfG+v6Vf5STGif1Ie8yRM2DQV0rH5aZOrJoIarFEgzqq/qrnHdetjOT/SoOu13Nirg1Ggv3jsykxZHmFodnN52egutilvvhxagOCJHPwqT5zuD2u8To6ETWOyYsgafEpYAPZcqynlFMHPjUvxKhsA8pZj51tLOmmSNgbhogbYZbtXC3ssGgsUM9fj8oshirB6ZFRSYHKli+bugdRR2gAmVCtY91BiQKI/PIFDACp+V0R+b+oXX0hWmNlLdZKdEuwBb3vAe0qippVEmcKc85DFjoade4ikMDtySexly5Hx+DjNScajL52x4n6HvDawW3uxkvzyBSVhD+LXagWIbBISg/+iGNOO6Ye6eBafKjM6S62jb56hAIEhq+JKNKxxQz+MA/d3cpa54AzsbXMtzF6ALFlBRZYf+Y2nIHue4XBbQN4JbBlgXXNDr0uJkNcQRErMgfLFxLBriW5iIHMUY/5GFKkaQ8SzVvIz5iC75Sd4n99/SOMx/RE5gaCPby8I2euimY75WL4YswPm5p1n6VJ4tcdXaFOCp7N4KZZxMFipx1tDCrEt+y0WNx9KEpC1v5M1Z1isd9pA2TVb6avRIWcS7oVZ7OHu0nno/rMRVHB8OjJyfAtZCQuuSandA9fDYys1MelQ1yIlEgdKbKQXmtNKv9MXkM/oxIaLALBWZSFjMwHwwK6CkAOMRWzfySyopRTMY/H+ubm11LLq75im0GZEpNGrrM9JzeNKg1cqjVPtBFk9gbpCxAMBD1JDlWMGLxNxW5X1t4FTdGtuEpSvXyjkRva05gWo78/C12/kXlLHYoDO6Oe826vPKbhV8nvFYEM10mD7YQIrI6BXqGHHIHeHOUJpz3hRMBoYgVVsoAyjj8YvlTz6Jy3LkLGwAkiGOYfi5FTuI9jsZlB/Bed07iPfTjDfia0N0mJ4c8oWmCAMpGet9A/U5mK8d1z2TvfSUg36u0Rdda1FAvdAGcUE/beM8IDvZZ5wZ5QK4KElNKBqNBsmBWTuq35S0cP5GSD3rMZ5HohP8uQgP7TpjE4zbK4fXVg86cDsB6R7DuS2CwdTaj10SeyxYLSiFIYVdng8GtgprvN99dtxlYj5pjpTeRNMlF7hpBLpuf8kYSLAJXzhJePmOINmUwHBx/t7aZOUNGnwbAU3EMWaaSVGGiG0RKg2yKnsEkqY1v07hu8H1V3Fbx+irov40WoNoitnr784YNZo7w/xE1t3cvMkoSFpEaaVlzCuV3QTJPmSlntWPZ0DHW/ssztcyUnZQGy773mJKQuaGuLi8pSUyabyqP7mMalolsrHj1c/LMZ/VTw6lr86obRKmSakbRuZYxug2z8fToSupWgEMBArAAQjOwII0c3RB1uUA/tTl3Jsz9YlraO13cr9kgIxOtWBF3oRoAZae4rcFc2dpzNJ+0MKzNd6jO5ECnku0QyY9YKxLtN1cWwUMHOd2ZNjaw6gFQjmKI6tXBfk/CycUxw9V3B17TzB6tvZ9SZYlSW6qVdSylSklT2GzZsBz2a+Z9aDdHe+TD6jiBHxlgHbBsLMRkOQb3xVDyUsaJk68B7O1leE5e+VYQTagnD1Fj4c= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5991dfcb-fb51-4ecd-c969-08db41fce79e X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2023 00:11:07.7674 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IYssVtQomW9zAdgIQdRefKoWNRTn2lAx/PnwWeFGabelUtnmJHeWqS6AQwDTlr/3ZikT6QFNBmgFr3OfBJQ0W37MlFhi1pRP1YUWxmvzBvdF3u5vT6qrT5mFrUBIS/Bh X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB11167 Message-ID-Hash: HEHB5TQNUM232VRO3Y6BC3VIADFFY6WO X-Message-ID-Hash: HEHB5TQNUM232VRO3Y6BC3VIADFFY6WO X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Shawn Guo , Sascha Hauer , alsa-devel@alsa-project.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: If CPU is using soc-generic-dmaengine-pcm, Platform Component will be same as CPU Component. In this case, we can use CPU dlc for Platform dlc. This patch shares CPU dlc with Platform, and add comment. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/imx-spdif.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c index 4446fba755b9..ab978431ac98 100644 --- a/sound/soc/fsl/imx-spdif.c +++ b/sound/soc/fsl/imx-spdif.c @@ -26,15 +26,19 @@ static int imx_spdif_audio_probe(struct platform_device *pdev) } data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); - comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL); + comp = devm_kzalloc(&pdev->dev, 2 * sizeof(*comp), GFP_KERNEL); if (!data || !comp) { ret = -ENOMEM; goto end; } - data->dai.cpus = &comp[0]; + /* + * CPU == Platform + * platform is using soc-generic-dmaengine-pcm + */ + data->dai.cpus = + data->dai.platforms = &comp[0]; data->dai.codecs = &comp[1]; - data->dai.platforms = &comp[2]; data->dai.num_cpus = 1; data->dai.num_codecs = 1; @@ -45,7 +49,6 @@ static int imx_spdif_audio_probe(struct platform_device *pdev) data->dai.codecs->dai_name = "snd-soc-dummy-dai"; data->dai.codecs->name = "snd-soc-dummy"; data->dai.cpus->of_node = spdif_np; - data->dai.platforms->of_node = spdif_np; data->dai.playback_only = true; data->dai.capture_only = true; From patchwork Fri Apr 21 00:11:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 675893 Return-Path: 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 9EF8DC77B73 for ; Fri, 21 Apr 2023 00:13:04 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 819DCED5; Fri, 21 Apr 2023 02:12:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 819DCED5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1682035982; bh=3+VeNJgKqqdMKqRhG3e7UNX3+WqIJo3eD8l2xEMNUH4=; h=To:In-Reply-To:References:From:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=DcVA6nD2UIP1NRp0nbYE+3/9kwjhzJW3EJUZnMBY3PqSrzZCYh3+uwxUla1YGHCh8 j7OEa64u6GkAicvUkqH0kpTTSBz9N+AyfkJdQN9tOcUy4SPpQziPd096l7n9BXhhoL WdQmleTrLxs3qfN1QL8ouMrmzZczgtE0uJk7N0Cc= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5869FF80533; Fri, 21 Apr 2023 02:11:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8641DF80551; Fri, 21 Apr 2023 02:11:30 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2070f.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::70f]) (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 0D758F80533 for ; Fri, 21 Apr 2023 02:11:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0D758F80533 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=aRAT2cSm ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UP2m5sdWfsZqJ8zL5ZwudzEV57ZA/zJnk1oJWCjBC8nWV8BVRW+X+rfuFFPymZLG7cRrXbwdp/NtD3i2YVBcC4qFZ4lzfEdR64JQwitb375rddG6pkeRTNR+smp3Sb/aCFJ1W7mOzaMM0qmR8iqZvOSyXZLPBorZs0AQX/8wh1bko/t8dmJKo8cwZAOELx2FeecCa0fzml5WkLCjRpqXiWHT1k3WyM0N0vxWZCOmj1HVLW5Za6ZUBXsoSoFpagNIKeFuw9EgQletvImHwjgUPxT/4rLdqCvVlDukfKQVgoYCwt/+A7TM6TL0xhc/GK2DPDPrCVlD92fN7jxlNM/5tw== 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=y4JwbrpdLePau2RWXvqT/cQxygUeIn/NqAFH6mR2B60=; b=d9sPQQ9NBYEBA5i/z0KKARjvywuERQUyPJGQ0XBfG59MZMnzmd5yXowXn8zj7Yg7ognpO2Fxpl9IjKjWTNgZtvQE4s8wQQhVIZUB+rfs2s/qgmqYbS7ciGMJiXfIH85GGznArEDtrnPkztpM44zplE9Vxq4AmowahTaiGBZhEe3pxLnRmCFjGOgAdt+xVDZm6qjlNuDqjiP5U5Djhf8f5RuWI3eri60ba4YXFllBJ60vu3iFaPyC2GLZBdxQfuPRPHKQkv7OKr1S9xpLcClJhqK1HZKwHQqvIEcjaLTHqFc30dDfnCNd0dJbhmcxvHz+wDT6kd036ZwmA6113LHBJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=y4JwbrpdLePau2RWXvqT/cQxygUeIn/NqAFH6mR2B60=; b=aRAT2cSmMNj350cutAElhj4CZvvm6VoV2g2ynhbXVp+EKYdzT2s6PbRkxAYiwmVDDL2UdDNo/fKlcmnvbdtG+zWO9SH6fmQpQaR8F5/cgp4kROn5VEj4DDX0KEWTHNULWJsX6fMWaDD/fpiimqpFmuDsgJQPdxpEB38ZrtwxDqc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB11167.jpnprd01.prod.outlook.com (2603:1096:400:3f4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Fri, 21 Apr 2023 00:11:21 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840%5]) with mapi id 15.20.6319.022; Fri, 21 Apr 2023 00:11:21 +0000 Message-ID: <878remf61j.wl-kuninori.morimoto.gx@renesas.com> To: Mark Brown In-Reply-To: <87cz3yf631.wl-kuninori.morimoto.gx@renesas.com> References: <87cz3yf631.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [RFC][PATCH 3/4] ASoC: fsl: imx-audmix: cleanup platform which is using Generic DMA User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Fri, 21 Apr 2023 00:11:21 +0000 X-ClientProxiedBy: TYCP286CA0183.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:382::12) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB11167:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ae140ca-b6fa-46d0-811c-08db41fcefb1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: azHFXwDIKZ52tY/YHcqjbmbTcPryghu219XPZ3OPMXhi7Sq0CPmu/xT1UMBW1RJGZYM1RyNXrDPZLq02OTFNtJ5f1xh2z9G+lxz78viVSrJdfLJBKMQH8IVzPqn6Axdggeu3ccwaMZvFmTb4VLD4TGA1mwMDpb1MvVAVbQQIWtdlEhzDwR8Hc+IlJ9Bcqc0N9cd6HUPbztxKczhdsNG7UvmGeIkDnYcpeIk/+kMZKePNfkWWlGa5BDsrG7RPdpPMaNChHKiIAW3TxdmTcHdPvWjG8KOYiBHRX/ruDabktDF9/ho+X7QvgWstCi1aSnAs/4jy6B+FCWL+zshZMOVOCOzk3jXESitMYqsgaYfk/byM3h0kcVBzIKhaTXhhuMDaSqnghxXtORCmF/XpoPe2kTKlVoeYDyBTX2XCvlFnzAWLjp74mv+Svm96DURtG0bD1//JTMj9hAVixGF1qd0sTJXvsZMQvVc4f+tm1ao8Q6vdvOeDzWKtY88xjuco0ro9INn5mTjCE1B8wYXgOXKRGDLJhKivx03sLqYJqctqR8LJdjENt1Yup3uCrlhvyvQGCLJXvNE224DlF6AO29R8BczECCEIAdepAMBrddETRDRQjellyguPwXhn5rKl0t/7E3e6GlCbI2y1L1u3s96hRg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3PR01MB8426.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(39860400002)(346002)(136003)(451199021)(36756003)(2906002)(38100700002)(8936002)(8676002)(38350700002)(5660300002)(86362001)(6486002)(52116002)(6512007)(26005)(6506007)(54906003)(478600001)(2616005)(83380400001)(186003)(66476007)(66946007)(316002)(66556008)(41300700001)(4326008)(6916009)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z1bDyk22pjdFuWtWoe0fEvrxoSn/mOV0aAtdTLmzaDFqlJURVpcHO9weYmd/Rj1n0nDHBbfMnOERK55ZrE4vJ/Jtmquyn/68ZgB6X/aPbWJJ+kUgTmNEeX4a/dwur9jGvtL9UQqFAm6kkFRjZqN9axoFEGMrtEE5+C4KrVnVicOnXU92Bavsn6mJBATojhZxokqLj0m4D/6qmtXp3rATYGQwiD4dScOct1Qm64Oy0rwKMHKvVSgVYxUAvsgpiSsBMIPnGs+MClkTp7XAUORPc/avDBrzn5a/UqPIEI28fzyIpCFP+FWvW3l+NOBapZcajhryQmys528hIpdr8T7IeluaGy6V29lQTCyGJTyt2sF+7D+4Rt46STg3UK+K4chsYV2O5t0jeK8iaB3leEQF1COwyUgyZRSJOKsmHdFE6RFbChop0VIOuHJbruM4UwiEBEKd4wbCUK0EAGTYGzzkSDWaB2mHLK0RhZoPJrvnplO/0nlEFcGXV4sBySQVXV3kECohtvOdQM/gm1lHfQMhJymUM8XPE5gm2dAk7aj5NNViz5NbcVRIR2UqdisP778PXPRJjMzwxPtT3E0ljQTogJ5xKN9+O9AhZPX/6fRMzTW3k8iWiHAW9hVJv/TIw8OgBTyzWC0v3GkpkfLXuYzznPF8Wy5du++FZOvJtXfTmt2Dr01oQuETdZUGAtI8YscM19uP+RwpTEjqWJh4xnrtqKXVJdzSHj748pNHjCKrHJ2ir7jn2c6+gb/1pb5SRij8AAxPU7gvs+CwQkYUBLUUhYXhBewdZRCqf032E4IeHKodG14yPx02T3iJ6jBiAQmFr9j/foguMYlJu5K4yxR78SK7Rc3UnHqKO0FhwPoIoQ/k1BvfdZ9hkXQToeBE8rwDvxX98T+jkBX172KivnHVl/z7DbtEA8vfNAdKwdopabbGotqtqekkCtiH7xUVKwIj2USgfG/o+4waeHEnaQ60eIhvv3+GBsEk7M6iLEdxyotXAzAGyTAY13zNZeDhyURQVfw6cBOPrnfrqIxOwIkuB6+zfOnXg8XY/YqYToVjaQlN+2X4bu26fPqi/F6FAM+uNLlFLudFi7KyaOQre1GLCowh32m7HtXAmh8IMfgE9PI2VeVxTOmmuF7B7t0RncsHKisTTdNoYW98k0+vHf/cfjkPhvrfps/OcPKwqNQ8a9wXMY8FcyAq8YFOnQ8rFYbLbnSXyLXUQ5vs5d+u4xQiKNrzmkkLfp/VSbtAzUfsWee+YZT3oOp4B5OtWVZlo6CywyoOMYQecPuwPNkaOE/NXFXNrkIQGYPfOjU5/ypjTAR7LZq932boTDE0iUGgDO7ltoenvVY6wF5uRvz8CNNUGghjTdzM70enxmUuk2XhdkhPzYcak9pivmDStNyFHpPoqtNVyT5DYXNXQ3e0gCJ9NDyECECmNOxDnhr9V8+Bqb1WdBIIG9WPRRsUlbW++LHo8SD6YChrSkN4bCLNW+LPxtRI6tyFnwklmsSCgDm9ACagfkATqpiAwnx5te4V6lSuW+i3hs33e7bwAPRjAIkLv0tgC1nC/QmA4x8zk7VwalpBEpiV1Z7t4F4Lj996WQsRb26gy/s2OHMh1QT+ib0K7+FgQTfT6m7TJqTetlBYI1I= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ae140ca-b6fa-46d0-811c-08db41fcefb1 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2023 00:11:21.3500 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: a+YPqgezfatCefnZVy4rtJVMC3kLhD+U+HUmGEXAeFMMDz18Rk9LIceC83Mx2GV50ZSJumZ7E29rkyuZfwiET6qQKjfIIRdjRY3Jtcr8USXzGFShK2hKYQLQsNX/HjN5 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB11167 Message-ID-Hash: THIMCQN7PADSDKVNL2ZB65EYLRO377SI X-Message-ID-Hash: THIMCQN7PADSDKVNL2ZB65EYLRO377SI X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Shawn Guo , Sascha Hauer , alsa-devel@alsa-project.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: If CPU is using soc-generic-dmaengine-pcm, Platform Component will be same as CPU Component. In this case, we can use CPU dlc for Platform dlc. This patch shares CPU dlc with Platform, and add comment. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/imx-audmix.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/sound/soc/fsl/imx-audmix.c b/sound/soc/fsl/imx-audmix.c index 1292a845c424..cabef0de3891 100644 --- a/sound/soc/fsl/imx-audmix.c +++ b/sound/soc/fsl/imx-audmix.c @@ -207,8 +207,8 @@ static int imx_audmix_probe(struct platform_device *pdev) for (i = 0; i < num_dai; i++) { struct snd_soc_dai_link_component *dlc; - /* for CPU/Codec/Platform x 2 */ - dlc = devm_kcalloc(&pdev->dev, 6, sizeof(*dlc), GFP_KERNEL); + /* for CPU/Codec x 2 + Platform */ + dlc = devm_kcalloc(&pdev->dev, 5, sizeof(*dlc), GFP_KERNEL); if (!dlc) return -ENOMEM; @@ -238,9 +238,13 @@ static int imx_audmix_probe(struct platform_device *pdev) dai_name, "CPU-Capture"); } - priv->dai[i].cpus = &dlc[0]; - priv->dai[i].codecs = &dlc[1]; - priv->dai[i].platforms = &dlc[2]; + /* + * CPU == Platform + * platform is using soc-generic-dmaengine-pcm + */ + priv->dai[i].cpus = + priv->dai[i].platforms = &dlc[0]; + priv->dai[i].codecs = &dlc[1]; priv->dai[i].num_cpus = 1; priv->dai[i].num_codecs = 1; @@ -252,7 +256,6 @@ static int imx_audmix_probe(struct platform_device *pdev) priv->dai[i].codecs->name = "snd-soc-dummy"; priv->dai[i].cpus->of_node = args.np; priv->dai[i].cpus->dai_name = dev_name(&cpu_pdev->dev); - priv->dai[i].platforms->of_node = args.np; priv->dai[i].dynamic = 1; priv->dai[i].dpcm_playback = 1; priv->dai[i].dpcm_capture = (i == 0 ? 1 : 0); @@ -267,9 +270,9 @@ static int imx_audmix_probe(struct platform_device *pdev) be_cp = devm_kasprintf(&pdev->dev, GFP_KERNEL, "AUDMIX-Capture-%d", i); - priv->dai[num_dai + i].cpus = &dlc[3]; - priv->dai[num_dai + i].codecs = &dlc[4]; - priv->dai[num_dai + i].platforms = &dlc[5]; + priv->dai[num_dai + i].cpus = &dlc[2]; + priv->dai[num_dai + i].codecs = &dlc[3]; + priv->dai[num_dai + i].platforms = &dlc[4]; priv->dai[num_dai + i].num_cpus = 1; priv->dai[num_dai + i].num_codecs = 1; From patchwork Fri Apr 21 00:11:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 676913 Return-Path: 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 1940FC77B73 for ; Fri, 21 Apr 2023 00:13:28 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id CE1F4EB9; Fri, 21 Apr 2023 02:12:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CE1F4EB9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1682036005; bh=cPvplWlQ668mjPIj4/Es/3ellauhSUlTNkW6nEMCOXM=; h=To:In-Reply-To:References:From:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jbMwll95tzwtBe3XtNaTO472SBCEczzQfm/x4Qw1mB74wtFZdlQiwIIglAQvVtMIZ 5gXCCC7zqdP2r6ZrXdtIwgLcow7A5dtRmYj1MXrtszPMODm6J5pvTCWLHykUV21VmV vfRSMJ4OauGxprhqoKzrwMGLkmuf73IEV47QzUco= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id D8F35F80557; Fri, 21 Apr 2023 02:11:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 055FDF80558; Fri, 21 Apr 2023 02:11:37 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::715]) (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 EEC45F80551 for ; Fri, 21 Apr 2023 02:11:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EEC45F80551 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=HsrztZen ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jy/LU/sUxXFBxsPFQfWQIlB53h9WDXTL44gXRXNcMgGvXiEF9iigWuhqnSe9I3CIrxKLd6coY3LlnB0BrlcniPZ5tXV9rGhTxYGj0bpoibocEiZURYMh6SRAoBaPrWbWY+RPfgGswAC8VsUPkkfBErVjmM8vnpxkMZB3J3ZWnTyeEsoSEMZLAb7QcIwOT/kZyuf167sZi6imdmTqZabOJFtZK/68LMCcTu8f9vBjxQVr9RADBIy2Vo2shZjLvR8TmKaTh7FtBcXhO2nZkBd+XHofFHLPmo6xA+3MXEaTxXFu2KxattQw1Ex8kNl6BaNzVF1seC/OgKBpzejHa1axCQ== 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=V9ja7Y2Lq38JJv7FEfsLxMW81cxKcEouuHD30z02rto=; b=YXqgAziHC0IUS0bT4EnN3nUyy6j38hFds2yHz0nCmujlqMg2OV+ccwB/MEJLgn/p3Wtdf4clkL3qbnPuA3AK0osCB7MoFpX427+GFlhvUZ7PS6uSp8wWlH6rZcZvMUaFZ9uxVBahHdqA8GzGTeTajFicTRq/GCKeLSXfIJR5E5ZZjQhbN75MGdEKXwIb3bCWo4MsWrHx2DOAORT14JCjyc9bzDtzxS1mw5lcNN7wKkpj+7hpQjKjUG/9ZgGbDJAldvg8/o2vuCyw6amVfuG/qeN0aC2d595X3ecHKDK0vIDDWyy3yEADqvrXrXegpq9tjwXTvEquIFTUEyVBc5yWsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V9ja7Y2Lq38JJv7FEfsLxMW81cxKcEouuHD30z02rto=; b=HsrztZenj72D9LfGY2/7WDynKMax0PQ5POyHCqBCTqfXlvkI7lOMZDmcZD0tVWbf6rnsBI7JLMDr4GUdAB3CAw41Hc6ksY2evBbXQOR6ZwjnxNAXqmU3Dfm+O0Odn88fUAFIryM+8xio0j/EiQBWwtEYuiE7i0U7hocyID31o48= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB11167.jpnprd01.prod.outlook.com (2603:1096:400:3f4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Fri, 21 Apr 2023 00:11:31 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840%5]) with mapi id 15.20.6319.022; Fri, 21 Apr 2023 00:11:31 +0000 Message-ID: <877cu6f619.wl-kuninori.morimoto.gx@renesas.com> To: Mark Brown In-Reply-To: <87cz3yf631.wl-kuninori.morimoto.gx@renesas.com> References: <87cz3yf631.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [RFC][PATCH 4/4] ASoC: fsl: imx-audmix: remove dummy dai_link->platform User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Fri, 21 Apr 2023 00:11:31 +0000 X-ClientProxiedBy: TYBP286CA0015.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:ce::27) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB11167:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f84083c-4b68-4651-3cbd-08db41fcf5ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vAc4uOduYVdPpmJxxTxU2++ZfVk9X8pl9XDZkXy7/CbpBBIPFNmn/xCfo89AT7PiRgVvEiRM6tcwdJwb9NoERmr+vJBByTtG2jAB9rXqIwCbOpS6OA+c4V/F72m/zBcVr5se1TqQPrXnN5msl30CVuCiHQCMol9i+IlYYM/ZOhtCwlg8U07EQhPuVtY5w6hj5KvKAMkCDSVxcZYGplLxt8E6m+BrH52qA/UfazyF7y/dZdri1Clt1GGiQHZgGyxEy+mikO0iXoK2ZEkobDjDz57cLtfslwEQ0NtEF4fPnDZ3DJrwLA6Sk31PuHxBkhb3EW4qiIpMDfx/XUl+51Qfer3E8vMc7Tb5ldRWwq5MxUbXjikHp6Gf2z202obLPRWtGa0L7HHJzgyst9+Gp5e2UCj1mEJBHS/jCdL4zq2lHbPVl5hO/y5hNpHfiiCXQmUTaNcK3EiT+52dmCxQKRrYLZQ5/mUtaXfUG307IbrBvUsP7rxu8JPCXCYIaQAo00WlvU9fisOME3ada4KLx12n7kMw+BJExKEb15CoX8rLusR1CUi43ivdFYdkT767s5D5vPRPcegoE5Wupgmf9hJYm46FRMlVwC+Q0aS04ndlW2k= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3PR01MB8426.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(39860400002)(346002)(136003)(451199021)(36756003)(2906002)(38100700002)(8936002)(8676002)(38350700002)(5660300002)(86362001)(6486002)(52116002)(6512007)(26005)(6506007)(54906003)(478600001)(2616005)(83380400001)(186003)(66476007)(66946007)(316002)(66556008)(41300700001)(4326008)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mYha1rS4kKUkhDfSbIseroG4vd0dj9ylGwsOX8IzUzorsD+5Rzjy2pyv6mnXpUdvreB28wWuexw4aVB4PTnFz+DkScY1m69cWlBFCGm4dc4LXj3FYhKT8b+TV8/K8DnhV9tY+q0H1rU9s6gNf9EOJSKxE58SOCftL7bdQgQ3JtWI5F3cPFZiHjuIutsNjz+/fpLWIpQv3rwlu6x/lLonKVHsEZ+PPWQHc8pliky9Q4rsPmn5tTNfXfmfKCqCS5dMvrGItSidemzdvXANU0D/XFQmro8Z3kRS9oQnbZRSf1Cmz0zEJUu3e8pnAW0Cyiq2z7PDgd26itUDGcv+3ilkfWLBFJeCqTKEqO67C7x9Ac/LjreNDwxw0qO2nmVsMNy/oo5VlLoAAKUg5eBc4s646CjG0AUTRKjLtsEY9XHuBWE8v6O1qXu8t5r/SvNy/q/OTctN30p4UJagzxww9Mo6mmGtiKwK1vNdNbcYq2dr4Wl7OIJnI3Cdv+6ddLH/29FTlnvE/fIDms2bxPRLk2+kaU2WGE2ywES7zVyPlInsq4BAFIIRGUKDU7d3fYwKEwW6TS0vDcTwm8gDR6Eqsk6kr/fF/8mSPkWzp/X+YjzUYjTXCT7Efsij3OJppUFx8oX+OjDbvJwhKFplOatuoogJQ2zlk9YTAeyRqzXwy+GIQsNTvN98InE1crH8CRWkDRugQg1TzfVOKdu2RbEczT67qiO4lRNU/6JpdMz24NcA8vjv+MDqF/Je9uoaeRapCY3/yZiEL4voFLME2YsmoowK4fsjXILPFgPgyBh79pKjpT8oYerMxFnBpIYUOnVrpR73+i28kG56Q8qcS0KHv5rMM+m82HTBIEAPM3+H2K7VvibBiOJD8iq4Kv5iswZgx/w0aioXoqVDl4yFQEcTYIsoIj3Ivoq1Lvld0PZpUYxGZfizBIy5cD3c6mORW7BvH7iXgMLbsKuMsgCmq5yWUo88vM+NXcVWF63i/9+QMw5pCbWlcurHrJETpQN2j4PSHiRU9+25CnlcdRspuhY4n2aApASf/rXT99Pz9ParMaTwdE+Nvh1y8YRvxV4+7BcT81aQhLoylhjEm4ntlEyYkffPfNN+Rjf4/bj8c2Di/AG7LnQTZeeWwUKhnNxMewxiNT6mg0py+eLl9dczAHbsZTarb6s/S5VaZ5gfg5Qy+WU5iY01i7p2YB43lpsfNXpOMboqQ8NlmCJ/QEj8jcsRVlKu0GaTMtzc7VF9zvoDyziYN/obV56LO+6igO4I8jkHpAGS8BrjGWZrfWJpp6GJWCdxNy7wYeArdJuwhwOgElVrrb8muJAz27rLkR75htTUfSHUndAbukgJ3nfeT2qV9aiYkima503Apzq95cHLuCMFvtKPeLrsqQ2gr1LMvk1JVmyU9uAlGJlmuaRBhe8ROEwssNQyU+wrdoTognVgN+7awKDHVJZYittaM5sMZIRYo9phfsYpbNAIg8RzXAsi9Vnr/HhtTbK0rsUyJokp5KzYfE6RGNPtdVTgrMbQtGf43HjrFAE5o7w22SSJJeJkCwVlkfT1LaVXw6iA5MU8EtvUnHEsC6nUJMG5bd6hsALoPc10UwpwrtV1IfpuTMgrOxq4EaQTrh97KrGyW+mLjNqx5qQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f84083c-4b68-4651-3cbd-08db41fcf5ec X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2023 00:11:31.8230 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GLM9Mm5crDos3+87LCLxSQia3ogX6SW6NbKHY5arism+0aiRF/3E6xNQRk3Zwq/gt3lbUgUA9O8dVR20+bEmWmj4SZ6/OBweBF3pOkVQ/GwvNRFFT5nuWaYvYzkLrmI8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB11167 Message-ID-Hash: R7ZYXY4ASDT4MSVLXYVFZCDVRKRHF4DU X-Message-ID-Hash: R7ZYXY4ASDT4MSVLXYVFZCDVRKRHF4DU X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Shawn Guo , Sascha Hauer , alsa-devel@alsa-project.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Dummy dai_link->platform is not needed. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/imx-audmix.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sound/soc/fsl/imx-audmix.c b/sound/soc/fsl/imx-audmix.c index cabef0de3891..b2c5aca92c6b 100644 --- a/sound/soc/fsl/imx-audmix.c +++ b/sound/soc/fsl/imx-audmix.c @@ -207,8 +207,8 @@ static int imx_audmix_probe(struct platform_device *pdev) for (i = 0; i < num_dai; i++) { struct snd_soc_dai_link_component *dlc; - /* for CPU/Codec x 2 + Platform */ - dlc = devm_kcalloc(&pdev->dev, 5, sizeof(*dlc), GFP_KERNEL); + /* for CPU/Codec x 2 */ + dlc = devm_kcalloc(&pdev->dev, 4, sizeof(*dlc), GFP_KERNEL); if (!dlc) return -ENOMEM; @@ -272,18 +272,15 @@ static int imx_audmix_probe(struct platform_device *pdev) priv->dai[num_dai + i].cpus = &dlc[2]; priv->dai[num_dai + i].codecs = &dlc[3]; - priv->dai[num_dai + i].platforms = &dlc[4]; priv->dai[num_dai + i].num_cpus = 1; priv->dai[num_dai + i].num_codecs = 1; - priv->dai[num_dai + i].num_platforms = 1; priv->dai[num_dai + i].name = be_name; priv->dai[num_dai + i].codecs->dai_name = "snd-soc-dummy-dai"; priv->dai[num_dai + i].codecs->name = "snd-soc-dummy"; priv->dai[num_dai + i].cpus->of_node = audmix_np; priv->dai[num_dai + i].cpus->dai_name = be_name; - priv->dai[num_dai + i].platforms->name = "snd-soc-dummy"; priv->dai[num_dai + i].no_pcm = 1; priv->dai[num_dai + i].dpcm_playback = 1; priv->dai[num_dai + i].dpcm_capture = 1;