[alsa-devel] [PATCH 1/3] ASoC: sglt5000: Provide the reg_stride field

Fabio Estevam festevam at gmail.com
Thu Jul 4 23:08:48 CEST 2013


From: Fabio Estevam <fabio.estevam at freescale.com>

sgtl5000 has 16-bit registers, so we need to tell regmap to use a reg_stride of
two bytes.

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 sound/soc/codecs/sgtl5000.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index d441559..7c99f3c 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -1470,6 +1470,7 @@ static struct snd_soc_codec_driver sgtl5000_driver = {
 static const struct regmap_config sgtl5000_regmap = {
 	.reg_bits = 16,
 	.val_bits = 16,
+	.reg_stride = 2,
 
 	.max_register = SGTL5000_MAX_REG_OFFSET,
 	.volatile_reg = sgtl5000_volatile,
-- 
1.8.1.2



More information about the Alsa-devel mailing list