[alsa-devel] [PATCH] ASoC: rsnd: Protect register accesses with a spinlock instead of a mutex

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Jul 28 09:40:40 CEST 2014


Hi Lars
# added Mark

> > Hmm... rsnd driver is using "regmap_field".
> > regmap-mmio  requests "offset"  on "reg"
> > regmap-filed requests "address" on "reg"
> >
> > So, if rsnd driver uses regmap-mmio,
> > then, it needs tricky initialize like...
> >
> >        regmap_init_mmio(dev, 0, config)
> >
> 
> Create one regmap instance per base address and in the regmap_fields use an 
> relative offset to the base address rather than the absolute address. That's 
> how the API is intended to be used, the current implementation is quite a hack.

Hmm...
But it (= base address mapping was not fixed between Gen1 and Gen2)
was the reason why I was asked to use regmap_fields



More information about the Alsa-devel mailing list