aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/rt5640.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index de40bd9f6ac2..0bfb960e90f8 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -21,6 +21,7 @@
21#include <linux/of_gpio.h> 21#include <linux/of_gpio.h>
22#include <linux/platform_device.h> 22#include <linux/platform_device.h>
23#include <linux/spi/spi.h> 23#include <linux/spi/spi.h>
24#include <linux/acpi.h>
24#include <sound/core.h> 25#include <sound/core.h>
25#include <sound/pcm.h> 26#include <sound/pcm.h>
26#include <sound/pcm_params.h> 27#include <sound/pcm_params.h>
@@ -2081,6 +2082,12 @@ static const struct i2c_device_id rt5640_i2c_id[] = {
2081}; 2082};
2082MODULE_DEVICE_TABLE(i2c, rt5640_i2c_id); 2083MODULE_DEVICE_TABLE(i2c, rt5640_i2c_id);
2083 2084
2085static struct acpi_device_id rt5640_acpi_match[] = {
2086 { "INT33CA", 0 },
2087 { },
2088};
2089MODULE_DEVICE_TABLE(acpi, rt5640_acpi_match);
2090
2084static int rt5640_parse_dt(struct rt5640_priv *rt5640, struct device_node *np) 2091static int rt5640_parse_dt(struct rt5640_priv *rt5640, struct device_node *np)
2085{ 2092{
2086 rt5640->pdata.in1_diff = of_property_read_bool(np, 2093 rt5640->pdata.in1_diff = of_property_read_bool(np,
@@ -2200,6 +2207,7 @@ static struct i2c_driver rt5640_i2c_driver = {
2200 .driver = { 2207 .driver = {
2201 .name = "rt5640", 2208 .name = "rt5640",
2202 .owner = THIS_MODULE, 2209 .owner = THIS_MODULE,
2210 .acpi_match_table = ACPI_PTR(rt5640_acpi_match),
2203 }, 2211 },
2204 .probe = rt5640_i2c_probe, 2212 .probe = rt5640_i2c_probe,
2205 .remove = rt5640_i2c_remove, 2213 .remove = rt5640_i2c_remove,