From: Matthias Kaehlcke <mka@chromium.org>
To: Jenny TC <jenny.tc@intel.com>
Cc: alsa-devel@alsa-project.org,
Jairaj Arava <jairaj.arava@intel.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Harsha Priya <harshapriya.n@intel.com>,
Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Subject: Re: [PATCH 1/2] ASoC: dmic: Enable ACPI device entry
Date: Tue, 2 Oct 2018 10:12:44 -0700 [thread overview]
Message-ID: <20181002171244.GI22824@google.com> (raw)
In-Reply-To: <1538459851-17066-2-git-send-email-jenny.tc@intel.com>
Hi Jenny,
On Tue, Oct 02, 2018 at 11:27:30AM +0530, Jenny TC wrote:
> Enable ACPI device probing for dmic so that DMIC parameters can be passed
> from ACPI.
>
> Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
> Signed-off-by: Jairaj Arava <jairaj.arava@intel.com>
> Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
> ---
> sound/soc/codecs/dmic.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/sound/soc/codecs/dmic.c b/sound/soc/codecs/dmic.c
> index 8c4926d..ab1aa01 100644
> --- a/sound/soc/codecs/dmic.c
> +++ b/sound/soc/codecs/dmic.c
> @@ -19,6 +19,7 @@
> *
> */
>
> +#include <linux/acpi.h>
> #include <linux/delay.h>
> #include <linux/gpio.h>
> #include <linux/gpio/consumer.h>
> @@ -144,15 +145,26 @@ static int dmic_dev_probe(struct platform_device *pdev)
>
> MODULE_ALIAS("platform:dmic-codec");
>
> +#ifdef CONFIG_OF
> static const struct of_device_id dmic_dev_match[] = {
> {.compatible = "dmic-codec"},
> {}
> };
> +#endif
> +
> +#ifdef CONFIG_ACPI
> +static const struct acpi_device_id dmic_acpi_match[] = {
> + { "DMIC", 0 },
> + {},
> +};
> +MODULE_DEVICE_TABLE(acpi, dmic_acpi_match);
> +#endif
>
> static struct platform_driver dmic_driver = {
> .driver = {
> .name = "dmic-codec",
> .of_match_table = dmic_dev_match,
Above you make the definition of dmic_dev_match depend on CONFIG_OF,
you'll want to change the initialization here to
'of_match_ptr(dmic_dev_match)'
next prev parent reply other threads:[~2018-10-02 17:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-02 5:57 [PATCH 0/2] Introduce dmic mode switch delay parameter Jenny TC
2018-10-02 5:57 ` [PATCH 1/2] ASoC: dmic: Enable ACPI device entry Jenny TC
2018-10-02 15:00 ` Mark Brown
2018-10-02 17:12 ` Matthias Kaehlcke [this message]
2018-10-02 5:57 ` [PATCH 2/2] ASoC: dmic: Introduce mode switch delay Jenny TC
2018-10-22 3:42 ` [PATCH 0/2] Introduce dmic mode switch delay parameter Pierre-Louis Bossart
2018-10-22 14:31 ` Pierre-Louis Bossart
2018-10-23 17:11 ` Tc, Jenny
2018-10-23 18:22 ` Pierre-Louis Bossart
2018-10-24 13:40 ` Mark Brown
2018-10-24 13:35 ` Mark Brown
2018-10-25 16:08 ` Vinod Koul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181002171244.GI22824@google.com \
--to=mka@chromium.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=harshapriya.n@intel.com \
--cc=jairaj.arava@intel.com \
--cc=jenny.tc@intel.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=sathyanarayana.nujella@intel.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox