Re: [PATCH] ASoC: MT6660 update to 1.0.8_G

From: Mark Brown
Date: Mon Feb 10 2020 - 13:51:26 EST


On Tue, Feb 04, 2020 at 11:41:37AM +0800, Jeff Chang wrote:
> From: Jeff Chang <jeff_chang@xxxxxxxxxxx>
>
> 1. add parsing register initial table via device tree.
> 2. add applying initial register value function at component driver.

OK, so there's still a problem with the whole concept of putting
"initial register settings" in the device tree - this is clearly not
idiomatic for an ASoC driver. If there are machine specific settings
that need to be done unconditionally (eg, values controlled by external
passive components) there should be specific properties for them. If
there are runtime options these should be normal ALSA controls with the
default values being whatever the hardware defaults are. If there are
things that should just always be set no matter what then they should
just be hard coded into the driver.

Attachment: signature.asc
Description: PGP signature