\kernel\sound\soc\codecs\Msm8x16-wcd.c
|->snd_ctl_elem_write_user-内核钩子函数
|->snd_ctl_find_id-遍历kcontrol链表找到与给定id相匹配的kctl
|->kctl->put()-调用kctl的成员函数put()
modem重启了的代码:\kernel\drivers\soc\qcom\smd.c
起始ioctl:\kernel\sound\core\control_compat.c
snd_ctl_elem_write_user_compat >> snd_ctl_elem_write >> result = kctl->put(kctl, control);
ADC1 Volume函数get put设置\kernel\sound\soc\codecs\msm8x16-wcd.c
最终读写寄存器函数:\kernel\sound\soc\soc-core.c
更往上:\kernel\sound\core\control.c:
来源:CSDN
作者:sunshine_liusu
链接:https://blog.csdn.net/sunshine_liusu/article/details/103716617