From patchwork Fri Apr 26 15:25:09 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: 792401 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 7361BC4345F for ; Fri, 26 Apr 2024 15:28:31 +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 BCCAC1925; Fri, 26 Apr 2024 17:28:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BCCAC1925 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1714145309; bh=MbT7M4ySziynJAlOypts7f8IrwqccgLvm/YDOfB9l+U=; 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=uxZTYSysq4WF+uzVtEZMzUW+7eO4JcooJUznko4fpUTHHNdInmD2ivr459C/AI3t8 Ap10aIduFptUqLJ5tB/z3GTJEUMHdjplbAhlVjTx8+t2Gm5vp3YADoMe6ZQEhTClx2 MiyHMl25NUdEnpMjuQpoJvyS1AOpiKJZrW/lzChU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B63B5F805CA; Fri, 26 Apr 2024 17:26:18 +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 9AA46F806D2; Fri, 26 Apr 2024 17:26:18 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 722A7F8057A; Fri, 26 Apr 2024 17:25:57 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 84908F8003C for ; Fri, 26 Apr 2024 17:25:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 84908F8003C 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=bNiM66OT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714145145; x=1745681145; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MbT7M4ySziynJAlOypts7f8IrwqccgLvm/YDOfB9l+U=; b=bNiM66OTuWEb2HKoRUFD2MSxXJuPXDHps7EO5sive3xlTYhNpQ0oiKDY ci0RhN9T/rwhY/i659rZDM3B5pKA1+7COkc/mzdOTUL8pR0a4f67jdyI9 Wo6wOQubOoqlC10a0S31utzj80XKT/q4wzWCfiITC5rCR1pjXfTihrAuz ATh66y5CEQ4y9CqFQql5vJ+h1fr/KNExCRP6o6aaSF1XK2Ecsrrr2jZsX qAI4ftvnk5HGn8R9NRJFSeoi5yhHYjAN9Kgln3uFn19SD9ltIjajTxWSg YHoE9Un6XX3gF1mHPTg/QK8OqEfKCheqfaLeteRzm5x7cxYVtYUE/YobY g==; X-CSE-ConnectionGUID: J+5l1YnuQLaIqfoEdhPoQQ== X-CSE-MsgGUID: L+/Z1Ge5SDKfRSfViBuO6g== X-IronPort-AV: E=McAfee;i="6600,9927,11056"; a="21291281" X-IronPort-AV: E=Sophos;i="6.07,232,1708416000"; d="scan'208";a="21291281" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 08:25:40 -0700 X-CSE-ConnectionGUID: CbqReKXiTheIn/vQXU0kWA== X-CSE-MsgGUID: PufFyFzFRlOqSwmck007Zg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,232,1708416000"; d="scan'208";a="30259539" Received: from atarkhan-mobl2.amr.corp.intel.com (HELO pbossart-mobl6.intel.com) ([10.212.33.33]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 08:25:40 -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 03/23] ASoC: Intel: sof_da7219: support MAX98390 Date: Fri, 26 Apr 2024 10:25:09 -0500 Message-Id: <20240426152529.38345-4-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240426152529.38345-1-pierre-louis.bossart@linux.intel.com> References: <20240426152529.38345-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: ZMOLZDSHVJ2CRJ46VW4V2JUPETNCMS42 X-Message-ID-Hash: ZMOLZDSHVJ2CRJ46VW4V2JUPETNCMS42 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 Add support to Maxim MAX98390 speaker amplifier. Reviewed-by: Bard Liao Signed-off-by: Brent Lu Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/boards/Kconfig | 1 + sound/soc/intel/boards/sof_da7219.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/sound/soc/intel/boards/Kconfig b/sound/soc/intel/boards/Kconfig index b122b8aedd9a..fd1f46fad5eb 100644 --- a/sound/soc/intel/boards/Kconfig +++ b/sound/soc/intel/boards/Kconfig @@ -614,6 +614,7 @@ config SND_SOC_INTEL_SOF_DA7219_MACH select SND_SOC_DA7219 select SND_SOC_MAX98357A select SND_SOC_MAX98373_I2C + select SND_SOC_MAX98390 select SND_SOC_DMIC select SND_SOC_INTEL_SOF_BOARD_HELPERS select SND_SOC_INTEL_SOF_MAXIM_COMMON diff --git a/sound/soc/intel/boards/sof_da7219.c b/sound/soc/intel/boards/sof_da7219.c index cbbce07ec5f7..de5b0a8b5b8c 100644 --- a/sound/soc/intel/boards/sof_da7219.c +++ b/sound/soc/intel/boards/sof_da7219.c @@ -281,6 +281,9 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card, return -EINVAL; } break; + case CODEC_MAX98390: + max_98390_dai_link(dev, ctx->amp_link); + break; default: dev_err(dev, "invalid amp type %d\n", ctx->amp_type); return -EINVAL; @@ -352,6 +355,9 @@ static int audio_probe(struct platform_device *pdev) case CODEC_MAX98373: max_98373_set_codec_conf(&card_da7219); break; + case CODEC_MAX98390: + max_98390_set_codec_conf(&pdev->dev, &card_da7219); + break; case CODEC_MAX98360A: case CODEC_NONE: /* no codec conf required */