Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp21053pxv; Tue, 13 Jul 2021 20:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmBRfi1YmpYEy2w5cK5V2zHNo3MwgiHSqcabCCp5AU3TjMCZz7UIFEwrcFPfFRMxnJWCmj X-Received: by 2002:a05:6402:2228:: with SMTP id cr8mr10313426edb.309.1626233040452; Tue, 13 Jul 2021 20:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626233040; cv=none; d=google.com; s=arc-20160816; b=vlvwWk6wgQyU9hjAhrGic1X/g+YvpWe/ZL5w6nQ8o4M9CN2OWb442jnA++635998jp Vpf5SDVoG9GxILrbwe3eMnJ/RjrGjzlN0kI9m0k4Pe5Ei8z1NTf+vFH2w7p19RB7nV7e 0Ph7vLVYSLRjha4XqbN76ZFIq2cPPievDNEk+HQSIVaNKJ+isMXvAjYD0yd5egGIbsgX OILPKYoKigG8ZXyckzCZ3zutA3tW+5hBhzBOd3W76WFFjjRo0EHoClPkruHDE7O3q4Rb mnDeanhZCaSRLYmReJtkv2C8FNmAp9ViQ0qjlxuEZmXsoCUgH2CYxwiwzYLEx99VzLdj 49eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=vrcF+WCg7ps7VrLGQgR1h2NOioesmF/iS2iO6xnAKbg=; b=cKnV9U433mzAMw43qguMbuIZqI0NJXKjmF2ECTH2t9IkFiO44eKV7nmijppAA+ukVD p3gxNC9rAxZNLw0Ns1kwX6+dBtnubXd/z69qNi0pnO+8vjajno1vdm5KOg4e9Bb9qTSc p/AiwvVdlDw+MKqMQa6uHI6J41oKChq4d2F4BUt9cLKZTK+Ey7ngPf2dr4fFDtIHz/sy N7hKySLg209wEZssxuVMepL2u4ILhea0TBhM4Jq+cO+DhKqp4Z+LxuTIv/P/ytE4fHcr 8n56SfG7hJqmptC+2iM8u0nFik40dZTt8NiUSFm9NzaeJP7QnkH9Begqc2nREB0ozUbJ vsbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si1080970edv.315.2021.07.13.20.23.38; Tue, 13 Jul 2021 20:24:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237810AbhGNDZY (ORCPT + 99 others); Tue, 13 Jul 2021 23:25:24 -0400 Received: from mga14.intel.com ([192.55.52.115]:9187 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237797AbhGNDZV (ORCPT ); Tue, 13 Jul 2021 23:25:21 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10044"; a="210095740" X-IronPort-AV: E=Sophos;i="5.84,238,1620716400"; d="scan'208";a="210095740" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 20:22:31 -0700 X-IronPort-AV: E=Sophos;i="5.84,238,1620716400"; d="scan'208";a="459818143" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 20:22:28 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, gregkh@linuxfoundation.org, srinivas.kandagatla@linaro.org, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, bard.liao@intel.com Subject: [PATCH 03/10] ASoC: soc-acpi: tgl: add table for SoundWire mockup devices Date: Wed, 14 Jul 2021 11:22:02 +0800 Message-Id: <20210714032209.11284-4-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210714032209.11284-1-yung-chuan.liao@linux.intel.com> References: <20210714032209.11284-1-yung-chuan.liao@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pierre-Louis Bossart Follow the same idea as for CNL/UpExtreme and add mockup test first. They will only be selected if the SSDT is modified to add such mockup devices. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Signed-off-by: Bard Liao --- .../intel/common/soc-acpi-intel-tgl-match.c | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c index 66595e3ab13f..e2488f0eaff8 100644 --- a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c @@ -8,6 +8,7 @@ #include #include +#include "soc-acpi-intel-sdw-mockup-match.h" static const struct snd_soc_acpi_codecs tgl_codecs = { .num_codecs = 1, @@ -351,6 +352,28 @@ EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_machines); /* this table is used when there is no I2S codec present */ struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = { + /* mockup tests need to be first */ + { + .link_mask = GENMASK(3, 0), + .links = sdw_mockup_headset_2amps_mic, + .drv_name = "sof_sdw", + .sof_fw_filename = "sof-tgl.ri", + .sof_tplg_filename = "sof-tgl-rt711-rt1308-rt715.tplg", + }, + { + .link_mask = BIT(0) | BIT(1) | BIT(3), + .links = sdw_mockup_headset_1amp_mic, + .drv_name = "sof_sdw", + .sof_fw_filename = "sof-tgl.ri", + .sof_tplg_filename = "sof-tgl-rt711-rt1308-mono-rt715.tplg", + }, + { + .link_mask = BIT(0) | BIT(1) | BIT(2), + .links = sdw_mockup_mic_headset_1amp, + .drv_name = "sof_sdw", + .sof_fw_filename = "sof-tgl.ri", + .sof_tplg_filename = "sof-tgl-rt715-rt711-rt1308-mono.tplg", + }, { .link_mask = 0x7, .links = tgl_sdw_rt711_link1_rt1308_link2_rt715_link0, -- 2.17.1