All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: tiwai@suse.de, liam.r.girdwood@linux.intel.com,
	alsa-devel@alsa-project.org, broonie@kernel.org,
	vkoul@kernel.org
Subject: Applied "ASoC: Intel: broadwell: platform name fixup support" to the asoc tree
Date: Mon, 28 Jan 2019 18:25:35 +0000 (GMT)	[thread overview]
Message-ID: <20190128182535.313321127D29@debutante.sirena.org.uk> (raw)
In-Reply-To: <20190125203509.22994-4-pierre-louis.bossart@linux.intel.com>

The patch

   ASoC: Intel: broadwell: platform name fixup support

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 2d067b2807f9d3381a37acef1b2f43682a868c7a Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Date: Fri, 25 Jan 2019 14:34:57 -0600
Subject: [PATCH] ASoC: Intel: broadwell: platform name fixup support

Add helper to override dailink platform name, if passed as parameter

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/boards/broadwell.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/sound/soc/intel/boards/broadwell.c b/sound/soc/intel/boards/broadwell.c
index 99f2a0156ae8..b86c746d9b7a 100644
--- a/sound/soc/intel/boards/broadwell.c
+++ b/sound/soc/intel/boards/broadwell.c
@@ -21,6 +21,7 @@
 #include <sound/soc.h>
 #include <sound/jack.h>
 #include <sound/pcm_params.h>
+#include <sound/soc-acpi.h>
 
 #include "../common/sst-dsp.h"
 #include "../haswell/sst-haswell-ipc.h"
@@ -267,7 +268,22 @@ static struct snd_soc_card broadwell_rt286 = {
 
 static int broadwell_audio_probe(struct platform_device *pdev)
 {
+	struct snd_soc_acpi_mach *mach;
+	const char *platform_name = NULL;
+	int ret;
+
 	broadwell_rt286.dev = &pdev->dev;
+
+	/* override plaform name, if required */
+	mach = (&pdev->dev)->platform_data;
+	if (mach) /* extra check since legacy does not pass parameters */
+		platform_name = mach->mach_params.platform;
+
+	ret = snd_soc_fixup_dai_links_platform_name(&broadwell_rt286,
+						    platform_name);
+	if (ret)
+		return ret;
+
 	return devm_snd_soc_register_card(&pdev->dev, &broadwell_rt286);
 }
 
-- 
2.20.1

  reply	other threads:[~2019-01-28 18:25 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-25 20:34 [PATCH 00/15] ASoC: Intel: pass platform name to machine drivers Pierre-Louis Bossart
2019-01-25 20:34 ` [PATCH 01/15] ASoC: add helper to change platform name for all dailinks Pierre-Louis Bossart
2019-01-26 17:47   ` Takashi Iwai
2019-01-28 12:19     ` Mark Brown
2019-01-28 15:57       ` Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: add helper to change platform name for all dailinks" to the asoc tree Mark Brown
2019-01-25 20:34 ` [PATCH 02/15] ASoC: Intel: haswell: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: haswell: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:34 ` [PATCH 03/15] ASoC: Intel: broadwell: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Mark Brown [this message]
2019-01-25 20:34 ` [PATCH 04/15] ASoC: Intel: bdw-rt5677: " Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: bdw-rt5677: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:34 ` [PATCH 05/15] ASoC: Intel: bytcr_rt5640: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: bytcr_rt5640: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 06/15] ASoC: Intel: bytcr_rt5651: platform name fixup support Pierre-Louis Bossart
2019-01-25 20:35 ` [PATCH 07/15] ASoC: Intel: bytcht_da7213: " Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: bytcht_da7213: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 08/15] ASoC: Intel: bytcht_es8316: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: bytcht_es8316: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 09/15] ASoC: Intel: cht_bsw_max98090_ti: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: cht_bsw_max98090_ti: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 10/15] ASoC: Intel: cht_bsw_nau8824: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: cht_bsw_nau8824: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 11/15] ASoC: Intel: cht_bsw_rt5645: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: cht_bsw_rt5645: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 12/15] ASoC: Intel: cht_bsw_rt5672: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: cht_bsw_rt5672: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 13/15] ASoC: Intel: bxt_da7219_max98357a: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: bxt_da7219_max98357a: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 14/15] ASoC: Intel: bxt_rt298: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: bxt_rt298: platform name fixup support" to the asoc tree Mark Brown
2019-01-25 20:35 ` [PATCH 15/15] ASoC: Intel: glk_rt5682_max98357a: platform name fixup support Pierre-Louis Bossart
2019-01-28 18:25   ` Applied "ASoC: Intel: glk_rt5682_max98357a: platform name fixup support" to the asoc tree Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190128182535.313321127D29@debutante.sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=tiwai@suse.de \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.