Hui Wang f4794c6064 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>
2020-09-30 12:56:32 +02:00
..
2020-01-05 16:14:47 +01:00
2020-01-05 16:14:30 +01:00
2020-07-09 13:01:29 +02:00
2020-07-09 13:01:29 +02:00
2020-01-05 16:14:55 +01:00
2020-01-05 16:15:10 +01:00
2020-01-05 16:15:11 +01:00
2020-07-07 12:12:21 +02:00
2019-10-07 03:53:03 +02:00
2020-01-28 16:26:57 -08:00
2020-01-28 16:26:57 -08:00
2020-01-28 16:26:57 -08:00