]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Sanity check of unexpected cap_sync_hook override
authorTakashi Iwai <tiwai@suse.de>
Tue, 19 Jun 2018 10:45:53 +0000 (12:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 Jun 2018 11:54:37 +0000 (13:54 +0200)
commit6ce95061b22240574dbb4209cadb6879e9d9150e
treec68cbf326fce4477f7a0b74860879e1c91c67126
parent9d60db8215d761fdd68b8e1446a7d71bae277260
ALSA: hda - Sanity check of unexpected cap_sync_hook override

There are a couple of places setting cap_sync_hook in the codec
drivers, and they just overwrite the value.  Add a sanity check via
WARN_ON() in case if an old non-NULL value is overridden and
forgotten.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c