Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f0ad491 authored by Mengdong Lin's avatar Mengdong Lin Committed by Mark Brown
Browse files

ASoC: Change DAI link's be_id to a generic id



The generic ID can be used by topology:
- Toplogy can create FE links and set their ID, machine drivers will
  be notified and check this ID for machine-specific init.
- Toplogy can use the ID to find existing BE & CC links and further
  configure them.

Signed-off-by: default avatarMengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f55532a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1002,7 +1002,7 @@ struct snd_soc_dai_link {
	 */
	 */
	const char *platform_name;
	const char *platform_name;
	struct device_node *platform_of_node;
	struct device_node *platform_of_node;
	int be_id;	/* optional ID for machine driver BE identification */
	int id;	/* optional ID for machine driver link identification */


	const struct snd_soc_pcm_stream *params;
	const struct snd_soc_pcm_stream *params;
	unsigned int num_params;
	unsigned int num_params;
+1 −1
Original line number Original line Diff line number Diff line
@@ -201,7 +201,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
	{
	{
		/* SSP0 - Codec */
		/* SSP0 - Codec */
		.name = "Codec",
		.name = "Codec",
		.be_id = 0,
		.id = 0,
		.cpu_dai_name = "snd-soc-dummy-dai",
		.cpu_dai_name = "snd-soc-dummy-dai",
		.platform_name = "snd-soc-dummy",
		.platform_name = "snd-soc-dummy",
		.no_pcm = 1,
		.no_pcm = 1,
+1 −1
Original line number Original line Diff line number Diff line
@@ -304,7 +304,7 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = {
		/* back ends */
		/* back ends */
	{
	{
		.name = "SSP2-Codec",
		.name = "SSP2-Codec",
		.be_id = 1,
		.id = 1,
		.cpu_dai_name = "ssp2-port",
		.cpu_dai_name = "ssp2-port",
		.platform_name = "sst-mfld-platform",
		.platform_name = "sst-mfld-platform",
		.no_pcm = 1,
		.no_pcm = 1,
+1 −1
Original line number Original line Diff line number Diff line
@@ -267,7 +267,7 @@ static struct snd_soc_dai_link byt_rt5651_dais[] = {
	/* back ends */
	/* back ends */
	{
	{
		.name = "SSP2-Codec",
		.name = "SSP2-Codec",
		.be_id = 1,
		.id = 1,
		.cpu_dai_name = "ssp2-port",
		.cpu_dai_name = "ssp2-port",
		.platform_name = "sst-mfld-platform",
		.platform_name = "sst-mfld-platform",
		.no_pcm = 1,
		.no_pcm = 1,
+1 −1
Original line number Original line Diff line number Diff line
@@ -255,7 +255,7 @@ static struct snd_soc_dai_link cht_dailink[] = {
	/* back ends */
	/* back ends */
	{
	{
		.name = "SSP2-Codec",
		.name = "SSP2-Codec",
		.be_id = 1,
		.id = 1,
		.cpu_dai_name = "ssp2-port",
		.cpu_dai_name = "ssp2-port",
		.platform_name = "sst-mfld-platform",
		.platform_name = "sst-mfld-platform",
		.no_pcm = 1,
		.no_pcm = 1,
Loading