[alsa-devel] [PATCH RFT] ASoC: ak4642: Fix up max_register setting

Mark Brown broonie at kernel.org
Tue Jun 30 12:46:08 CEST 2015


On Sun, Jun 28, 2015 at 10:46:51AM +0800, Axel Lin wrote:

>  static const struct regmap_config ak4642_regmap = {
>  	.reg_bits		= 8,
>  	.val_bits		= 8,
> -	.max_register		= ARRAY_SIZE(ak4642_reg) + 1,
> +	.max_register		= FIL1_3,
>  	.reg_defaults		= ak4642_reg,
> -	.num_reg_defaults	= ARRAY_SIZE(ak4642_reg),
> +	.num_reg_defaults	= FIL1_3 + 1,

This change is incorrect, the number of register defaults must match the
size of the array of register defaults being passed in.  Why are you
changing this?
-------------- 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/20150630/eeeb5cac/attachment.sig>


More information about the Alsa-devel mailing list