OSDN Git Service

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)
commit0bed2aa3ac5cbbd0b89bf5e94f165e2ef18180ad
treec68cbf326fce4477f7a0b74860879e1c91c67126
parent3bf29db731ce22480de748464031b4447b248c0f
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