[alsa-devel] [PATCH] ASoC: codecs/sgtl5000.c: specify correct reg_stride in regmap_config.

David Jander david.jander at protonic.nl
Mon Aug 26 08:18:01 CEST 2013


On Sun, 25 Aug 2013 16:44:26 +0800
zengzhaoming <zengzm.kernel at gmail.com> wrote:

> On 08-22/08:23, David Jander wrote:
> > This makes the RB-Tree more compact and efficient.
> > 
> > Signed-off-by: David Jander <david at protonic.nl>
> > ---
> >  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 760e8bf..ba5ca67 100644
> > --- a/sound/soc/codecs/sgtl5000.c
> > +++ b/sound/soc/codecs/sgtl5000.c
> > @@ -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,
> >  
> >  	.max_register = SGTL5000_MAX_REG_OFFSET,
> >  	.volatile_reg = sgtl5000_volatile,
> > -- 
> > 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,

-- 
David Jander
Protonic Holland.


More information about the Alsa-devel mailing list