[alsa-devel] ASoC: TI codecs and their crazy variable length registers
Lars-Peter Clausen
lars at metafoo.de
Thu Jul 31 09:01:09 CEST 2014
On 07/31/2014 01:17 AM, Mark Brown wrote:
> On Wed, Jul 30, 2014 at 05:56:36PM -0400, jonsmirl at gmail.com wrote:
>
>> I'm working on a TI codec attached via I2C. Just to make things
>> interesting the registers have varying byte lengths of - 1,4,8,12,20
>> bytes. What's the best strategy for using regmap with it?
>
> I'd use the reg_read() and reg_write() callbacks to hide the registers
> that will fit in an integer, the rest of the stack can pretend they've
> got 32 bit values which should improve code reuse.[...]
The adau1701 is a driver that for example does this.
More information about the Alsa-devel
mailing list