
12 May
2014
12 May
'14
5:51 p.m.
On 05/12/2014 01:08 PM, Bard Liao wrote:
2014-05-08 16:57 GMT+08:00 Lars-Peter Clausen lars@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:
- 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.
- 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