Skip to contentSkip to conversation

ASoC: codecs/sgtl5000.c: specify correct reg_stride in regmap_config.

PATCH David Jander 2 participants 2 messages Aug 26, 2013 – Aug 27, 2013 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20130825084426.GA10708@zzm-ubuntu

#2 lore raw
Quoted 18 lines · On Sun, 25 Aug 2013 16:44:26 +0800 zengzhaoming <[email protected]> wrote:
Quoted 17 lines · David Jander

This makes the RB-Tree more compact and efficient.

---
 sound/soc/codecs/sgtl5000.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/sgtl5000.c +1 -0
index 760e8bf..ba5ca67 100644
@@ -1480,6 +1480,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,
 
Quoted 7 lines
Quoted 4 lines
sound/soc/codecs/sgtl5000.c +0 -0
 	.max_register = SGTL5000_MAX_REG_OFFSET,
 	.volatile_reg = sgtl5000_volatile,
Signature · 1 line
1.8.1.2

Fabio has post same patch for this.
http://comments.gmane.org/gmane.linux.alsa.devel/109903

Oh. I didn't see that one, sorry.
Fabio's patch is from July, 5th. It takes quite some time for this to hit mainline then....

Best regards,

Signature · 2 lines
David Jander
Protonic Holland.
#3 lore raw
Quoted 3 lines · David Jander

Oh. I didn't see that one, sorry.
Fabio's patch is from July, 5th. It takes quite some time for this to hit mainline then....

This patch is already in linux-next tree.

It will hit mainline in 3.12.