diff mbox

[3/3] ASoC: da7219: Add initial ACPI id for device

Message ID 7ddf6d5b47424ca3777d33a9f91d30ea7c7c439a.1462285398.git.Adam.Thomson.Opensource@diasemi.com (mailing list archive)
State New, archived
Headers show

Commit Message

Adam Thomson May 5, 2016, 10:53 a.m. UTC
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>
---
 sound/soc/codecs/da7219.c | 7 +++++++
 1 file changed, 7 insertions(+)

--
1.9.3

Comments

Pierre-Louis Bossart May 5, 2016, 1:49 p.m. UTC | #1
On 5/5/16 5:53 AM, Adam Thomson wrote:
> This adds "DLGS7219" ACPI id for the codec.

A valid ACPI ID, the first in a long time on this mailing list :-)

>
> Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
> Tested-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
> ---
>  sound/soc/codecs/da7219.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
> index bc32322..da268b8 100644
> --- a/sound/soc/codecs/da7219.c
> +++ b/sound/soc/codecs/da7219.c
> @@ -1428,6 +1428,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 device *dev, u32 val)
>  {
> @@ -1957,6 +1963,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,
> --
> 1.9.3
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
diff mbox

Patch

diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
index bc32322..da268b8 100644
--- a/sound/soc/codecs/da7219.c
+++ b/sound/soc/codecs/da7219.c
@@ -1428,6 +1428,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 device *dev, u32 val)
 {
@@ -1957,6 +1963,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,