Skip to content

Commit 76fb0d3

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_rt5682: add icl_rt5682_def for icl boards
Add the board config icl_rt5682_def to rt5682 machine driver for all icl boards using default SSP port allocation (headphone codec on SSP0). 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 207255f commit 76fb0d3

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,6 @@ static const struct dmi_system_id sof_rt5682_quirk_table[] = {
7676
SOF_SSP_PORT_CODEC(0) |
7777
SOF_SSP_PORT_AMP(1)),
7878
},
79-
{
80-
.callback = sof_rt5682_quirk_cb,
81-
.matches = {
82-
DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
83-
DMI_MATCH(DMI_PRODUCT_NAME, "Ice Lake Client"),
84-
},
85-
.driver_data = (void *)(SOF_RT5682_MCLK_EN |
86-
SOF_SSP_PORT_CODEC(0)),
87-
},
8879
{
8980
.callback = sof_rt5682_quirk_cb,
9081
.matches = {
@@ -808,6 +799,11 @@ static const struct platform_device_id board_ids[] = {
808799
SOF_SSP_PORT_CODEC(2) |
809800
SOF_SSP_PORT_AMP(1)),
810801
},
802+
{
803+
.name = "icl_rt5682_def",
804+
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
805+
SOF_SSP_PORT_CODEC(0)),
806+
},
811807
{
812808
.name = "cml_rt5682_def",
813809
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines[] = {
2929
},
3030
{
3131
.id = "10EC5682",
32-
.drv_name = "sof_rt5682",
32+
.drv_name = "icl_rt5682_def",
3333
.sof_tplg_filename = "sof-icl-rt5682.tplg",
3434
},
3535
{

0 commit comments

Comments
 (0)