ALSA: hda: Move widget capability macros into hdaudio.h
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Jul 2025 16:04:04 +0000 (18:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Jul 2025 07:55:36 +0000 (09:55 +0200)
commited677858d4fe8d165952c1794898d6fc0b65ddfe
tree7680479a57b09af5fd8b7812f91f3669a8679e7b
parentbee60f019606827363d7e355b2e859e29e928c3a
ALSA: hda: Move widget capability macros into hdaudio.h

The get_wcaps() and co are used not only by HD-audio core but also
other driver code, hence it'd be better to put into the common header
instead of local.h.

OTOH, there are macros of the same name like get_wcaps() that are
still used in sound/pci/hda/* locally, and those conflict with each
other.  So we need to rename get_wcaps() (to be moved from hda-core)
with the proper snd_hdac prefix for avoiding name conflicts, and
define in the common hdaudio.h.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-2-tiwai@suse.de
include/sound/hdaudio.h
sound/hda/hdac_device.c
sound/hda/hdac_sysfs.c
sound/hda/local.h
sound/soc/codecs/hdac_hdmi.c