mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 18:42:55 +00:00
186 lines
5.9 KiB
Diff
186 lines
5.9 KiB
Diff
![]() |
From 5b2a2488785953e8f9c26b03ccb32e1dd563a359 Mon Sep 17 00:00:00 2001
|
||
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
||
|
Date: Wed, 7 Sep 2022 14:06:40 +0300
|
||
|
Subject: [PATCH 423/424] sound: backport firmware matches
|
||
|
|
||
|
Backpot of commits like https://github.com/torvalds/linux/commit/8a6cc0ded6d942e4a506c421c4d87a634bda6e75
|
||
|
from kernels 5.16+ into 5.15
|
||
|
|
||
|
Taken from patch by Vasily Vinogradov <v.vinogradov@aq.ru>
|
||
|
|
||
|
Co-authored-by: Vasily Vinogradov <v.vinogradov@aq.ru>
|
||
|
---
|
||
|
sound/hda/intel-dsp-config.c | 24 +++++++++----------
|
||
|
sound/soc/codecs/es8316.c | 1 +
|
||
|
.../intel/common/soc-acpi-intel-bxt-match.c | 6 +++++
|
||
|
.../intel/common/soc-acpi-intel-cml-match.c | 6 +++++
|
||
|
.../intel/common/soc-acpi-intel-glk-match.c | 7 +++++-
|
||
|
.../intel/common/soc-acpi-intel-jsl-match.c | 6 +++++
|
||
|
.../intel/common/soc-acpi-intel-tgl-match.c | 6 +++++
|
||
|
7 files changed, 43 insertions(+), 13 deletions(-)
|
||
|
|
||
|
diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c
|
||
|
index 4208fa8a4..f63114317 100644
|
||
|
--- a/sound/hda/intel-dsp-config.c
|
||
|
+++ b/sound/hda/intel-dsp-config.c
|
||
|
@@ -249,13 +249,13 @@ static const struct config_entry config_table[] = {
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
- .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
|
||
|
+ .flags = FLAG_SOF,
|
||
|
.device = 0x02c8,
|
||
|
+ .codec_hid = "ESSX8336",
|
||
|
},
|
||
|
{
|
||
|
- .flags = FLAG_SOF,
|
||
|
+ .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
|
||
|
.device = 0x02c8,
|
||
|
- .codec_hid = "ESSX8336",
|
||
|
},
|
||
|
/* Cometlake-H */
|
||
|
{
|
||
|
@@ -278,14 +278,14 @@ static const struct config_entry config_table[] = {
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
- .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
|
||
|
- .device = 0x06c8,
|
||
|
- },
|
||
|
- {
|
||
|
.flags = FLAG_SOF,
|
||
|
.device = 0x06c8,
|
||
|
.codec_hid = "ESSX8336",
|
||
|
},
|
||
|
+ {
|
||
|
+ .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
|
||
|
+ .device = 0x06c8,
|
||
|
+ },
|
||
|
#endif
|
||
|
|
||
|
/* Icelake */
|
||
|
@@ -334,17 +334,17 @@ static const struct config_entry config_table[] = {
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
- .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
|
||
|
+ .flags = FLAG_SOF,
|
||
|
.device = 0xa0c8,
|
||
|
+ .codec_hid = "ESSX8336",
|
||
|
},
|
||
|
{
|
||
|
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
|
||
|
- .device = 0x43c8,
|
||
|
+ .device = 0xa0c8,
|
||
|
},
|
||
|
{
|
||
|
- .flags = FLAG_SOF,
|
||
|
- .device = 0xa0c8,
|
||
|
- .codec_hid = "ESSX8336",
|
||
|
+ .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
|
||
|
+ .device = 0x43c8,
|
||
|
},
|
||
|
#endif
|
||
|
|
||
|
diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c
|
||
|
index 536fda946..9778c988e 100644
|
||
|
--- a/sound/soc/codecs/es8316.c
|
||
|
+++ b/sound/soc/codecs/es8316.c
|
||
|
@@ -878,6 +878,7 @@ MODULE_DEVICE_TABLE(of, es8316_of_match);
|
||
|
#ifdef CONFIG_ACPI
|
||
|
static const struct acpi_device_id es8316_acpi_match[] = {
|
||
|
{"ESSX8316", 0},
|
||
|
+ {"ESSX8336", 0},
|
||
|
{},
|
||
|
};
|
||
|
MODULE_DEVICE_TABLE(acpi, es8316_acpi_match);
|
||
|
diff --git a/sound/soc/intel/common/soc-acpi-intel-bxt-match.c b/sound/soc/intel/common/soc-acpi-intel-bxt-match.c
|
||
|
index 576407b5d..78cfdc48a 100644
|
||
|
--- a/sound/soc/intel/common/soc-acpi-intel-bxt-match.c
|
||
|
+++ b/sound/soc/intel/common/soc-acpi-intel-bxt-match.c
|
||
|
@@ -82,6 +82,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_bxt_machines[] = {
|
||
|
.sof_fw_filename = "sof-apl.ri",
|
||
|
.sof_tplg_filename = "sof-apl-tdf8532.tplg",
|
||
|
},
|
||
|
+ {
|
||
|
+ .id = "ESSX8336",
|
||
|
+ .drv_name = "sof-essx8336",
|
||
|
+ .sof_fw_filename = "sof-apl.ri",
|
||
|
+ .sof_tplg_filename = "sof-apl-es8336.tplg",
|
||
|
+ },
|
||
|
{},
|
||
|
};
|
||
|
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_bxt_machines);
|
||
|
diff --git a/sound/soc/intel/common/soc-acpi-intel-cml-match.c b/sound/soc/intel/common/soc-acpi-intel-cml-match.c
|
||
|
index b591c6fd1..f03fcc080 100644
|
||
|
--- a/sound/soc/intel/common/soc-acpi-intel-cml-match.c
|
||
|
+++ b/sound/soc/intel/common/soc-acpi-intel-cml-match.c
|
||
|
@@ -81,6 +81,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_cml_machines[] = {
|
||
|
.sof_fw_filename = "sof-cml.ri",
|
||
|
.sof_tplg_filename = "sof-cml-da7219-max98390.tplg",
|
||
|
},
|
||
|
+ {
|
||
|
+ .id = "ESSX8336",
|
||
|
+ .drv_name = "sof-essx8336",
|
||
|
+ .sof_fw_filename = "sof-cml.ri",
|
||
|
+ .sof_tplg_filename = "sof-cml-es8336.tplg",
|
||
|
+ },
|
||
|
{},
|
||
|
};
|
||
|
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cml_machines);
|
||
|
diff --git a/sound/soc/intel/common/soc-acpi-intel-glk-match.c b/sound/soc/intel/common/soc-acpi-intel-glk-match.c
|
||
|
index da1e15119..32fff9389 100644
|
||
|
--- a/sound/soc/intel/common/soc-acpi-intel-glk-match.c
|
||
|
+++ b/sound/soc/intel/common/soc-acpi-intel-glk-match.c
|
||
|
@@ -49,7 +49,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = {
|
||
|
.sof_fw_filename = "sof-glk.ri",
|
||
|
.sof_tplg_filename = "sof-glk-cs42l42.tplg",
|
||
|
},
|
||
|
-
|
||
|
+ {
|
||
|
+ .id = "ESSX8336",
|
||
|
+ .drv_name = "sof-essx8336",
|
||
|
+ .sof_fw_filename = "sof-glk.ri",
|
||
|
+ .sof_tplg_filename = "sof-glk-es8336.tplg",
|
||
|
+ },
|
||
|
{},
|
||
|
};
|
||
|
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_glk_machines);
|
||
|
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 69ff7286d..87923bcf9 100644
|
||
|
--- a/sound/soc/intel/common/soc-acpi-intel-jsl-match.c
|
||
|
+++ b/sound/soc/intel/common/soc-acpi-intel-jsl-match.c
|
||
|
@@ -81,6 +81,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = {
|
||
|
.quirk_data = &mx98360a_spk,
|
||
|
.sof_tplg_filename = "sof-jsl-cs42l42-mx98360a.tplg",
|
||
|
},
|
||
|
+ {
|
||
|
+ .id = "ESSX8336",
|
||
|
+ .drv_name = "sof-essx8336",
|
||
|
+ .sof_fw_filename = "sof-jsl.ri",
|
||
|
+ .sof_tplg_filename = "sof-jsl-es8336.tplg",
|
||
|
+ },
|
||
|
{},
|
||
|
};
|
||
|
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines);
|
||
|
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 c93d8019b..5f20e9d42 100644
|
||
|
--- a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c
|
||
|
+++ b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c
|
||
|
@@ -383,6 +383,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_machines[] = {
|
||
|
.sof_fw_filename = "sof-tgl.ri",
|
||
|
.sof_tplg_filename = "sof-tgl-rt1011-rt5682.tplg",
|
||
|
},
|
||
|
+ {
|
||
|
+ .id = "ESSX8336",
|
||
|
+ .drv_name = "sof-essx8336",
|
||
|
+ .sof_fw_filename = "sof-tgl.ri",
|
||
|
+ .sof_tplg_filename = "sof-tgl-es8336.tplg",
|
||
|
+ },
|
||
|
{},
|
||
|
};
|
||
|
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_machines);
|
||
|
--
|
||
|
2.35.2
|
||
|
|