From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: jack.yu@realtek.com, broonie@kernel.org, lgirdwood@gmail.com
Cc: oder_chiou@realtek.com, alsa-devel@alsa-project.org,
lars@metafoo.de, kent_chen@realtek.com, kenny_chen@realtek.com,
derek.fang@realtek.com, shumingf@realtek.com, flove@realtek.com
Subject: Re: [PATCH] ASoC: rt1015p: add acpi device id for rt1015p
Date: Fri, 26 Feb 2021 15:48:00 -0600 [thread overview]
Message-ID: <b4af8c40-d1c6-35f2-0f70-3032fd04697f@linux.intel.com> (raw)
In-Reply-To: <20210226020517.17124-1-jack.yu@realtek.com>
On 2/25/21 8:05 PM, jack.yu@realtek.com wrote:
> From: Jack Yu <jack.yu@realtek.com>
>
> Add acpi device id for rt1015p.
>
> Signed-off-by: Jack Yu <jack.yu@realtek.com>
> ---
> sound/soc/codecs/rt1015p.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
> index 671f2a2130fe..61694de080e6 100644
> --- a/sound/soc/codecs/rt1015p.c
> +++ b/sound/soc/codecs/rt1015p.c
> @@ -4,6 +4,7 @@
> //
> // Copyright 2020 The Linux Foundation. All rights reserved.
>
> +#include <linux/acpi.h>
> #include <linux/delay.h>
> #include <linux/device.h>
> #include <linux/err.h>
> @@ -130,10 +131,19 @@ static const struct of_device_id rt1015p_device_id[] = {
> MODULE_DEVICE_TABLE(of, rt1015p_device_id);
> #endif
>
> +#ifdef CONFIG_ACPI
> +static const struct acpi_device_id rt1015p_acpi_match[] = {
> + { "ALCP1015", 0},
This isn't much better, ALC is not a vendor ID as defined by
https://uefi.org/PNP_ACPI_Registry
I've ask for guidance from Intel ACPI folks on this, please stay tuned.
> + { },
> +};
> +MODULE_DEVICE_TABLE(acpi, rt1015p_acpi_match);
> +#endif
> +
> static struct platform_driver rt1015p_platform_driver = {
> .driver = {
> .name = "rt1015p",
> .of_match_table = of_match_ptr(rt1015p_device_id),
> + .acpi_match_table = ACPI_PTR(rt1015p_acpi_match),
> },
> .probe = rt1015p_platform_probe,
> };
>
next prev parent reply other threads:[~2021-02-26 21:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-26 2:05 [PATCH] ASoC: rt1015p: add acpi device id for rt1015p jack.yu
2021-02-26 21:48 ` Pierre-Louis Bossart [this message]
2021-03-08 6:10 ` Jack Yu
2021-03-09 20:26 ` Pierre-Louis Bossart
2021-03-10 2:09 ` Jack Yu
2021-03-10 15:39 ` Pierre-Louis Bossart
2021-03-12 20:23 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2021-02-25 8:45 jack.yu
2021-02-25 9:40 ` Tzung-Bi Shih
2021-02-25 17:15 ` Pierre-Louis Bossart
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=b4af8c40-d1c6-35f2-0f70-3032fd04697f@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=derek.fang@realtek.com \
--cc=flove@realtek.com \
--cc=jack.yu@realtek.com \
--cc=kenny_chen@realtek.com \
--cc=kent_chen@realtek.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=oder_chiou@realtek.com \
--cc=shumingf@realtek.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;
as well as URLs for NNTP newsgroup(s).