From: David Heidelberg <david@ixit.cz>
To: Val Packett <val@packett.cool>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>
Cc: phone-devel@vger.kernel.org, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] ASoC: soc-core: use the device tree card name as long_name
Date: Sun, 6 Sep 2026 13:50:52 +0200 [thread overview]
Message-ID: <a85ee1d2-329e-49b5-a22d-f68dfa527eec@ixit.cz> (raw)
In-Reply-To: <20260506041112.412871-2-val@packett.cool>
On 06/05/2026 05:58, Val Packett wrote:
> When setting the model property for the sound card on an OF/DT system,
> the expectation is that that model name would be used in the UCM config
> path lookup. However, the DT model name was only used as the "short"
> name, which gets overriden by the "long" name during loading, and
> the "long" name is automatically set based on DMI data if available.
> As a result, adding an intermediate bootloader such as U-Boot which
> provides DMI data on a device that didn't have it before would break
> the UCM config loading by suddenly looking at the "wrong" path.
>
> Fix by assigning the DT model name to the long_name field as well.
>
> Signed-off-by: Val Packett <val@packett.cool>
> ---
>
> For more context/examples, see:
> https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4386
>
> err, for some reason that link requires an account to view right now,
> hopefully that's fixed by the time you're reading this. if not, quoting:
>
>> ALSA looks for wrong device name when using U-Boot
>>
>> What's the expected behaviour?
>> ALSA finds Fairphone 5.conf
>> What's the current behaviour?
>> ALSA looks for fairphone-Fairphone5-.conf, doesn't find it, and results in no audio.
>
> ("Fairphone 5.conf" coming from `model = "Fairphone 5";` in .dts)
>
> So it's totally unexpected in the DT world that adding DMI info would
> change which UCM path is used.
>
> Now the question is, could this possibly break anything for anyone???..
>
> Qcom laptops do not rely on these model-based paths at all, instead
> having custom DMI match `If` conditions inside of "fallback" SoC-wide
> UCM .conf files such as:
> https://github.com/alsa-project/alsa-ucm-conf/blob/980fb83651e82c3e53d3a0ab7fa9b7d6fc2d809b/ucm2/Qualcomm/x1e80100/x1e80100.conf
>
> So there it shouldn't make a difference. But does *anyone* use DMI-based
> soundcard names intentionally on *any* DT platform?
>
>
> Thanks,
> ~val
>
> P.S. I don't understand the lifecycle of these strings but it seeeems that
> the expectation is that they point to static data so they're never freed?
>
> ---
> sound/soc/soc-core.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
Would be great to hear what what maintainers think about this, this causing some
level of unpleasantness.
Also there is my slightly related question about the DT `model` property naming [1].
Thanks
David
[1] https://lore.kernel.org/all/c5773a71-e7f0-44ae-8418-1e00de16d08f@ixit.cz/
next prev parent reply other threads:[~2026-09-06 11:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-06 3:58 Val Packett
2026-07-24 23:12 ` Clayton Craft
2026-09-06 11:50 ` David Heidelberg [this message]
2026-09-14 11:00 ` Guido Günther
2026-09-14 11:19 ` Mark Brown
2026-09-14 11:34 ` Guido Günther
2026-09-14 11:41 ` 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=a85ee1d2-329e-49b5-a22d-f68dfa527eec@ixit.cz \
--to=david@ixit.cz \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=phone-devel@vger.kernel.org \
--cc=tiwai@suse.com \
--cc=val@packett.cool \
/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®