ALSA: hda: Always check capability at opening a hwdep
authorTakashi Iwai <tiwai@suse.de>
Tue, 3 Dec 2024 13:52:47 +0000 (14:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Dec 2024 14:20:31 +0000 (15:20 +0100)
commitd7b6d5d949ca73d51123a9e95e141376e04609f0
tree0feec39925e6c6bafd4db484100b96cdd46b3c2d
parent24a53864da2623bd90ecd51abdfb60426dc89abe
ALSA: hda: Always check capability at opening a hwdep

We have a capability check at hda_hwdep_open(), but it's applied only
conditionally and the check is skipped when CONFIG_SND_DEBUG_VERBOSE
is set.  This is rather inconsistent behavior, and we should apply the
check always no matter which config is chosen.

Link: https://patch.msgid.link/20241203135248.19840-1-tiwai@suse.de
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_hwdep.c