ASoC: da7219: Add initial ACPI id for device
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Thu, 5 May 2016 10:53:06 +0000 (11:53 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 5 May 2016 12:11:11 +0000 (13:11 +0100)
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>
sound/soc/codecs/da7219.c

index caea2ee19d9a77d5a508e27455ace6385446eac1..17e2119f211b57e5481d5c2f04296cbf4112921a 100644 (file)
@@ -1426,6 +1426,12 @@ static const struct of_device_id da7219_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, da7219_of_match);
 
+static const struct acpi_device_id da7219_acpi_match[] = {
+       { .id = "DLGS7219", },
+       { }
+};
+MODULE_DEVICE_TABLE(acpi, da7219_acpi_match);
+
 static enum da7219_micbias_voltage
        da7219_of_micbias_lvl(struct snd_soc_codec *codec, u32 val)
 {
@@ -1955,6 +1961,7 @@ static struct i2c_driver da7219_i2c_driver = {
        .driver = {
                .name = "da7219",
                .of_match_table = of_match_ptr(da7219_of_match),
+               .acpi_match_table = ACPI_PTR(da7219_acpi_match),
        },
        .probe          = da7219_i2c_probe,
        .remove         = da7219_i2c_remove,