From patchwork Thu May 9 16:34:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 796252 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 34C7BC25B10 for ; Thu, 9 May 2024 16:37:08 +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 7535CE76; Thu, 9 May 2024 18:36:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7535CE76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1715272626; bh=9BGjR6mSCozIHEiQeWRFjvpsgcKmMfBOW4mFQ/mtoe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=PE2qGPWBhLRAKD5A9gDYSSaPBQNJ+Ay5yA1tCIfTPfcTPNxKAApCd0eiloD4HBFrO yck7+2391VZi0BhpAKB1Q8ih73Z0XatKLMKDM49mj59yDH/L9EzfESJFUSNaGNRD+b Ia4/hgKbrh+ioGHYbBBxj1OEwodvEQy2grRDcIZI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id EDA4BF806A3; Thu, 9 May 2024 18:35:11 +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 53B2AF806A8; Thu, 9 May 2024 18:35:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F259DF80564; Thu, 9 May 2024 18:34:50 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 30CA1F80578 for ; Thu, 9 May 2024 18:34:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 30CA1F80578 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=kj/3K+NG DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715272479; x=1746808479; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9BGjR6mSCozIHEiQeWRFjvpsgcKmMfBOW4mFQ/mtoe4=; b=kj/3K+NGWBMxCfGCZzPmQDHNsmhQJb5N5Sl7WCHXzANWYvNRjrIQsBAk nG+Ux4LfcrOxXqZMtZkHc8wYZfAXO+MaTiuiBMi74vKJOaTDl/iNpoKiM Ir1A9de0349Q3w0QfCxOF5GLOx/YuNRJXErMJsMCso2e/XJhzx+SNcOI6 LLWpaPWyASQzJM3GMbj7eTrlKp56mq2RHLvPxi1qFU7hy+O+iPsq2XWbH jQQ7NiCaSDeosqY7fEQotQjUCrSzqxbPuml1jd8DSFAO2eBVMieKATCS3 9YojzK644B8xGetTGqMEJanHjyw6mH/49KbuavFcgs2QLzyVcTtauiN3P A==; X-CSE-ConnectionGUID: m5zvmyPWRhGD2O9uwpPhow== X-CSE-MsgGUID: 1h/C2V/NSceaCimFWCM1pQ== X-IronPort-AV: E=McAfee;i="6600,9927,11068"; a="15017578" X-IronPort-AV: E=Sophos;i="6.08,148,1712646000"; d="scan'208";a="15017578" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2024 09:34:31 -0700 X-CSE-ConnectionGUID: /uBmyZ/zRC+gq+0QVJrJyQ== X-CSE-MsgGUID: E+vMIiFFRyyi0iHKXxb4QQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,148,1712646000"; d="scan'208";a="33761027" Received: from ajunnare-mobl.amr.corp.intel.com (HELO pbossart-mobl6.intel.com) ([10.213.181.85]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2024 09:34:30 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, Brent Lu , Bard Liao , Pierre-Louis Bossart Subject: [PATCH 10/18] ASoC: Intel: sof_rt5682: use max_98373_dai_link function Date: Thu, 9 May 2024 11:34:10 -0500 Message-Id: <20240509163418.67746-11-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240509163418.67746-1-pierre-louis.bossart@linux.intel.com> References: <20240509163418.67746-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: EWWRIJ45T7GNRCFOOMK2DHT6FQB4SNZU X-Message-ID-Hash: EWWRIJ45T7GNRCFOOMK2DHT6FQB4SNZU X-MailFrom: pierre-louis.bossart@linux.intel.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.9 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: From: Brent Lu Use max_98373_dai_link() function to initialize dai link of maxim max98373 speaker amplifier. No functional change. Reviewed-by: Bard Liao Signed-off-by: Brent Lu Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/boards/sof_rt5682.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c index 3dc373855a58..6fc6eb0c5172 100644 --- a/sound/soc/intel/boards/sof_rt5682.c +++ b/sound/soc/intel/boards/sof_rt5682.c @@ -591,10 +591,7 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card, max_98360a_dai_link(ctx->amp_link); break; case CODEC_MAX98373: - ctx->amp_link->codecs = max_98373_components; - ctx->amp_link->num_codecs = ARRAY_SIZE(max_98373_components); - ctx->amp_link->init = max_98373_spk_codec_init; - ctx->amp_link->ops = &max_98373_ops; + max_98373_dai_link(dev, ctx->amp_link); break; case CODEC_MAX98390: max_98390_dai_link(dev, ctx->amp_link);