From: "André Almeida" <andrealmeid@igalia.com>
To: Stefan Binding <sbinding@opensource.cirrus.com>
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
Mark Brown <broonie@kernel.org>,
patches@opensource.cirrus.com
Subject: Re: [PATCH v1] ASoC: cs35l41: Fallback to using HID for system_name if no SUB is available
Date: Wed, 5 Feb 2025 14:02:44 -0300 [thread overview]
Message-ID: <f2ed50cd-a6e4-41f1-b0a3-1a4349a39ec1@igalia.com> (raw)
In-Reply-To: <20250205164806.414020-1-sbinding@opensource.cirrus.com>
Hi Stefan,
Em 05/02/2025 13:48, Stefan Binding escreveu:
> For systems which load firmware on the cs35l41 which use ACPI, the
> _SUB value is used to differentiate firmware and tuning files for the
> individual systems. In the case where a system does not have a _SUB
> defined in ACPI node for cs35l41, there needs to be a fallback to
> allow the files for that system to be differentiated. Since all
> ACPI nodes for cs35l41 should have a HID defined, the HID should be a
> safe option.
>
> Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
> ---
> sound/soc/codecs/cs35l41.c | 23 ++++++++++++++++-------
> 1 file changed, 16 insertions(+), 7 deletions(-)
>
> diff --git a/sound/soc/codecs/cs35l41.c b/sound/soc/codecs/cs35l41.c
> index 07a5cab35fe1..30b89018b113 100644
> --- a/sound/soc/codecs/cs35l41.c
> +++ b/sound/soc/codecs/cs35l41.c
> @@ -1150,19 +1150,28 @@ static int cs35l41_dsp_init(struct cs35l41_private *cs35l41)
>
> static int cs35l41_acpi_get_name(struct cs35l41_private *cs35l41)
> {
> - acpi_handle handle = ACPI_HANDLE(cs35l41->dev);
> + struct acpi_device *adev = ACPI_COMPANION(cs35l41->dev);
> + acpi_handle handle = acpi_device_handle(adev);
> + const char *hid;
I think *hid and *sub can be in the same line.
Apart from that,
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Tested-by: André Almeida <andrealmeid@igalia.com> (Steam Deck OLED)
next prev parent reply other threads:[~2025-02-05 17:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 16:48 Stefan Binding
2025-02-05 17:02 ` André Almeida [this message]
2025-02-06 14:51 ` Mark Brown
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=f2ed50cd-a6e4-41f1-b0a3-1a4349a39ec1@igalia.com \
--to=andrealmeid@igalia.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=sbinding@opensource.cirrus.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
all inboxes | Powered by JetHome®