aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/broadwell.c
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@linux.intel.com>2017-01-14 16:13:09 +0800
committerMark Brown <broonie@kernel.org>2017-01-17 17:57:14 +0000
commit3122c66fd2159f4ab210da8d95465af2f145fad7 (patch)
tree7d0647dc7c2088468d7fa67c15e578ba1bef6bf5 /sound/soc/intel/boards/broadwell.c
parentASoC: core: Add API to use DMI name in sound card long name (diff)
downloadlinux-dev-3122c66fd2159f4ab210da8d95465af2f145fad7.tar.xz
linux-dev-3122c66fd2159f4ab210da8d95465af2f145fad7.zip
ASoC: Intel: Use DMI name for sound card long name in Broadwell machine driver
Intel Broadwell machine driver will call API snd_soc_set_dmi_name() to use DMI info to make the sound card long name. For example, here are the changed long name for two Broadwell-based machines: Dell XPS-13(2015): DellInc.-XPS139343-01-0310JH Intel WilsonBeach: Intel Corp.-BroadwellClientplatform-0.1-WilsonBeachSDS They still share the same card name "broadwell-rt286". Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/broadwell.c')
-rw-r--r--sound/soc/intel/boards/broadwell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/broadwell.c b/sound/soc/intel/boards/broadwell.c
index 4d7e9decfa92..faf865bb1765 100644
--- a/sound/soc/intel/boards/broadwell.c
+++ b/sound/soc/intel/boards/broadwell.c
@@ -270,6 +270,8 @@ static int broadwell_audio_probe(struct platform_device *pdev)
{
broadwell_rt286.dev = &pdev->dev;
+ snd_soc_set_dmi_name(&broadwell_rt286, NULL);
+
return devm_snd_soc_register_card(&pdev->dev, &broadwell_rt286);
}