[alsa-devel] [PATCH] ASoC: snd_soc_tas5086: Reinit register values on probe

Mark Brown broonie at kernel.org
Wed Mar 25 17:20:29 CET 2015


On Wed, Mar 25, 2015 at 04:29:39PM +0100, Pascal Huerst wrote:

> If the machine driver has been un/reloaded, the register values of
> the codec driver have to be reinitialized in order to run properly.

Hrm.  This isn't something that I'd expect to be required - I'd expect
that as part of the machine driver teardown to put the hardware into a
reasonable default state so that things come back as normal.  Can you be
a bit more specific about the problem that you are seeing?  We probably
shouldn't need the existing reset that's in the ASoC level probe either.

I do think a version of this is useful regardless of the above...

>  	tas5086_reset(priv);
> +	regcache_mark_dirty(priv->regmap);

Since the device has hardware reset support we really ought to be able
to do the register cache resync only if the reset GPIO is missing.  How
about putting your code into the reset function and doing it in the
case where the reset GPIO is missing?  That way anything that thinks
it's resetting the device will get the benefit of your code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150325/9b29dccc/attachment.sig>


More information about the Alsa-devel mailing list