From: sashiko-bot@kernel.org
To: "Srinivas Kandagatla" <srinivas.kandagatla@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [RFC PATCH 6/8] ASoC: SDCA: register SDCA_FUNCTION_TYPE_SIMPLE_JACK in class function driver
Date: Wed, 22 Jul 2026 23:56:05 +0000 [thread overview]
Message-ID: <20260722235605.D813A1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260722234221.884765-7-srinivas.kandagatla@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Missing string mapping for SDCA_FUNCTION_TYPE_SIMPLE_JACK in get_sdca_function_name() causes ACPI enumeration failure.
--
--- Patch [6]: [RFC PATCH 6/8] ASoC: SDCA: register SDCA_FUNCTION_TYPE_SIMPLE_JACK in class function driver ---
commit 9826e21715fdea11e3c55eac5f9ed509d841b1d2
Author: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
ASoC: SDCA: register SDCA_FUNCTION_TYPE_SIMPLE_JACK in class function driver
This commit adds SDCA_FUNCTION_TYPE_SIMPLE_JACK to the class function
driver's auxiliary ID table so a SimpleJack auxdev is bound and enumerated
as an ASoC component. It also wires up set_jack for this function type so
the machine driver can register an ASoC jack against it.
> diff --git a/sound/soc/sdca/sdca_class_function.c b/sound/soc/sdca/sdca_class_function.c
> --- a/sound/soc/sdca/sdca_class_function.c
> +++ b/sound/soc/sdca/sdca_class_function.c
[ ... ]
> @@ -621,6 +622,10 @@ static const struct auxiliary_device_id class_function_id_table[] = {
> .name = "snd_soc_sdca." SDCA_FUNCTION_TYPE_RJ_NAME,
> .driver_data = SDCA_FUNCTION_TYPE_RJ,
> },
> + {
> + .name = "snd_soc_sdca." SDCA_FUNCTION_TYPE_SIMPLE_NAME,
> + .driver_data = SDCA_FUNCTION_TYPE_SIMPLE_JACK,
> + },
[Severity: High]
Does this code also require a string mapping for
SDCA_FUNCTION_TYPE_SIMPLE_JACK in get_sdca_function_name()?
Looking at sound/soc/sdca/sdca_functions.c, the switch statement in
get_sdca_function_name() lacks a case for SDCA_FUNCTION_TYPE_SIMPLE_JACK,
causing it to return NULL.
When ACPI enumeration calls find_sdca_function() and encounters this
function type, the NULL return value causes it to fail:
sound/soc/sdca/sdca_functions.c:find_sdca_function() {
...
function_name = get_sdca_function_name(function_type);
if (!function_name) {
dev_err(dev, "invalid SDCA function type %d\n", function_type);
return -EINVAL;
}
...
}
Because acpi_dev_for_each_child() stops iterating when a callback returns a
non-zero value, doesn't this error prevent the SimpleJack auxiliary device
from being registered and silently abort the enumeration of any subsequent
SDCA functions on the same device?
> {},
> };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260722234221.884765-1-srinivas.kandagatla@oss.qualcomm.com?part=6
next prev parent reply other threads:[~2026-07-22 23:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 23:42 [RFC PATCH 0/8] ASoC: SDCA: enable on DT platforms and add Qualcomm WCD9378 (Tambora) codec Srinivas Kandagatla
2026-07-22 23:42 ` [RFC PATCH 1/8] ASoC: SDCA: hw_params: program upstream Input Terminals for OT DAI Srinivas Kandagatla
2026-07-22 23:54 ` sashiko-bot
2026-07-22 23:42 ` [RFC PATCH 2/8] ASoC: SDCA: allow building without ACPI Srinivas Kandagatla
2026-07-22 23:59 ` sashiko-bot
2026-07-22 23:42 ` [RFC PATCH 3/8] ASoC: SDCA: expose class helpers with hw_ops for non-DisCo platforms Srinivas Kandagatla
2026-07-22 23:58 ` sashiko-bot
2026-07-22 23:42 ` [RFC PATCH 4/8] ASoC: SDCA: add PDE pre/post-pmu hooks to hw_ops Srinivas Kandagatla
2026-07-22 23:56 ` sashiko-bot
2026-07-22 23:42 ` [RFC PATCH 5/8] ASoC: SDCA: class_function: xlate sound-dai cell by entity index Srinivas Kandagatla
2026-07-22 23:57 ` sashiko-bot
2026-07-22 23:42 ` [RFC PATCH 6/8] ASoC: SDCA: register SDCA_FUNCTION_TYPE_SIMPLE_JACK in class function driver Srinivas Kandagatla
2026-07-22 23:56 ` sashiko-bot [this message]
2026-07-22 23:42 ` [RFC PATCH 7/8] dt-bindings: sound: qcom: add Tambora WCD9378 SDCA codec Srinivas Kandagatla
2026-07-22 23:51 ` sashiko-bot
2026-07-22 23:42 ` [RFC PATCH 8/8] ASoC: codecs: add Qualcomm Tambora (WCD9378) " Srinivas Kandagatla
2026-07-23 0:03 ` sashiko-bot
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=20260722235605.D813A1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=srinivas.kandagatla@oss.qualcomm.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.