Skip to content

Commit fe18a4b

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_da7219: add mtl_da7219_def for mtl boards
Add the board config mtl_da7219_def to da7219 machine driver for all mtl boards using default SSP port allocation (headphone codec on SSP2, speaker amplifiers on SSP0, and BT offload on SSP1). 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-9-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent c3d1818 commit fe18a4b

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

sound/soc/intel/boards/sof_da7219.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,14 @@ static const struct platform_device_id board_ids[] = {
398398
SOF_SSP_PORT_BT_OFFLOAD(2) |
399399
SOF_BT_OFFLOAD_PRESENT),
400400
},
401+
{
402+
.name = "mtl_da7219_def",
403+
.driver_data = (kernel_ulong_t)(SOF_DA7219_MCLK_EN |
404+
SOF_SSP_PORT_CODEC(2) |
405+
SOF_SSP_PORT_AMP(0) |
406+
SOF_SSP_PORT_BT_OFFLOAD(1) |
407+
SOF_BT_OFFLOAD_PRESENT),
408+
},
401409
{ }
402410
};
403411
MODULE_DEVICE_TABLE(platform, board_ids);

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = {
7676
.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_AMP_NAME |
7777
SND_SOC_ACPI_TPLG_INTEL_CODEC_NAME,
7878
},
79+
{
80+
.id = DA7219_ACPI_HID,
81+
.drv_name = "mtl_da7219_def",
82+
.sof_tplg_filename = "sof-mtl", /* the tplg suffix is added at run time */
83+
.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_AMP_NAME |
84+
SND_SOC_ACPI_TPLG_INTEL_CODEC_NAME,
85+
},
7986
{
8087
.id = NAU8825_ACPI_HID,
8188
.drv_name = "mtl_nau8825_def",

0 commit comments

Comments
 (0)