From patchwork Tue Apr 18 00:24:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214891 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AD9DEC77B72 for ; Tue, 18 Apr 2023 00:27:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:References: In-Reply-To:To:From:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zqoQ1ecocCTX5Xwi4JYrkzWT8btEjfe+dN1NfoUWbOc=; b=Ua+aPSiFJwKw7A o2wDu3Nd6PEdwf+X1y8FUb4Fcou5Lwjfd/wjF/x8YNDOzas/tRpwJ8iX3veVQupH4JMl2zJ23BImD 8ve1u2KfSjkjDzjlteTV0s1q5/W3TbIRcQ1tYXcwqnAe1DPCu6kwxy7YqORQ7QrOmtHNBNRHMTg8x jnbUNnbguBaqknY295BZdfRCOeesVm7pWX1EsjKvWmYWvtCULWzrkoqtidV3Y9VHMPOJDSObioR+0 7NGIvskl6IvoZclMrqs5lPO/zBTGDd4yOPxm1FGcQiwGNafzDUocLloTkatfKGbXfDmW+8K6tWiHg XHMA9IB0P1PnaGdZmiHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1poZ9w-000UIK-0H; Tue, 18 Apr 2023 00:25:24 +0000 Received: from mail-os0jpn01on2107.outbound.protection.outlook.com ([40.107.113.107] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1poZ9p-000UFP-1z for linux-arm-kernel@lists.infradead.org; Tue, 18 Apr 2023 00:25:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SDChEHLQUGE56pg0HvjJtmqA0fVWbaaS/0ncmraIYhqSOAO1CRAkPw+dZ+FTgx7mn4VoomLQqlRgsdBIlTzWsQug3RMKS6PPZif3JyZ5w+XFMwuPoKqCo/KwZoB25l6iO8fB5icor0WULAlSEVc2M7EAP0uTEzkoXWjQScRJZV6GP6muL3XONIGOfryLRR+pMaThgmLd1mSiATcWOpfYUb1owg5Ed6Lj5Z9hof5EG64E8ISkZl3lPgoFpTJSrwX5u+YXUF6C6NO8G0FRYeqbNyNeU96GBkH96F+9GOJJYzYtX2dc7poiYx2fp0PJHuujAunEHwbEmPsmDaomMez7BQ== 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=HFtqxj9wVAMvKAU/U1S2aAG7wPeT2lGiGrBx+NcqQxE=; b=Oxs6/M8KTjIeqOUaHwrPSX+lgzk22VIpOu/tgAeicEA9CTxxdrRwdDjzeB+3s2Pvi3itTaFou/+4C98Gu5pvyBmCyjgFCVar7kDcSbmtTkEKRGsSRSFsT4wWR6BtJV4KnSh9tHjKkswP1SmNlduROB65I51S3wWRQzPPjaIdt1qshg04SJpAtvVtI0U9Un9IUwoBuZuq94hi0iT2El5G3hOdDmJ6JwdyB3mfHJeiUjt9DW3JQoJd6Suj92X52O4Ov1EGD9/ouR267EqLeaTzz1/bvKhyuXWAOHFjdMvR8QXvKrbw0Bj2GrH/BT/4zuhE94p5miuQQt47wZSJupM1Hw== 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=HFtqxj9wVAMvKAU/U1S2aAG7wPeT2lGiGrBx+NcqQxE=; b=Q1jJLSEkQ+DnBH/jciKUFXoW+S8mtvq9dWXCOrRMxkhzJsoDbMBpv6IY2yWNag83EDDjkkhVhKF4TgoorZKxZAo6HeyrwLwRAfDB1kpM6LnYJMyRJZnePIo2iSx7kfymTQpo+gl9MnXowLs2lyUONVF+r6rdNZL5S+Jc/1upMg4= 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 TYWPR01MB8855.jpnprd01.prod.outlook.com (2603:1096:400:17c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:24:55 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:24:55 +0000 Message-ID: <87sfcy2g15.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 08/11] ASoC: atmel: use asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:24:55 +0000 X-ClientProxiedBy: TYCP301CA0047.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:384::11) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB8855:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f5d4ff4-ef7b-45c9-74a1-08db3fa355c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xPKqbUcxerc7QMSLXSi1sBANV3Ez28RU9/Xmmph3aMQvIzTHqkL7uQkrSoJSXLsL395EhiacKChOu15MEzq+dH0VtUKi8AJrtG8M+Q9VZCcxGaRNW9vAcs5SDXWej/023yMT9oC3EYYzxGa5FOprl+OASzLwWR/JVWQHXTWBKjkiBlE6rjw7Ox+SplqLC+ZfMyOaqP6KIhMFCXtiEwi7o6SwjXNC5RrBwwHcWPQqgdhS3NasnACUrpOHEXOyYqpdXPzbhr4/UW8QX3283G09Vss5X3LNBFQVvFj0ZMNyHHHEq2srCMKwj6dJfKM0ZQ+Smcz1I67hKtW10je7W/LKACuxIZMgJSt98vHhiY8dJ8JQQN2iwG3usIPY0imc7Kbgt7R+Kae5i2O3GVD/YBHWV882kVnuLGmfvq/0xd06NLXg9quye7cyusSnpqlY6qd6YvEhczXpnaIGYWRA7uzRSQK1J5tuIYxbNJtsYc6tSHL3NCIyiogY2S3NsGG0zN6TTuI4F7XL8vLtZbjUhucYIhpideMn5cHndkkMAaNibINDkfeDc9Rd3TYCyaKGofKauLHJtYmR2XZIZ12TdW9vBhlhIK/FuvasZF9k3DWSJVpZ26XJxyMh01S5BZTLb46r 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)(136003)(346002)(396003)(39860400002)(366004)(451199021)(6486002)(478600001)(86362001)(2616005)(36756003)(26005)(83380400001)(6512007)(6506007)(186003)(38100700002)(38350700002)(52116002)(66556008)(66946007)(66476007)(316002)(2906002)(4326008)(6916009)(8936002)(5660300002)(8676002)(41300700001)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cGjM/WdiBLEkRbwhnOaPAvtepWmovl+7dFKajVTOA0woaMlXoVt7evPrnmXKWmfRkOzMO9Am5P8rav7oeCfsluxtrmPcHMVNMGQkIfM3o/aKY/tRnQNfTfPD+j+lTZEDEAX6x0moW4euHKLRDj9JkzKruqd/IIML6Rb9jeE7oS23/2gPo8FGm1FMU05rCCe+4sSD6Rs1np3WWhGeEXsfnJ2IEKboNEPYb688wWhvw3aeLWV1kr6wGk56MGiYl52sf5TO3NsqB/Jpfm/wPhdHoLAmfzXSish3at0Zc1fJeTLOqJO3sj+fH5QWidW/Dd9cZ3/CQyNBbOz/XOR2lZAxFDv3Y/q0vGlX1+pL8GCCyLLvgEerHamrV6aBZmGWkRVhcABiWZwBUc/IPtJVHjYkcZjcEpRcCzP8VNW5ArW2MBxOUi7U9zTMQVUNmYPgNIegwbAkvYhusQqF6si+WsBnVZ56yUMMl2oR/NM2+wmhFnbJs6hDW6aJhAXZAarOHQc8OrmiZq0K1cPCI79CNB4nRAOuPHLo22VTGCHtCqarjwgkdkUQQXiwig6fQvLcvM76EX8k1X72nmX3vtbiAobxZcKVa6uvz4K0kqFYt2nJutrKU4Gp9M81v/D0ntCxYpTRT7zjJQ/s5v/s7t0cbB3RWWra0dOWjQR2eFUWsgeQDKg8nnki8O99JJSomgkBx15vTg7twK3p8+JNlrWuQfpvGJAEtElH8ZXpKXy56FiCIPlkg5PUPnabMC55skVP1wVCJXV/OnUFcKKI4PbvkhsfPMJqWz0J7fXmQ62wty93tQeyjqsr5pD4tR6guPRoZQCrV34QmybHCwdJ9CFCHLWKqM7B9cVBz03pWXThJ2VjHuZqSPuJGodzmMwTpThPNWGGwq8x8ALIODHhkNGsQ80fhZwD67Dv4PMlXKdiJUDz03Xo5Zqzjej3/gwNk+WXLKLHC2A2SjkqfPfQ9OTykdqEfKIr2UDFARcMHJG28iEdyfEFAj2DtVa+htR63CvMp82yVhBbbdgor6NYAcwF8TkNLBBImOdiKjznBK6YtFffn9a1nhayOo+0qPLLVPOWXe51BVW8VUxu2FpANAKKvZ4B9OSQA5xiN7C0sG+uK632jH6ldFoMw+hI+n63XLhiM1o1pls4Qsc97qbbdaKcLNneVLVYdagA5jxZsBgsjKWK08urvsZ2U8EGyiqzeKOWIi7O7aCUAAsq6rvtKYo0fAU6sV+dCiSKdoTcX7YfGw6V+70vHo0V6l5KeUo6v2mj40IPXC8pWnlKys3llstjyye1HiJJzCj+RNVew4YcA4wF0ApgmQhckmC+QD95cNmEd1fz1CFZQR9qB/6dDM/5q2qHhcIugZvx7VshfNb8u1BqrrWjS8wOjRGaKC1FK8sptRVNcGc4ZsrSxl0r87DhEISdPGyvSin8OtUewHn4TOve1kUwB5IcKTAlWlQenqXcxsBSWn4dkEzSSeVzFh2hMDSoS5KKjMcNBKK7fT0PO1Rp0JI+KXV9HunMpVKROc/OS9ayWWJMl7Rox1zz+wsuiyEjzDGrQ1bOS/zvkwU19v9ijrMxA7P24djdekbncJXSFQDc4GSV9psV5RwiWYQVNWAQgsWj2k67rA07GQ178FzRJh8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f5d4ff4-ef7b-45c9-74a1-08db3fa355c0 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:24:55.6305 (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: MJxuMudvgWYEIwCBYZpIQCocXLVO9/pRsGH5kfaQ7S+IOsRzuR/Lo4aTsr78JUr73yXWywNQgJQaM0me2GFaJtAmSTPA6vvop1KO62upXaPykPl3FAgHfFyKpgQ9S6eJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8855 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230417_172517_661470_959B20CB X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Alexandre Belloni , Claudiu Beznea , alsa-devel@alsa-project.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto --- sound/soc/atmel/atmel-classd.c | 6 ++---- sound/soc/atmel/atmel-pdmic.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index 007ab746973d..0fe42543a47a 100644 --- a/sound/soc/atmel/atmel-classd.c +++ b/sound/soc/atmel/atmel-classd.c @@ -473,21 +473,19 @@ static int atmel_classd_asoc_card_init(struct device *dev, if (!dai_link) return -ENOMEM; - comp = devm_kzalloc(dev, 2 * sizeof(*comp), GFP_KERNEL); + comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); if (!comp) return -ENOMEM; dai_link->cpus = &comp[0]; - dai_link->codecs = &comp[1]; + dai_link->codecs = &asoc_dummy_dlc; dai_link->num_cpus = 1; dai_link->num_codecs = 1; dai_link->name = "CLASSD"; dai_link->stream_name = "CLASSD PCM"; - dai_link->codecs->dai_name = "snd-soc-dummy-dai"; dai_link->cpus->dai_name = dev_name(dev); - dai_link->codecs->name = "snd-soc-dummy"; card->dai_link = dai_link; card->num_links = 1; diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index 00c7b3a34ef5..133f17ae24a5 100644 --- a/sound/soc/atmel/atmel-pdmic.c +++ b/sound/soc/atmel/atmel-pdmic.c @@ -496,21 +496,19 @@ static int atmel_pdmic_asoc_card_init(struct device *dev, if (!dai_link) return -ENOMEM; - comp = devm_kzalloc(dev, 2 * sizeof(*comp), GFP_KERNEL); + comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); if (!comp) return -ENOMEM; dai_link->cpus = &comp[0]; - dai_link->codecs = &comp[1]; + dai_link->codecs = &asoc_dummy_dlc; dai_link->num_cpus = 1; dai_link->num_codecs = 1; dai_link->name = "PDMIC"; dai_link->stream_name = "PDMIC PCM"; - dai_link->codecs->dai_name = "snd-soc-dummy-dai"; dai_link->cpus->dai_name = dev_name(dev); - dai_link->codecs->name = "snd-soc-dummy"; card->dai_link = dai_link; card->num_links = 1;