From: Michael Walle <michael@walle.cc>
To: Mark Brown <broonie@kernel.org>
Cc: Guillaume Tucker <guillaume.tucker@collabora.com>,
kernelci-results@groups.io,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Heiko Thiery <heiko.thiery@gmail.com>,
alsa-devel@alsa-project.org, Jaroslav Kysela <perex@perex.cz>,
Liam Girdwood <lgirdwood@gmail.com>,
Takashi Iwai <tiwai@suse.com>,
Stephan Gerhold <stephan@gerhold.net>,
Thierry Reding <treding@nvidia.com>,
Jon Hunter <jonathanh@nvidia.com>,
linux-kernel@vger.kernel.org
Subject: Re: broonie-sound/for-next bisection: baseline.bootrr.asoc-simple-card-probed on kontron-sl28-var3-ads2
Date: Tue, 27 Apr 2021 17:29:35 +0200 [thread overview]
Message-ID: <a1ec388def4febd9af6ef477245ef2d3@walle.cc> (raw)
In-Reply-To: <cc9a39f977c3765d1060ab1b0038bc79@walle.cc>
Am 2021-04-27 16:16, schrieb Michael Walle:
> Am 2021-04-27 15:57, schrieb Mark Brown:
>> On Tue, Apr 27, 2021 at 03:43:42PM +0200, Michael Walle wrote:
>>> Am 2021-04-27 14:51, schrieb Guillaume Tucker:
>>> > On 27/04/2021 11:19, Mark Brown wrote:
>>> > > On Tue, Apr 27, 2021 at 07:28:34AM +0900, Kuninori Morimoto wrote:
>>
>>> > > > > > If so, all sai1 - sai6 are using "fsl,vf610-sai",
>>> > > > > > all saiX doesn't have .name. I think it should have different name.
>>> > > > > > In your case, at least, sai5 / sai6 needs to have
>
> Where does that (null) come from? I've briefly tried the following
> patch and I'd assume I get a duplicate for "abc-wm8904-hifi", but I
> still
> get the old (null)-wm8904-hifi.
>
> diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
> index 407a45e48eee..36280008b5c6 100644
> --- a/sound/soc/fsl/fsl_sai.c
> +++ b/sound/soc/fsl/fsl_sai.c
> @@ -1081,6 +1081,7 @@ static int fsl_sai_probe(struct platform_device
> *pdev)
> sai->cpu_dai_drv.symmetric_rate = 1;
> sai->cpu_dai_drv.symmetric_channels = 1;
> sai->cpu_dai_drv.symmetric_sample_bits = 1;
> + sai->cpu_dai_drv.name = "abc";
>
> if (of_find_property(np, "fsl,sai-synchronous-rx", NULL) &&
> of_find_property(np, "fsl,sai-asynchronous", NULL)) {
Ok here it is whats going on:
We have a simple-audio-card. We use
freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts. The codec name is
parsed correctly and set to either f140000.audio-controller or
f150000.audio-controller. Thus have different names. _But_ later
asoc_simple_canonicalize_cpu() will reset the dai_name pointer to
NULL in simple_parse_node() if "single" is 1 and then we end up
having two links with the same name.
Which begs the two questions:
(1) What is "single" actually and when should it be 1?
(2) If single is 1, then the sysfs file will be named
"(null)-codec-name".
Do we want that?
I guess there is a reason for it to be set to NULL, see [1].
-michael
[1]
https://elixir.bootlin.com/linux/v5.12/source/sound/soc/generic/simple-card-utils.c#L420
next prev parent reply other threads:[~2021-04-27 15:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6080e82c.1c69fb81.cd60c.2a13@mx.google.com>
2021-04-22 13:37 ` Guillaume Tucker
2021-04-26 0:41 ` Kuninori Morimoto
2021-04-26 14:42 ` Mark Brown
2021-04-26 22:28 ` Kuninori Morimoto
2021-04-27 10:19 ` Mark Brown
2021-04-27 12:51 ` Guillaume Tucker
2021-04-27 13:43 ` Michael Walle
2021-04-27 13:57 ` Mark Brown
2021-04-27 14:16 ` Michael Walle
2021-04-27 15:29 ` Michael Walle [this message]
2021-04-27 15:31 ` Michael Walle
2021-05-09 23:16 ` Kuninori Morimoto
2021-05-10 11:52 ` Michael Walle
2021-05-10 22:16 ` Kuninori Morimoto
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=a1ec388def4febd9af6ef477245ef2d3@walle.cc \
--to=michael@walle.cc \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=guillaume.tucker@collabora.com \
--cc=heiko.thiery@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=kernelci-results@groups.io \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=stephan@gerhold.net \
--cc=tiwai@suse.com \
--cc=treding@nvidia.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®