Skip to content

Commit f1a5cb6

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_rt5682: board id cleanup for mtl boards
Since mtl chromebook is using DMI quirk for board config, changing the SSP port config of mtl_rt5682_def to RVP to simplify mtl board id and enumeration table. Reviewed-by: Bard Liao <[email protected]> Signed-off-by: Brent Lu <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 426c43a commit f1a5cb6

File tree

2 files changed

+1
-39
lines changed

2 files changed

+1
-39
lines changed

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -866,27 +866,13 @@ static const struct platform_device_id board_ids[] = {
866866
SOF_SSP_MASK_HDMI_CAPTURE(0x5)),
867867
},
868868
{
869-
.name = "mtl_mx98357_rt5682",
869+
.name = "mtl_rt5682_def",
870870
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
871871
SOF_SSP_PORT_CODEC(0) |
872872
SOF_SSP_PORT_AMP(1) |
873873
SOF_SSP_PORT_BT_OFFLOAD(2) |
874874
SOF_BT_OFFLOAD_PRESENT),
875875
},
876-
{
877-
.name = "mtl_mx98360_rt5682",
878-
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
879-
SOF_SSP_PORT_CODEC(0) |
880-
SOF_SSP_PORT_AMP(1)),
881-
},
882-
{
883-
.name = "mtl_rt5682_def",
884-
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
885-
SOF_SSP_PORT_CODEC(2) |
886-
SOF_SSP_PORT_AMP(0) |
887-
SOF_SSP_PORT_BT_OFFLOAD(1) |
888-
SOF_BT_OFFLOAD_PRESENT),
889-
},
890876
{ }
891877
};
892878
MODULE_DEVICE_TABLE(platform, board_ids);

sound/soc/intel/common/soc-acpi-intel-mtl-match.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@
1111
#include <sound/soc-acpi-intel-ssp-common.h>
1212
#include "soc-acpi-intel-sdw-mockup-match.h"
1313

14-
static const struct snd_soc_acpi_codecs mtl_max98357a_amp = {
15-
.num_codecs = 1,
16-
.codecs = {"MX98357A"}
17-
};
18-
19-
static const struct snd_soc_acpi_codecs mtl_max98360a_amp = {
20-
.num_codecs = 1,
21-
.codecs = {"MX98360A"}
22-
};
23-
2414
static const struct snd_soc_acpi_codecs mtl_rt5682_rt5682s_hp = {
2515
.num_codecs = 2,
2616
.codecs = {RT5682_ACPI_HID, RT5682S_ACPI_HID},
@@ -37,20 +27,6 @@ static const struct snd_soc_acpi_codecs mtl_lt6911_hdmi = {
3727
};
3828

3929
struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = {
40-
{
41-
.comp_ids = &mtl_rt5682_rt5682s_hp,
42-
.drv_name = "mtl_mx98357_rt5682",
43-
.machine_quirk = snd_soc_acpi_codec_list,
44-
.quirk_data = &mtl_max98357a_amp,
45-
.sof_tplg_filename = "sof-mtl-max98357a-rt5682.tplg",
46-
},
47-
{
48-
.comp_ids = &mtl_rt5682_rt5682s_hp,
49-
.drv_name = "mtl_mx98360_rt5682",
50-
.machine_quirk = snd_soc_acpi_codec_list,
51-
.quirk_data = &mtl_max98360a_amp,
52-
.sof_tplg_filename = "sof-mtl-max98360a-rt5682.tplg",
53-
},
5430
{
5531
.comp_ids = &mtl_essx_83x6,
5632
.drv_name = "mtl_es83x6_c1_h02",

0 commit comments

Comments
 (0)