From patchwork Fri Feb 18 08:27:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent Lu X-Patchwork-Id: 12751077 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 1025CC433EF for ; Fri, 18 Feb 2022 08:31:52 +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 8F0A91758; Fri, 18 Feb 2022 09:31:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8F0A91758 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1645173110; bh=X4dKIlW+L1OU06c5P3qQy/8tIznfj0CKwjIgQAnzeTI=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=e+X0GpmD4e8EpUue3+I6LohvTV/1T60ilfDJMlMgn4r2fRRcjy/znP874+g7s+Vd7 bcNUgCqycaQtL+paxu037EIeyDwreSjpqDNEUO6ozVXJweluh2yXSDoEBtpdGQs0Zd IIQmkK224ZpmtG3CrwOH3+e155lKPEJyQMy2d1T0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1BD05F800FF; Fri, 18 Feb 2022 09:31:00 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CE358F8013C; Fri, 18 Feb 2022 09:30:57 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 52418F800FF; Fri, 18 Feb 2022 09:30:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 52418F800FF Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gmxmtjJ4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645173052; x=1676709052; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=X4dKIlW+L1OU06c5P3qQy/8tIznfj0CKwjIgQAnzeTI=; b=gmxmtjJ4NixBi5FtG9ZjGEi4uLn139Q0RZfSP3bmlnjL7QOot7w6ZcHW p9Tf+jNm0qU2/vPeA9ySLWmoC/MKneqikdZ0HHHhRbdrxdwx+ybcsDHQf i5PN0tpgXW5i+ylfkaI0TgK+l90jFyHZEoif+gXWXD/zArRrvimUXhKBX kt1DVK3yY0ufZiZWcQil2jgEcqq1Ql9gfHknWaSlGIIVjmMynsfvSsdeG ORC8DqcEmmHUsO31Q3JdK54ObYRrZM/URdhum6e6g7qaP0ak3I58oXmZL UOP/AKGqh0cwDMrKvmlWOaccxHqSfG4+uOMqSLQzbaIXE+JfqAs7jGZ9T g==; X-IronPort-AV: E=McAfee;i="6200,9189,10261"; a="231064342" X-IronPort-AV: E=Sophos;i="5.88,378,1635231600"; d="scan'208";a="231064342" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2022 00:30:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,378,1635231600"; d="scan'208";a="503921065" Received: from brentlu-brix.itwn.intel.com ([10.5.253.25]) by orsmga002.jf.intel.com with ESMTP; 18 Feb 2022 00:30:42 -0800 From: Brent Lu To: alsa-devel@alsa-project.org Subject: [PATCH] ASoC: SOF: Intel: Add topology overwrite for Felwinter Date: Fri, 18 Feb 2022 16:27:41 +0800 Message-Id: <20220218082741.1707209-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 , 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", + }, {} };