All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, Bard Liao <yung-chuan.liao@linux.intel.com>,
	broonie@kernel.org, Muralidhar Reddy <muralidhar.reddy@intel.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: [PATCH 02/10] ASoC: Intel: soc-acpi: Add entry for sof_es8336 in ADL match table
Date: Mon, 25 Jul 2022 14:49:01 -0500	[thread overview]
Message-ID: <20220725194909.145418-3-pierre-louis.bossart@linux.intel.com> (raw)
In-Reply-To: <20220725194909.145418-1-pierre-louis.bossart@linux.intel.com>

From: Muralidhar Reddy <muralidhar.reddy@intel.com>

Adding support for ES83x6 codec in ADL match table

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Muralidhar Reddy <muralidhar.reddy@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/hda/intel-dsp-config.c                      |  5 +++++
 sound/soc/intel/common/soc-acpi-intel-adl-match.c | 13 +++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c
index ec9cbb219bc1..d84ffdf47210 100644
--- a/sound/hda/intel-dsp-config.c
+++ b/sound/hda/intel-dsp-config.c
@@ -413,6 +413,11 @@ static const struct config_entry config_table[] = {
 		.device = 0x7a50,
 	},
 	/* Alderlake-P */
+	{
+		.flags = FLAG_SOF,
+		.device = 0x51c8,
+		.codec_hid =  &essx_83x6,
+	},
 	{
 		.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
 		.device = 0x51c8,
diff --git a/sound/soc/intel/common/soc-acpi-intel-adl-match.c b/sound/soc/intel/common/soc-acpi-intel-adl-match.c
index 6957d801f241..8fccd22b5953 100644
--- a/sound/soc/intel/common/soc-acpi-intel-adl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-adl-match.c
@@ -8,6 +8,11 @@
 #include <sound/soc-acpi.h>
 #include <sound/soc-acpi-intel-match.h>
 
+static const struct snd_soc_acpi_codecs essx_83x6 = {
+	.num_codecs = 3,
+	.codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
+};
+
 static const struct snd_soc_acpi_endpoint single_endpoint = {
 	.num = 0,
 	.aggregated = 0,
@@ -515,6 +520,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
 		.drv_name = "adl_cs35l41",
 		.sof_tplg_filename = "sof-adl-cs35l41.tplg",
 	},
+	{
+		.comp_ids = &essx_83x6,
+		.drv_name = "sof-essx8336",
+		.sof_tplg_filename = "sof-adl-es83x6", /* the tplg suffix is added at run time */
+		.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
+					SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
+					SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
+	},
 	{},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_machines);
-- 
2.34.1


  parent reply	other threads:[~2022-07-25 19:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-25 19:48 [PATCH 00/10] ASoC: Intel: machine driver updates for 5.20 Pierre-Louis Bossart
2022-07-25 19:49 ` [PATCH 01/10] ASoC: Intel: sof_sdw: add support for Dell SKU 0AF0 Pierre-Louis Bossart
2022-07-25 19:49 ` Pierre-Louis Bossart [this message]
2022-07-25 19:49 ` [PATCH 03/10] ASoC: Intel: sof_es8336: Fix GPIO quirks set via module option Pierre-Louis Bossart
2022-07-25 19:49 ` [PATCH 04/10] ASoC: Intel: sof_es8336: ignore GpioInt when looking for speaker/headset GPIO lines Pierre-Louis Bossart
2022-07-25 19:49 ` [PATCH 05/10] ASoC: Intel: sof_es8336: add support for HDMI_In capture Pierre-Louis Bossart
2022-07-25 19:49 ` [PATCH 06/10] ASoC: Intel: sof_es8336: reset the num_links during probe Pierre-Louis Bossart
2022-07-25 19:49 ` [PATCH 07/10] ASoC: Intel: sof_es8336: remove hard-coded SSP selection Pierre-Louis Bossart
2022-07-25 19:49 ` [PATCH 08/10] ASoC: Intel: sof_rt5682: Add support for mtl_mx98357_rt5682 Pierre-Louis Bossart
2022-07-25 19:49 ` [PATCH 09/10] ASoC: Intel: sof_rt5682: Perform quirk check first in card late probe Pierre-Louis Bossart
2022-07-25 19:49 ` [PATCH 10/10] ASoC: Intel: sof_nau8825: Move quirk check to the front in " Pierre-Louis Bossart
2022-07-26 11:30 ` [PATCH 00/10] ASoC: Intel: machine driver updates for 5.20 Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220725194909.145418-3-pierre-louis.bossart@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=muralidhar.reddy@intel.com \
    --cc=tiwai@suse.de \
    --cc=yung-chuan.liao@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.