summaryrefslogtreecommitdiffstats
path: root/sound/usb/pcm.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-08-09 20:15:44 +0200
committerTakashi Iwai <tiwai@suse.de>2022-08-10 11:53:27 +0200
commit6b2394bad503bfada6f677ad2574b2ef8178b1bf (patch)
treea57d204ead3a46fd5665933ce43f3de1033d4542 /sound/usb/pcm.c
parentALSA: hda/realtek: Add a quirk for HP OMEN 15 (8786) mute LED (diff)
downloadlinux-6b2394bad503bfada6f677ad2574b2ef8178b1bf.tar.xz
linux-6b2394bad503bfada6f677ad2574b2ef8178b1bf.zip
ALSA: usb-audio: make read-only array marker static const
Don't populate the read-only array marker on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220809181544.3046429-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/pcm.c')
-rw-r--r--sound/usb/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index e692ae04436a..d45d1d7e6664 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -1269,7 +1269,7 @@ static inline void fill_playback_urb_dsd_dop(struct snd_usb_substream *subs,
unsigned int wrap = subs->buffer_bytes;
u8 *dst = urb->transfer_buffer;
u8 *src = runtime->dma_area;
- u8 marker[] = { 0x05, 0xfa };
+ static const u8 marker[] = { 0x05, 0xfa };
unsigned int queued = 0;
/*