aboutsummaryrefslogtreecommitdiffstats
path: root/sound/aoa/codecs/tas.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 09:16:48 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-03 09:24:22 +0100
commitdde5199c988b16426cf9a4e0df4b7ae06790471e (patch)
treeda24031c3c895ecb5543a0aa95d2d836fd58ce16 /sound/aoa/codecs/tas.c
parentALSA: mixer: oss: Constify snd_mixer_oss_assign_table definition (diff)
downloadlinux-dev-dde5199c988b16426cf9a4e0df4b7ae06790471e.tar.xz
linux-dev-dde5199c988b16426cf9a4e0df4b7ae06790471e.zip
ALSA: aoa: Constify snd_kcontrol_new items
Most of snd_kcontrol_new definitions are read-only and passed as-is. Let's declare them as const for further optimization. There should be no functional changes by this patch. Link: https://lore.kernel.org/r/20200103081714.9560-33-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
-rw-r--r--sound/aoa/codecs/tas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/aoa/codecs/tas.c b/sound/aoa/codecs/tas.c
index c60b78367fc9..d3e37577b529 100644
--- a/sound/aoa/codecs/tas.c
+++ b/sound/aoa/codecs/tas.c
@@ -369,7 +369,7 @@ static int tas_snd_mixer_put(struct snd_kcontrol *kcontrol,
}
#define MIXER_CONTROL(n,descr,idx) \
-static struct snd_kcontrol_new n##_control = { \
+static const struct snd_kcontrol_new n##_control = { \
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = descr " Playback Volume", \
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE, \