14 Feb
2020
14 Feb
'20
10:34 a.m.
Hi, Tzung-Bi:
On Fri, 2020-02-14 at 15:35 +0800, Tzung-Bi Shih wrote:
On Fri, Feb 14, 2020 at 3:07 PM CK Hu ck.hu@mediatek.com wrote:
I think sound driver could be removed for some reason, and fn should be set to NULL before sound driver removed. In this case, codec_dev != NULL and fn == NULL.
No..if you see sound/soc/codecs/hdmi-codec.c, plugged_cb is statically allocated.
It looks like that even though sound driver is removed, hdmi driver would still callback to sound core. This is so weird. After sound driver is removed, hdmi driver would callback with codec_dev which is invalid. I think this may cause some problem.
Regards, CK