From patchwork Wed Aug 2 00:57:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13337463 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 D2B55EB64DD for ; Wed, 2 Aug 2023 01:02:01 +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 EE5AFDEE; Wed, 2 Aug 2023 03:01:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EE5AFDEE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690938120; bh=XoYDp1EwOo9Ng7NFdmIwngSeM6WuXRz/+1MouyvuuYs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=RJyoX6xfPwWW85Gy53wfJWK6SAEYGTENbnELpfUbsjb7ynRgb6tltTlZwvVbj3+zB MMZrLLE7Wvmhd2sXIf2smQOMAdo1rhIh7xtuh3LDKx4fbwwSzVXcSug4/5djL4H9sr 6QGgUUX52NdB5YjLmYYjY65NnHxeRbevlnxr8Z4s= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 24B70F8063C; Wed, 2 Aug 2023 02:57:35 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 6E489F80638; Wed, 2 Aug 2023 02:57:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 026ADF805A0; Wed, 2 Aug 2023 02:57:30 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2072f.outbound.protection.outlook.com [IPv6:2a01:111:f403:7010::72f]) (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 3FAF0F8055A for ; Wed, 2 Aug 2023 02:57:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3FAF0F8055A 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=ejblM9vj ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fC8L0ClWXokAYmRVod0IAdtmoJs66xHNtFClDBZxtvV5anZfwJmCe2rfV7Tcbf25JYHmiDQLt9afWt/PGASpCqh3wL4s37P5skNGWqB26VDojTT7tmDEWQfn7F/PT4kmvwrys1YhaIXjbutSADCAhVT74EeHI6NwSuNBASj19cemDzc9pSaJRQdMTkMNKuS70rBC0rsqB1G8yVU3psHMwxyQ/VC5Uqd15P6gQ/SUO3Rf6JRhpMDK75R6jZLx74LKsykghA9fYIyEF0h8N22OhF2RTiILRM+V5geXgArzVJbmwS5mvEaZjNKfJNU8c+gmDcw5d2SzBW3Z3LnIIfYURw== 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=1ByWVe4/WRQiC9WEzhMU2FX3yKBmb+HLj0PFpqKTgXM=; b=QX48LSEGlHNns8cMZFtV2eTZtzXaYCrDGuvCiwvvQ+dEQFy62fejGq4lED/gwjVWSwoLIk9LFp1JIAPyi7eFncA+ME3eWspKXCE3auTwceE+jpGcfc+qE32kMR0TJnq4iM4NIOx855BwbH+tF4k+O5+bcXO3k/0Hea4RnLlHg+teNc9c4JOD/Y6iTSKbNRVsl9QoWJsgaq6NwDefx6ytSFwIi80nQDXucQExlkbPzNCOsK6s+dtcm/g+TaIBzqibFolZQb/6JqKpajD7Knwv98JnHnYIaMIUz8lDdPZfsHeFqE/oyTCaRaTU7JMzaAkd7Pw7eRTZlAObtw8dejXmDg== 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=1ByWVe4/WRQiC9WEzhMU2FX3yKBmb+HLj0PFpqKTgXM=; b=ejblM9vj/uBj8jAdm3HNIFlQdsRa4r6ji03xt2LmtLqUtaYwfdkC+Q1LG4FZ6kdbMJ4QFeweVH4kj181ZUdM99W/u4NHRwaR1ZnEOTjrCh9TMfdFqOYV0HlU4AbmWoD6ZagKG6UOe3cg76490+YCSumJB2ZLfdhDF0LGEe8WC40= 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 TYCPR01MB7797.jpnprd01.prod.outlook.com (2603:1096:400:17b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.45; Wed, 2 Aug 2023 00:57:24 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5%3]) with mapi id 15.20.6631.045; Wed, 2 Aug 2023 00:57:24 +0000 Message-ID: <873512tg5n.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jaroslav Kysela , Liam Girdwood , Mark Brown , Takashi Iwai , Yingkun Meng Cc: alsa-devel@alsa-project.org Subject: [PATCH 30/38] ASoC: loongson: merge DAI call back functions into ops In-Reply-To: <87a5vauuzg.wl-kuninori.morimoto.gx@renesas.com> References: <87a5vauuzg.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Wed, 2 Aug 2023 00:57:24 +0000 X-ClientProxiedBy: TYAPR01CA0116.jpnprd01.prod.outlook.com (2603:1096:404:2a::32) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYCPR01MB7797:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ac9e017-911a-4c18-b080-08db92f36f76 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vRZpWgiQ7auoDbYAFf0W7zJIKm5RL+6AGNRJkZAfylBhZqLZ94I4myJduMyu0lNMUz1jPNU2Qd21KxXlQVbZwIl3t5z38qwUrT7pzpK07/u8RMu7AWd+vtpjpdp0vhrxOlJm4wx/OJTCQdY54oN0+9/BaSjfM6U22df+K8OKIf2JYMDPvPEvNkz2PO2XM2bk8v9/ncPIw6faKgvAbQ0NPH2l4IniNifXKPSiSzmnLz/S34mrqZgA0h2qnR7z79AY2zKALqXWGypDOE4tc4DIoOhqQ1fm9FN4BqA9GFdpx8ia8aTcmiLtM0+HiQA4MJBwpVwC/h/eBIIfSrdX/IkZzm2DgkvY3J5+DFSTdZ5Lt/Onx0rmnL/+F0eqEXb95HN1qkTNAzaVlg/IirRRPDmad3vOMCu1oPi4YtesDwjKLSYffvwVg6wB2shshcwWih9GFFiZfdFyiwSFj26vF9LXOOJ52S/hqJZyxs0oEoqVuANHiSAYs3EhBYpChRSJxMrLQYfHrj27qqVLa9IOIm2Rxc8p5CDzNH0UccU4dLvCIboEUGbb4gLontq645sTeJaCCd1khqYH0LQ/fL0AxqvZc8+BA9AlzSVp00DytZExhSolExqD7uuSh9ANinKcToSi 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)(396003)(376002)(346002)(366004)(136003)(39860400002)(451199021)(52116002)(6512007)(6486002)(26005)(6506007)(186003)(2616005)(110136005)(478600001)(83380400001)(36756003)(38100700002)(2906002)(5660300002)(86362001)(8676002)(8936002)(66556008)(41300700001)(66476007)(66946007)(316002)(38350700002)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: txvNhOJCQlm/UKp1YfFbtN0YqZW2kktCj6rAJwLjfRyntEtPDS2q/qxzM4dk/Xwy9GCMB6B7w5CwDd3bD+JXQA4ceu0BUdmV46wjxGbMZF7A1mF8+TNL8I7v4AAy5ptWf9+7k9J1mk9/Vm3+wot1hcqiP9hgXMIh53+aFwyOXfSKKLbtR57PLuU4yCE//FuqvcS6Bm2cNQT22RaDwMToA49klhC+TtTWvzY+Crii7uzA0o659BDmGJK+pjZ6c/pbLayQhdZU3HnROluo1MO7I+hLc5UZJC4Hokq0mIoc5H9aXsnK3umFA9vfa2s1/ga4bfGZJ1ag2Gq3CuudaLcqsgVxpUNcFlE3fHAVzWj2HoEXfFpRUVOmKeT4IfkDGYoRK5zmquQGJXbFVPTuUC2Z5fH+aEhrQa1PlSoHCyPVaAooYnob9x8e8laAb3ivbNWf0aiW0xl3KiUeZb2+8hyojiTSvdeI2TlCHfccnMtY8eNyjb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H+rc/K37BqVq4HMKg0iY/9aePWWQocn8ROsIzEGFr/yI4j+HgF+0kPkpFqJwn6grsS2Ku6KauqMeQo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ac9e017-911a-4c18-b080-08db92f36f76 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2023 00:57:24.8802 (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: M0twSobZ7k6nkPEC7r5slFq3edYxW4qluicbsEUiH4rbArRFINqxbkhf3NgFI/kAStxhLlneCmBkEcxP1AuEYNcXYjbvHoUNFAK3CFKzsPy4olGtCkWsWWWiVask8lGE X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB7797 Message-ID-Hash: EHZYVLIIDFKYVYCN7SIIFND6WUU7RHUW X-Message-ID-Hash: EHZYVLIIDFKYVYCN7SIIFND6WUU7RHUW 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 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: ALSA SoC merges DAI call backs into .ops. This patch merge thesse into one. Signed-off-by: Kuninori Morimoto --- sound/soc/loongson/loongson_i2s.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sound/soc/loongson/loongson_i2s.c b/sound/soc/loongson/loongson_i2s.c index b919f0fe8361..d45228a3a558 100644 --- a/sound/soc/loongson/loongson_i2s.c +++ b/sound/soc/loongson/loongson_i2s.c @@ -204,13 +204,6 @@ static int loongson_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) return 0; } -static const struct snd_soc_dai_ops loongson_i2s_dai_ops = { - .trigger = loongson_i2s_trigger, - .hw_params = loongson_i2s_hw_params, - .set_sysclk = loongson_i2s_set_dai_sysclk, - .set_fmt = loongson_i2s_set_fmt, -}; - static int loongson_i2s_dai_probe(struct snd_soc_dai *cpu_dai) { struct loongson_i2s *i2s = dev_get_drvdata(cpu_dai->dev); @@ -222,9 +215,16 @@ static int loongson_i2s_dai_probe(struct snd_soc_dai *cpu_dai) return 0; } +static const struct snd_soc_dai_ops loongson_i2s_dai_ops = { + .probe = loongson_i2s_dai_probe, + .trigger = loongson_i2s_trigger, + .hw_params = loongson_i2s_hw_params, + .set_sysclk = loongson_i2s_set_dai_sysclk, + .set_fmt = loongson_i2s_set_fmt, +}; + struct snd_soc_dai_driver loongson_i2s_dai = { .name = "loongson-i2s", - .probe = loongson_i2s_dai_probe, .playback = { .stream_name = "CPU-Playback", .channels_min = 1,