diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2016-05-05 06:53:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-05 08:11:11 -0400 |
commit | 5181365f5312d67dcdc9e4bc22516c48a83c8754 (patch) | |
tree | ee5842c19e0bf36b229e536986542b365340b77d | |
parent | fb137ba64a6415ddf231495f6d1a82de1cd69ed0 (diff) |
ASoC: da7219: Add initial ACPI id for device
This adds "DLGS7219" ACPI id for the codec.
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Tested-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/da7219.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index caea2ee19d9a..17e2119f211b 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c | |||
@@ -1426,6 +1426,12 @@ static const struct of_device_id da7219_of_match[] = { | |||
1426 | }; | 1426 | }; |
1427 | MODULE_DEVICE_TABLE(of, da7219_of_match); | 1427 | MODULE_DEVICE_TABLE(of, da7219_of_match); |
1428 | 1428 | ||
1429 | static const struct acpi_device_id da7219_acpi_match[] = { | ||
1430 | { .id = "DLGS7219", }, | ||
1431 | { } | ||
1432 | }; | ||
1433 | MODULE_DEVICE_TABLE(acpi, da7219_acpi_match); | ||
1434 | |||
1429 | static enum da7219_micbias_voltage | 1435 | static enum da7219_micbias_voltage |
1430 | da7219_of_micbias_lvl(struct snd_soc_codec *codec, u32 val) | 1436 | da7219_of_micbias_lvl(struct snd_soc_codec *codec, u32 val) |
1431 | { | 1437 | { |
@@ -1955,6 +1961,7 @@ static struct i2c_driver da7219_i2c_driver = { | |||
1955 | .driver = { | 1961 | .driver = { |
1956 | .name = "da7219", | 1962 | .name = "da7219", |
1957 | .of_match_table = of_match_ptr(da7219_of_match), | 1963 | .of_match_table = of_match_ptr(da7219_of_match), |
1964 | .acpi_match_table = ACPI_PTR(da7219_acpi_match), | ||
1958 | }, | 1965 | }, |
1959 | .probe = da7219_i2c_probe, | 1966 | .probe = da7219_i2c_probe, |
1960 | .remove = da7219_i2c_remove, | 1967 | .remove = da7219_i2c_remove, |