Skip to contentSkip to conversation

ASoC: Intel: bxt_da7219_max98357a: update dai_link platform name

PATCH In review [email protected] 2 participants 2 messages Oct 29, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Intel: bxt_da7219_max98357a: update dai_link platform name

From: Mac Chiang <[email protected]>

redefine soc platform name "0000:00:1f.3" if cml core

---
 sound/soc/intel/boards/bxt_da7219_max98357a.c | 8 ++++++++
 1 file changed, 8 insertions(+)
sound/soc/intel/boards/bxt_da7219_max98357a.c +8 -0
index ac1dea5..38b7dbe 100644
@@ -40,6 +40,13 @@ struct bxt_card_private {
 	struct list_head hdmi_pcm_list;
 };
 
+static struct snd_soc_dai_link_component platform_component[] = {
+	{
+		/* name might be overridden during probe */
+		.name = "0000:00:1f.3"
+	}
+};
+
 enum {
 	BXT_DPCM_AUDIO_PB = 0,
 	BXT_DPCM_AUDIO_CP,
@@ -708,6 +715,7 @@ static int broxton_audio_probe(struct platform_device *pdev)
 				broxton_dais[i].name = "SSP0-Codec";
 				broxton_dais[i].cpus->dai_name = "SSP0 Pin";
 			}
+			broxton_dais[i].platforms = platform_component;
 		}
 	}
 
Signature · 6 lines
2.7.4

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#1 lore raw
Quoted 3 lines · On 10/28/19 10:35 PM, [email protected] wrote:

From: Mac Chiang <[email protected]>

redefine soc platform name "0000:00:1f.3" if cml core

we already have code that can update the platform name:

	/* override plaform name, if required */
	mach = (&pdev->dev)->platform_data;
	platform_name = mach->mach_params.platform;

	ret = snd_soc_fixup_dai_links_platform_name(&broxton_audio_card,
						    platform_name);

Are you sure this additional assignment is required?

Quoted 27 lines
---
  sound/soc/intel/boards/bxt_da7219_max98357a.c | 8 ++++++++
  1 file changed, 8 insertions(+)
sound/soc/intel/boards/bxt_da7219_max98357a.c +7 -0
index ac1dea5..38b7dbe 100644
@@ -40,6 +40,13 @@ struct bxt_card_private {
  	struct list_head hdmi_pcm_list;
  };
 
+static struct snd_soc_dai_link_component platform_component[] = {
+	{
+		/* name might be overridden during probe */
+		.name = "0000:00:1f.3"
+	}
+};
+
  enum {
  	BXT_DPCM_AUDIO_PB = 0,
  	BXT_DPCM_AUDIO_CP,

sound/soc/intel/boards/bxt_da7219_max98357a.c static int broxton_audio_probe(struct platform_device *pdev) · line 721

Quoted 7 lines
sound/soc/intel/boards/bxt_da7219_max98357a.c +1 -0
@@ -708,6 +715,7 @@ static int broxton_audio_probe(struct platform_device *pdev)
  				broxton_dais[i].name = "SSP0-Codec";
  				broxton_dais[i].cpus->dai_name = "SSP0 Pin";
  			}
+			broxton_dais[i].platforms = platform_component;
  		}
  	}
 

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel