20 Apr
2018
20 Apr
'18
9:54 a.m.
the regmap is obtain from parent dev, i assume i can use snd_soc_component_init_regmap() as alternative for get_regmap().callback?
Yes, though you shouldn't even need to do that - the core should just try using the parent regmap if none is provided.
From my experiment, the register cannot be controlled without calling
snd_soc_component_init_regmap(). ASoC didn't seems to get the parent's regmap directly, also from code tracing.