Hui Wang 033e4040d4 ALSA: hda - Fix the return value if cb func is already registered
If the cb function is already registered, should return the pointer
of the structure hda_jack_callback which contains this cb func, but
instead it returns the NULL.

Now fix it by replacing func_is_already_in_callback_list() with
find_callback_from_list().

Fixes: f4794c6064a8 ("ALSA: hda - Don't register a cb func if it is registered already")
Reported-and-suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20201022030221.22393-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-10-22 08:17:02 +02:00
..
2020-01-05 16:14:47 +01:00
2020-10-08 15:02:31 +02: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