From: Jaroslav Kysela <perex@perex.cz>
To: Vijendar Mukunda <Vijendar.Mukunda@amd.com>, alsa-devel@alsa-project.org
Cc: Alexander.Deucher@amd.com, hui.wang@canonical.com,
Virendra-Pratap.Arya@amd.com
Subject: Re: [PATCH] ASoC: amd: add logic to check dmic hardware runtime
Date: Mon, 22 Jun 2020 15:27:25 +0200 [thread overview]
Message-ID: <46604924-3293-062e-db29-2647ecbc0701@perex.cz> (raw)
In-Reply-To: <1592654687-24574-1-git-send-email-Vijendar.Mukunda@amd.com>
Dne 20. 06. 20 v 14:04 Vijendar Mukunda napsal(a):
> Add logic to check DMIC hardware exists or not on
> the platform at runtime.
>
> Add module param for overriding DMIC hardware check
> at runtime.
>
> Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
> ---
> sound/soc/amd/renoir/rn-pci-acp3x.c | 29 +++++++++++++++++++++++++++++
> sound/soc/amd/renoir/rn_acp3x.h | 7 +++++++
> 2 files changed, 36 insertions(+)
>
> diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c
> index 859ed67..ef6eeba 100644
> --- a/sound/soc/amd/renoir/rn-pci-acp3x.c
> +++ b/sound/soc/amd/renoir/rn-pci-acp3x.c
> @@ -5,6 +5,7 @@
> //Copyright 2020 Advanced Micro Devices, Inc.
>
> #include <linux/pci.h>
> +#include <linux/acpi.h>
> #include <linux/module.h>
> #include <linux/io.h>
> #include <linux/delay.h>
> @@ -18,6 +19,16 @@ static int acp_power_gating;
> module_param(acp_power_gating, int, 0644);
> MODULE_PARM_DESC(acp_power_gating, "Enable acp power gating");
>
> +/**
> + * dmic_acpi_check = 0 - Skips DMIC device creation and returns probe failure
> + * = 1 - Assumes that platform has DMIC support and skips ACPI
> + * method check
> + * = 2 - Checks ACPI method to know DMIC hardware status runtime
> + */
> +static int dmic_acpi_check = ACP_DMIC_AUTO;
I would prefer to have 0 = auto, 1 = force, 2 = skip to put the
dmic_acpi_check variable to BSS. Otherwise the patch looks good. Thanks.
Jaroslav
--
Jaroslav Kysela <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
next prev parent reply other threads:[~2020-06-22 13:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-20 12:04 [PATCH] ASoC: amd: add logic to check dmic hardware runtime Vijendar Mukunda
2020-06-22 13:27 ` Jaroslav Kysela [this message]
2020-06-22 13:52 ` Takashi Iwai
2020-06-23 20:27 Vijendar Mukunda
2020-06-23 20:25 ` Deucher, Alexander
2020-06-23 21:44 ` Jaroslav Kysela
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=46604924-3293-062e-db29-2647ecbc0701@perex.cz \
--to=perex@perex.cz \
--cc=Alexander.Deucher@amd.com \
--cc=Vijendar.Mukunda@amd.com \
--cc=Virendra-Pratap.Arya@amd.com \
--cc=alsa-devel@alsa-project.org \
--cc=hui.wang@canonical.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.