[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220812114804.550809-1-sean.hong@quanta.corp-partner.google.com>
Date: Fri, 12 Aug 2022 19:48:04 +0800
From: Sean Hong <sean.hong@...nta.corp-partner.google.com>
To: perex@...ex.cz, tiwai@...e.com
Cc: cezary.rojewski@...el.com, pierre-louis.bossart@...ux.intel.com,
liam.r.girdwood@...ux.intel.com, peter.ujfalusi@...ux.intel.com,
yung-chuan.liao@...ux.intel.com, ranjani.sridharan@...ux.intel.com,
kai.vehmanen@...ux.intel.com, broonie@...nel.org,
brent.lu@...el.com, yong.zhi@...el.com,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
Sean Hong <sean.hong@...nta.corp-partner.google.com>
Subject: [PATCH] ASoC: Intel: sof_rt5682: Add support for jsl_rt5682_rt1019
This patch adds the driver data for rt5682s on SSP0 for ADL platform
Signed-off-by: Sean Hong <sean.hong@...nta.corp-partner.google.com>
---
sound/soc/intel/boards/sof_rt5682.c | 9 +++++++++
sound/soc/intel/common/soc-acpi-intel-jsl-match.c | 13 +++++++++++++
2 files changed, 22 insertions(+)
diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index 045965312245b..3a840f3a9f5d2 100644
--- a/sound/soc/intel/boards/sof_rt5682.c
+++ b/sound/soc/intel/boards/sof_rt5682.c
@@ -1100,6 +1100,15 @@ static const struct platform_device_id board_ids[] = {
SOF_RT5682_SSP_AMP(1) |
SOF_RT5682_NUM_HDMIDEV(4)),
},
+ {
+ .name = "jsl_rt5682_rt1019",
+ .driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
+ SOF_RT5682_MCLK_24MHZ |
+ SOF_RT5682_SSP_CODEC(0) |
+ SOF_SPEAKER_AMP_PRESENT |
+ SOF_RT1019_SPEAKER_AMP_PRESENT |
+ SOF_RT5682_SSP_AMP(1)),
+ },
{ }
};
MODULE_DEVICE_TABLE(platform, board_ids);
diff --git a/sound/soc/intel/common/soc-acpi-intel-jsl-match.c b/sound/soc/intel/common/soc-acpi-intel-jsl-match.c
index b95c4b2cda947..139d2468f5f70 100644
--- a/sound/soc/intel/common/soc-acpi-intel-jsl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-jsl-match.c
@@ -29,6 +29,11 @@ static const struct snd_soc_acpi_codecs rt1015p_spk = {
.codecs = {"RTL1015"}
};
+static struct snd_soc_acpi_codecs rt1019p_spk = {
+ .num_codecs = 1,
+ .codecs = {"RTL1019"}
+}
+
static const struct snd_soc_acpi_codecs mx98360a_spk = {
.num_codecs = 1,
.codecs = {"MX98360A"}
@@ -78,6 +83,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = {
.quirk_data = &mx98360a_spk,
.sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg",
},
+ {
+ .comp_ids = &rt5682_rt5682s_hp,
+ .drv_name = "jsl_rt5682_rt1019",
+ .sof_fw_filename = "sof-jsl.ri",
+ .machine_quirk = snd_soc_acpi_codec_list,
+ .quirk_data = &rt1019p_spk,
+ .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
+ },
{
.id = "10134242",
.drv_name = "jsl_cs4242_mx98360a",
--
2.25.1
Powered by blists - more mailing lists