Searched hist:f4794c6064a83d2c57b264bd299c367d172d1044 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/pci/hda/ |
H A D | hda_jack.c | diff f4794c6064a83d2c57b264bd299c367d172d1044 Wed Sep 30 00:51:46 CDT 2020 Hui Wang <hui.wang@canonical.com> ALSA: hda - Don't register a cb func if it is registered already
If the caller of enable_callback_mst() passes a cb func, the callee function will malloc memory and link this cb func to the list unconditionally. This will introduce problem if caller is in the hda_codec_ops.init() since the init() will be repeatedly called in the codec rt_resume().
So far, the patch_hdmi.c and patch_ca0132.c call enable_callback_mst() in the hda_codec_ops.init().
Signed-off-by: Hui Wang <hui.wang@canonical.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20200930055146.5665-1-hui.wang@canonical.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
|