diff options
author | Takashi Iwai <tiwai@suse.de> | 2022-06-09 14:02:17 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-06-15 07:45:27 +0200 |
commit | 1b7ec5143c34f167266fa21245d99bacb4db4aa6 (patch) | |
tree | 7f400772a2acd30bfcb8025213b9217404210de1 /sound/core/control.c | |
parent | 2c7463d070c4e49ff850322d4f0321e97b0b6740 (diff) | |
download | linux-stable-1b7ec5143c34f167266fa21245d99bacb4db4aa6.tar.gz linux-stable-1b7ec5143c34f167266fa21245d99bacb4db4aa6.tar.bz2 linux-stable-1b7ec5143c34f167266fa21245d99bacb4db4aa6.zip |
ALSA: control: Rename CONFIG_SND_CTL_VALIDATION to CONFIG_SND_CTL_DEBUG
The purpose of CONFIG_SND_CTL_VALIDATION is rather to enable the
debugging feature for the control API. The validation is only a part
of it. Let's rename it to be more explicit and intuitive.
While we're at it, let's advertise, give more comment to recommend
this feature for development in the kconfig help text.
Link: https://lore.kernel.org/r/20220609120219.3937-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/control.c')
-rw-r--r-- | sound/core/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index 6a8fd9933f06..1401522ce552 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -966,7 +966,7 @@ static const unsigned int value_sizes[] = { [SNDRV_CTL_ELEM_TYPE_INTEGER64] = sizeof(long long), }; -#ifdef CONFIG_SND_CTL_VALIDATION +#ifdef CONFIG_SND_CTL_DEBUG /* fill the remaining snd_ctl_elem_value data with the given pattern */ static void fill_remaining_elem_value(struct snd_ctl_elem_value *control, struct snd_ctl_elem_info *info, @@ -1188,7 +1188,7 @@ static int snd_ctl_elem_read(struct snd_card *card, snd_ctl_build_ioff(&control->id, kctl, index_offset); -#ifdef CONFIG_SND_CTL_VALIDATION +#ifdef CONFIG_SND_CTL_DEBUG /* info is needed only for validation */ memset(&info, 0, sizeof(info)); info.id = control->id; |