linux_dsm_epyc7002/sound/pci/hda
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: f4794c6064 ("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
..
ca0132_regs.h
hda_auto_parser.c ALSA: hda: auto_parser: remove shadowed variable declaration 2020-09-03 09:27:00 +02:00
hda_auto_parser.h
hda_beep.c
hda_beep.h
hda_bind.c
hda_codec.c ALSA: HDA: Early Forbid of runtime PM 2020-09-30 16:52:48 +02:00
hda_controller_trace.h
hda_controller.c
hda_controller.h
hda_eld.c
hda_generic.c ALSA: pci: delete repeated words in comments 2020-08-06 09:30:02 +02:00
hda_generic.h
hda_hwdep.c
hda_intel_trace.h
hda_intel.c ALSA: hda: fix jack detection with Realtek codecs when in D3 2020-10-12 13:00:22 +02:00
hda_intel.h
hda_jack.c ALSA: hda - Fix the return value if cb func is already registered 2020-10-22 08:17:02 +02:00
hda_jack.h ALSA: hda: (cosmetic) align function parameters 2020-09-03 09:27:11 +02:00
hda_local.h ALSA: hda: (cosmetic) align function parameters 2020-09-03 09:27:11 +02:00
hda_proc.c
hda_sysfs.c
hda_tegra.c ALSA: hda/tegra: Program WAKEEN register for Tegra 2020-08-25 09:32:42 +02:00
hp_x360_helper.c
Kconfig
Makefile
patch_analog.c
patch_ca0110.c
patch_ca0132.c ALSA: hda/ca0132: make some const arrays static, makes object smaller 2020-10-17 09:58:59 +02:00
patch_cirrus.c
patch_cmedia.c
patch_conexant.c
patch_hdmi.c ALSA: hda/hdmi: fix incorrect locking in hdmi_pcm_close 2020-10-13 18:34:35 +02:00
patch_realtek.c ALSA: hda: fix jack detection with Realtek codecs when in D3 2020-10-12 13:00:22 +02:00
patch_si3054.c
patch_sigmatel.c ALSA: pci: delete repeated words in comments 2020-08-06 09:30:02 +02:00
patch_via.c
thinkpad_helper.c