|
A little late to the show, but I also know the pain of poorly-used regmap and wrangling sound_soc drivers, WM8962 in my case. Regmap is actually pretty dang cool, but if misused it creates major headaches. The default values array thing is kind of hacky because I wouldn't depend on them not changing between codec chip revisions, but I get that it satisfies some needs. Because of that I'm conservative about what goes into the default values array. If you're not too worried about the power or latency costs of read/modify/write cycles when changing codec settings, just disable regmap caching entirely, which it looks like you've done by setting the cache bypass flag. The other way of disabling it is at regmap init, there's an option for a cache type and REGCAHCE_NONE is valid. http://lxr.free-electrons.com/source/include/linux/regmap.h?v=3.2 Also, Mark Brown, the author of regmap, has answered my questions before on the alsa dev irc channel.
|
# ¿ Nov 11, 2016 01:50 |
|
|
# ¿ May 16, 2024 07:13 |