Commit 615d903a authored by Mark Brown's avatar Mark Brown

ASoC: Intel: machine driver updates

Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:

Minor cleanups for machine drivers.
parents 138a4e2a 70a6b66d
...@@ -353,7 +353,7 @@ static const struct platform_device_id board_ids[] = { ...@@ -353,7 +353,7 @@ static const struct platform_device_id board_ids[] = {
SOF_NAU8825_NUM_HDMIDEV(4)), SOF_NAU8825_NUM_HDMIDEV(4)),
}, },
{ {
.name = "adl_max98373_8825", .name = "adl_nau8825_def",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) | .driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
SOF_NAU8825_SSP_AMP(1) | SOF_NAU8825_SSP_AMP(1) |
SOF_NAU8825_NUM_HDMIDEV(4) | SOF_NAU8825_NUM_HDMIDEV(4) |
...@@ -361,49 +361,7 @@ static const struct platform_device_id board_ids[] = { ...@@ -361,49 +361,7 @@ static const struct platform_device_id board_ids[] = {
SOF_SSP_BT_OFFLOAD_PRESENT), SOF_SSP_BT_OFFLOAD_PRESENT),
}, },
{ {
/* The limitation of length of char array, shorten the name */ .name = "rpl_nau8825_def",
.name = "adl_mx98360a_8825",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
SOF_NAU8825_SSP_AMP(1) |
SOF_NAU8825_NUM_HDMIDEV(4) |
SOF_BT_OFFLOAD_SSP(2) |
SOF_SSP_BT_OFFLOAD_PRESENT),
},
{
.name = "adl_rt1015p_8825",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
SOF_NAU8825_SSP_AMP(1) |
SOF_NAU8825_NUM_HDMIDEV(4) |
SOF_BT_OFFLOAD_SSP(2) |
SOF_SSP_BT_OFFLOAD_PRESENT),
},
{
.name = "adl_nau8318_8825",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
SOF_NAU8825_SSP_AMP(1) |
SOF_NAU8825_NUM_HDMIDEV(4) |
SOF_BT_OFFLOAD_SSP(2) |
SOF_SSP_BT_OFFLOAD_PRESENT),
},
{
.name = "rpl_max98373_8825",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
SOF_NAU8825_SSP_AMP(1) |
SOF_NAU8825_NUM_HDMIDEV(4) |
SOF_BT_OFFLOAD_SSP(2) |
SOF_SSP_BT_OFFLOAD_PRESENT),
},
{
.name = "rpl_mx98360a_8825",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
SOF_NAU8825_SSP_AMP(1) |
SOF_NAU8825_NUM_HDMIDEV(4) |
SOF_BT_OFFLOAD_SSP(2) |
SOF_SSP_BT_OFFLOAD_PRESENT),
},
{
.name = "rpl_nau8318_8825",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) | .driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
SOF_NAU8825_SSP_AMP(1) | SOF_NAU8825_SSP_AMP(1) |
SOF_NAU8825_NUM_HDMIDEV(4) | SOF_NAU8825_NUM_HDMIDEV(4) |
......
...@@ -176,6 +176,7 @@ int sof_sdw_rt_sdca_jack_exit(struct snd_soc_card *card, struct snd_soc_dai_link ...@@ -176,6 +176,7 @@ int sof_sdw_rt_sdca_jack_exit(struct snd_soc_card *card, struct snd_soc_dai_link
device_remove_software_node(ctx->headset_codec_dev); device_remove_software_node(ctx->headset_codec_dev);
put_device(ctx->headset_codec_dev); put_device(ctx->headset_codec_dev);
ctx->headset_codec_dev = NULL;
return 0; return 0;
} }
...@@ -191,10 +192,10 @@ int sof_sdw_rt_sdca_jack_init(struct snd_soc_card *card, ...@@ -191,10 +192,10 @@ int sof_sdw_rt_sdca_jack_init(struct snd_soc_card *card,
int ret; int ret;
/* /*
* headset should be initialized once. * Jack detection should be only initialized once for headsets since
* Do it with dai link for playback. * the playback/capture is sharing the same jack
*/ */
if (!playback) if (ctx->headset_codec_dev)
return 0; return 0;
sdw_dev = bus_find_device_by_name(&sdw_bus_type, NULL, dai_links->codecs[0].name); sdw_dev = bus_find_device_by_name(&sdw_bus_type, NULL, dai_links->codecs[0].name);
......
...@@ -528,14 +528,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = { ...@@ -528,14 +528,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
}, },
{ {
.id = "10508825", .id = "10508825",
.drv_name = "adl_max98373_8825", .drv_name = "adl_nau8825_def",
.machine_quirk = snd_soc_acpi_codec_list, .machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &adl_max98373_amp, .quirk_data = &adl_max98373_amp,
.sof_tplg_filename = "sof-adl-max98373-nau8825.tplg", .sof_tplg_filename = "sof-adl-max98373-nau8825.tplg",
}, },
{ {
.id = "10508825", .id = "10508825",
.drv_name = "adl_mx98360a_8825", .drv_name = "adl_nau8825_def",
.machine_quirk = snd_soc_acpi_codec_list, .machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &adl_max98360a_amp, .quirk_data = &adl_max98360a_amp,
.sof_tplg_filename = "sof-adl-max98360a-nau8825.tplg", .sof_tplg_filename = "sof-adl-max98360a-nau8825.tplg",
...@@ -549,14 +549,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = { ...@@ -549,14 +549,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
}, },
{ {
.id = "10508825", .id = "10508825",
.drv_name = "adl_rt1015p_8825", .drv_name = "adl_nau8825_def",
.machine_quirk = snd_soc_acpi_codec_list, .machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &adl_rt1015p_amp, .quirk_data = &adl_rt1015p_amp,
.sof_tplg_filename = "sof-adl-rt1015-nau8825.tplg", .sof_tplg_filename = "sof-adl-rt1015-nau8825.tplg",
}, },
{ {
.id = "10508825", .id = "10508825",
.drv_name = "adl_nau8318_8825", .drv_name = "adl_nau8825_def",
.machine_quirk = snd_soc_acpi_codec_list, .machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &adl_nau8318_amp, .quirk_data = &adl_nau8318_amp,
.sof_tplg_filename = "sof-adl-nau8318-nau8825.tplg", .sof_tplg_filename = "sof-adl-nau8318-nau8825.tplg",
......
...@@ -19,6 +19,11 @@ static const struct snd_soc_acpi_codecs glk_codecs = { ...@@ -19,6 +19,11 @@ static const struct snd_soc_acpi_codecs glk_codecs = {
.codecs = {"MX98357A"} .codecs = {"MX98357A"}
}; };
static const struct snd_soc_acpi_codecs glk_rt5682_rt5682s_hp = {
.num_codecs = 2,
.codecs = {"10EC5682", "RTL5682"},
};
struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = { struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = {
{ {
.id = "INT343A", .id = "INT343A",
...@@ -35,20 +40,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = { ...@@ -35,20 +40,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = {
.sof_tplg_filename = "sof-glk-da7219.tplg", .sof_tplg_filename = "sof-glk-da7219.tplg",
}, },
{ {
.id = "10EC5682", .comp_ids = &glk_rt5682_rt5682s_hp,
.drv_name = "glk_rt5682_mx98357a", .drv_name = "glk_rt5682_mx98357a",
.fw_filename = "intel/dsp_fw_glk.bin", .fw_filename = "intel/dsp_fw_glk.bin",
.machine_quirk = snd_soc_acpi_codec_list, .machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &glk_codecs, .quirk_data = &glk_codecs,
.sof_tplg_filename = "sof-glk-rt5682.tplg", .sof_tplg_filename = "sof-glk-rt5682.tplg",
}, },
{
.id = "RTL5682",
.drv_name = "glk_rt5682_max98357a",
.machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &glk_codecs,
.sof_tplg_filename = "sof-glk-rt5682.tplg",
},
{ {
.id = "10134242", .id = "10134242",
.drv_name = "glk_cs4242_mx98357a", .drv_name = "glk_cs4242_mx98357a",
......
...@@ -402,21 +402,21 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[] = { ...@@ -402,21 +402,21 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[] = {
}, },
{ {
.id = "10508825", .id = "10508825",
.drv_name = "rpl_max98373_8825", .drv_name = "rpl_nau8825_def",
.machine_quirk = snd_soc_acpi_codec_list, .machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &rpl_max98373_amp, .quirk_data = &rpl_max98373_amp,
.sof_tplg_filename = "sof-rpl-max98373-nau8825.tplg", .sof_tplg_filename = "sof-rpl-max98373-nau8825.tplg",
}, },
{ {
.id = "10508825", .id = "10508825",
.drv_name = "rpl_mx98360a_8825", .drv_name = "rpl_nau8825_def",
.machine_quirk = snd_soc_acpi_codec_list, .machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &rpl_max98360a_amp, .quirk_data = &rpl_max98360a_amp,
.sof_tplg_filename = "sof-rpl-max98360a-nau8825.tplg", .sof_tplg_filename = "sof-rpl-max98360a-nau8825.tplg",
}, },
{ {
.id = "10508825", .id = "10508825",
.drv_name = "rpl_nau8318_8825", .drv_name = "rpl_nau8825_def",
.machine_quirk = snd_soc_acpi_codec_list, .machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &rpl_nau8318_amp, .quirk_data = &rpl_nau8318_amp,
.sof_tplg_filename = "sof-rpl-nau8318-nau8825.tplg", .sof_tplg_filename = "sof-rpl-nau8318-nau8825.tplg",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment