[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZvKjwNiVIaPJRgCz@finisterre.sirena.org.uk>
Date: Tue, 24 Sep 2024 13:34:24 +0200
From: Mark Brown <broonie@...nel.org>
To: Andrei Simion <andrei.simion@...rochip.com>
Cc: alexandre.belloni@...tlin.com, alsa-devel@...a-project.org,
claudiu.beznea@...on.dev, lgirdwood@...il.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-sound@...r.kernel.org, nicolas.ferre@...rochip.com,
perex@...ex.cz, tiwai@...e.com
Subject: Re: [PATCH] ASoC: atmel: mchp-pdmc: Skip ALSA restoration if
substream runtime is uninitialized
On Tue, Sep 24, 2024 at 02:25:44PM +0300, Andrei Simion wrote:
> On 24.09.2024 11:59, Mark Brown wrote:
> > On Tue, Sep 24, 2024 at 11:12:38AM +0300, Andrei Simion wrote:
> > This then means that control writes are just discarded which presumably
> > is going to upset things if they actually saved a value here. Why is
> > that a good choice, rather than either fixing the race so the card
> > doesn't come up too early or removing the need for the runtime?
> Ok. I understand. My first intention was to follow the
> https://github.com/torvalds/linux/blob/master/sound/hda/hdmi_chmap.c#L794
> but after your point of view, I intend to return -EAGAIN in V2
> to specify the substream->runtime is not ready.
> I retested: configured pdmc, then reboot the board and the configuration:
> as a result the configuration kept.
> alsa-restore.service status success.
> Do you think this solution is enough?
Ah, I'm a little surprised that we baked retries like that into the API
but if userspace already understands that then that'd be fine. Though
now I see that the HDA code already does what your existing patch does
I'm happy to just queue this version, HDA is so widely deployed that I'd
guess everything will DTRT and it's probably best to be consistent.
Sorry, I hadn't seen these nuances of the channel map interface before.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists