[PATCH 3/4] ASoC: wm8904: extend device tree support
Mark Brown
broonie at kernel.org
Mon Jun 20 17:12:41 CEST 2022
On Mon, Jun 20, 2022 at 02:32:17PM +0000, Pierluigi Passaro wrote:
> > > + - drc-cfg-regs: Default registers value for R40/41/42/43 (DRC)
> > > + The list must be (4 x num-drc-cfgs) entries long.
> > > + If absent or incomplete, DRC is disabled.
> > What is the purpose of having num-drc-cfgs? We can tell how large
> > drc-cfg-regs is so it just seems redundant.
> Can you please point me to any reference implementation doing this ?
of_property_read_variable_uX_array() should do what you want, you can
also use of_property_count_elems_of_size(). The main DT API header is
linux/of.h.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20220620/3793b0c1/attachment.sig>
More information about the Alsa-devel
mailing list