[alsa-devel] [PATCH v6] ASoC: add RT286 CODEC driver

Lars-Peter Clausen lars at metafoo.de
Mon May 12 16:51:53 CEST 2014

On 05/12/2014 01:08 PM, Bard Liao wrote:
> 2014-05-08 16:57 GMT+08:00 Lars-Peter Clausen <lars at metafoo.de>:
>> On 05/08/2014 10:00 AM, Mark Brown wrote:
> [...]
> Just for confirm.
>  From the mail thread, what I need to to are:
> 1. Don't present register map to alsa, use virtrul controls instead.
>     I may need to extend the APIs to accomplish the goal.

To avoid confusion we should not call them virtual controls, but controls 
with custom put/get handlers.

> 2. I can (or should?) use regmap internal to codec driver to set the
> codec physically.
> Did I miss anything?

There are essentially two options.

a) Have custom put/get handlers for different types of verbs. This means 
you'll re-implement things like caching.

b) Have a mapping that maps the hierarchical HDA register addressing 
structure onto a linear address map and use regmap.

- Lars

More information about the Alsa-devel mailing list