Skip to content

Commit 36a6210

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_da7219: mach cleanup for adl boards
Add a common entry in enumeration table for all da7219 boards with/without speaker amplifier. All other adl_da7219_def entries become redundant so get removed. Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Brent Lu <brent.lu@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20240411220347.131267-7-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 744866d commit 36a6210

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

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

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,6 @@ static const struct snd_soc_acpi_codecs adl_max98357a_amp = {
453453
.codecs = {"MX98357A"}
454454
};
455455

456-
static const struct snd_soc_acpi_codecs adl_max98360a_amp = {
457-
.num_codecs = 1,
458-
.codecs = {"MX98360A"}
459-
};
460-
461456
static const struct snd_soc_acpi_codecs adl_rt5682_rt5682s_hp = {
462457
.num_codecs = 2,
463458
.codecs = {RT5682_ACPI_HID, RT5682S_ACPI_HID},
@@ -510,13 +505,6 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
510505
SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
511506
SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
512507
},
513-
{
514-
.id = "DLGS7219",
515-
.drv_name = "adl_da7219_def",
516-
.machine_quirk = snd_soc_acpi_codec_list,
517-
.quirk_data = &adl_max98360a_amp,
518-
.sof_tplg_filename = "sof-adl-max98360a-da7219.tplg",
519-
},
520508
/* place boards for each headphone codec: sof driver will complete the
521509
* tplg name and machine driver will detect the amp type
522510
*/
@@ -527,6 +515,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
527515
.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_AMP_NAME |
528516
SND_SOC_ACPI_TPLG_INTEL_CODEC_NAME,
529517
},
518+
{
519+
.id = DA7219_ACPI_HID,
520+
.drv_name = "adl_da7219_def",
521+
.sof_tplg_filename = "sof-adl", /* the tplg suffix is added at run time */
522+
.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_AMP_NAME |
523+
SND_SOC_ACPI_TPLG_INTEL_CODEC_NAME,
524+
},
530525
{
531526
.id = NAU8825_ACPI_HID,
532527
.drv_name = "adl_nau8825_def",

0 commit comments

Comments
 (0)