ASoC: ak4642: Fix up max_register setting
authorAxel Lin <axel.lin@ingics.com>
Tue, 30 Jun 2015 16:56:36 +0000 (00:56 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 6 Jun 2016 23:11:09 +0000 (19:11 -0400)
commit8f4c6107b294031ee827d818eb9ccc5b65bd4f07
tree96f856fa5362176fb56c15d499bad23752e1b099
parent94f1ab98fecf6cc48c0074f37a77f7b63c54fb1d
ASoC: ak4642: Fix up max_register setting

[ Upstream commit f8ea6cebcfa6499949392da71fc427567c9e5a0e ]

The max_register setting for ak4642, ak4643 and ak4648 are wrong, fix it.

According to the datasheet:
        the maximum valid register for ak4642 is 0x1f
        the maximum valid register for ak4643 is 0x24
        the maximum valid register for ak4648 is 0x27

The default settings for ak4642 and ak4643 are the same for 0x0 ~ 0x1f
registers, so it's fine to use the same reg_default table with differnt
num_reg_defaults setting.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/soc/codecs/ak4642.c