[PATCH][next] ALSA: aloop: make read-only array texts static const

From: Colin Ian King

Date: Tue Jul 14 2026 - 12:35:12 EST


Don't populate the read-only const array texts on the stack at run time,
instead make it static.

Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>
---
sound/drivers/aloop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c
index 236f49a7fb8b..7ebe8e5c9303 100644
--- a/sound/drivers/aloop.c
+++ b/sound/drivers/aloop.c
@@ -1668,7 +1668,7 @@ static int loopback_channels_get(struct snd_kcontrol *kcontrol,
static int loopback_access_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
- const char * const texts[] = {"Interleaved", "Non-interleaved"};
+ static const char * const texts[] = {"Interleaved", "Non-interleaved"};

return snd_ctl_enum_info(uinfo, 1, ARRAY_SIZE(texts), texts);
}
--
2.53.0