Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: rt5645: Add ACPI match ID
@ 2015-04-23 23:35 yang.a.fang
  2015-04-23 23:35 ` [PATCH 2/2] ASoC: rt5645: set platform data base on DMI yang.a.fang
  2015-04-24 10:14 ` [PATCH 1/2] ASoC: rt5645: Add ACPI match ID Mark Brown
  0 siblings, 2 replies; 6+ messages in thread
From: yang.a.fang @ 2015-04-23 23:35 UTC (permalink / raw)
  To: broonie, lgirdwood
  Cc: alsa-devel, vinod.koul, praveen.k.jain, denny.iriawan,
	Fang, Yang A, sathyanarayana.nujella, kevin.strasser, bardliao

From: "Fang, Yang A" <yang.a.fang@intel.com>

This patch adds the ACPI match ID for rt5645/5650 codec

Signed-off-by: Fang, Yang A <yang.a.fang@intel.com>
---
 sound/soc/codecs/rt5645.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index c9a4c5b..e16724a 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -18,6 +18,7 @@
 #include <linux/platform_device.h>
 #include <linux/spi/spi.h>
 #include <linux/gpio.h>
+#include <linux/acpi.h>
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
@@ -2618,6 +2619,15 @@ static const struct i2c_device_id rt5645_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, rt5645_i2c_id);
 
+#ifdef CONFIG_ACPI
+static struct acpi_device_id rt5645_acpi_match[] = {
+	{ "10EC5645", 0 },
+	{ "10EC5650", 0 },
+	{},
+};
+MODULE_DEVICE_TABLE(acpi, rt5645_acpi_match);
+#endif
+
 static int rt5645_i2c_probe(struct i2c_client *i2c,
 		    const struct i2c_device_id *id)
 {
@@ -2834,6 +2844,7 @@ static struct i2c_driver rt5645_i2c_driver = {
 	.driver = {
 		.name = "rt5645",
 		.owner = THIS_MODULE,
+		.acpi_match_table = ACPI_PTR(rt5645_acpi_match),
 	},
 	.probe = rt5645_i2c_probe,
 	.remove   = rt5645_i2c_remove,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-27 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-23 23:35 [PATCH 1/2] ASoC: rt5645: Add ACPI match ID yang.a.fang
2015-04-23 23:35 ` [PATCH 2/2] ASoC: rt5645: set platform data base on DMI yang.a.fang
2015-04-24 10:12   ` Mark Brown
2015-04-25  0:50   ` [PATCH v2] " yang.a.fang
2015-04-27 21:00     ` Mark Brown
2015-04-24 10:14 ` [PATCH 1/2] ASoC: rt5645: Add ACPI match ID Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox