diff mbox

[RFC,2/2] ASoC: Intel: Use DMI name for sound card long name in Broadwell machine driver

Message ID 92fa36740f6bafbbdcbaf56c2edd56bcd182df21.1481856472.git.mengdong.lin@linux.intel.com (mailing list archive)
State Accepted
Commit 3122c66fd2159f4ab210da8d95465af2f145fad7
Headers show

Commit Message

mengdong.lin@linux.intel.com Dec. 16, 2016, 2:51 a.m. UTC
From: Mengdong Lin <mengdong.lin@linux.intel.com>

Intel Broadwell machine driver will call API snd_soc_set_dmi_name() to use
DMI info to make the sound card long name.

Here are the changed long name for two Broadwell-based machines:
             short name & driver name   long name
WilsonBeach:       broadwell-rt286      broadwell-rt286-Intel-Wilson-Beach
Dell XPS-13(2015): broadwell-rt286      broadwell-rt286-Dell-XPS

The card short name has no change, and ASoC will use the card name as the
card driver name.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
diff mbox


diff --git a/sound/soc/intel/boards/broadwell.c b/sound/soc/intel/boards/broadwell.c
index 5bb64d1..cda73bb 100644
--- a/sound/soc/intel/boards/broadwell.c
+++ b/sound/soc/intel/boards/broadwell.c
@@ -266,6 +266,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);