From patchwork Mon Feb 21 06:40:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent Lu X-Patchwork-Id: 544454 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 05B17C433F5 for ; Mon, 21 Feb 2022 06:44:17 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 35445167A; Mon, 21 Feb 2022 07:43:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 35445167A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1645425856; bh=Ef2HXbSqDvS9Glrw6CB1QeV3AdDoUJ86lJQ/slSWZXw=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=qoNvb8bJHgXYxA13SuK0af83ylRiqhZOog18RDRkuy6YL1wfbbhc9pD/Dee+qd3+q 0gsOMhGLnp1typsiG9JnDgzbzhztXinvNgFokoOhdc6XOjdSE43PeW7Ohx+Iiewe4H RDFhEu2oIFjlVT1VQ2EYRvqpio2mUn8drHNorso4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D142DF80139; Mon, 21 Feb 2022 07:43:25 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E7ACDF8013D; Mon, 21 Feb 2022 07:43:24 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 011CDF800FA; Mon, 21 Feb 2022 07:43:15 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 011CDF800FA Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="g+tD6cRl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645425799; x=1676961799; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ef2HXbSqDvS9Glrw6CB1QeV3AdDoUJ86lJQ/slSWZXw=; b=g+tD6cRlV0D4rlVHrI7P/QKj7ONhELRDtN07iS/I5mZJau4CTX9HkVdH C/F4YUyxIx2LIXgSflq2fiDc6drwmFg+0SYy+aYreAETnD2GRC/29dgdY lAXCXSl+Tcnx8j6P7m+Jz5eicIcwSy+0Xg2WUsvbNKIe7V9fvX99EOPFm yvPkHvj1+NbGxJbERqhHpgVR0zRt7U384FtTkDRzz27W187BIBhAHnspc jZiZN82ofiqwCtlYwesjKZwGe4y0d0pDK7vwgxV+RFopTTxHZ7uR9PT83 C+tcJpAd7KGoGRWN7wVb/G6Er6ejZWPoLOL5JgMXG+ccpwkMGKcX+97Ii Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10264"; a="337878399" X-IronPort-AV: E=Sophos;i="5.88,385,1635231600"; d="scan'208";a="337878399" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2022 22:43:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,385,1635231600"; d="scan'208";a="531734085" Received: from brentlu-brix.itwn.intel.com ([10.5.253.25]) by orsmga007.jf.intel.com with ESMTP; 20 Feb 2022 22:43:10 -0800 From: Brent Lu To: alsa-devel@alsa-project.org Subject: [PATCH v2] ASoC: SOF: Intel: Add topology overwrite for Felwinter Date: Mon, 21 Feb 2022 14:40:05 +0800 Message-Id: <20220221064005.1752500-1-brent.lu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: Ajye Huang , Kai Vehmanen , Liam Girdwood , linux-kernel@vger.kernel.org, Takashi Iwai , Ranjani Sridharan , Pierre-Louis Bossart , Mark Brown , Bard Liao , Curtis Malainey , Daniel Baluta , Brent Lu , sound-open-firmware@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Ajye Huang The Felwinter uses four max98360a amplifiers on corresponding CH0~CH3. There are four amps on the board connecting to headphone to SSP0 port, amp to SSP1,and the DAI format would be DSP_A,8-slots, 32 bit slot-width. CH0: L(Woofer), CH1:R(Woofer), CH2:L(Tweeter), CH3:R(Tweeter) Signed-off-by: Ajye Huang Signed-off-by: Brent Lu Reviewed-by: Curtis Malainey Reviewed-by: Bard Liao Reviewed-by: Pierre-Louis Bossart --- sound/soc/sof/sof-pci-dev.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/sof/sof-pci-dev.c b/sound/soc/sof/sof-pci-dev.c index 20c6ca37dbc4..61f2afd54c3e 100644 --- a/sound/soc/sof/sof-pci-dev.c +++ b/sound/soc/sof/sof-pci-dev.c @@ -67,6 +67,14 @@ static const struct dmi_system_id sof_tplg_table[] = { }, .driver_data = "sof-adl-max98390-ssp2-rt5682-ssp0.tplg", }, + { + .callback = sof_tplg_cb, + .matches = { + DMI_MATCH(DMI_PRODUCT_FAMILY, "Google_Brya"), + DMI_MATCH(DMI_OEM_STRING, "AUDIO_AMP-MAX98360_ALC5682VS_I2S_2WAY"), + }, + .driver_data = "sof-adl-max98360a-rt5682-2way.tplg", + }, {} };