Re: [PATCH v3 1/3] ASoC: codecs: nau8360: set val_bits to the widest register size
From: Andy Shevchenko
Date: Thu Dec 03 2026 - 05:04:14 EST
On Sun, Nov 29, 2026 at 12:18:05PM +0000, Raffaele Tranfaglia via B4 Relay wrote:
>
> The regmap is configured with val_bits = 16, but the two DSP registers
> are 32 bits wide: nau8360_reg_write() sends four bytes for them, and the
> DSP messages written with snd_soc_component_write() use all 32 bits.
>
> This works because the driver provides its own reg_read() and
> reg_write() and regmap passes the value through unmodified. As regmap is
> going to mask values to val_bits, set it to 32, the size of the widest
> register. The size of each access is still selected in the driver's
> reg_read() and reg_write().
I was asking last round (and sorry if I don't remember the answer) if we can
use val_bits == 0 in this case like other custom cases use?
--
With Best Regards,
Andy Shevchenko