Skip to contentSkip to conversation

Unmark struct snd_pcm_hardware const

snd-usb-6fire René Herman 1 participant 1 message Jul 14, 2020 Sound

lore
Share & tools
lore
#0 lore raw

struct snd_pcm_hardware pcm_hw is in fact changed in usb6fire_pcm_open()

From 114ca1103f0545b320db658c794cd5ad6723272a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Herman?= <[email protected]>
Date: Sun, 12 Jul 2020 01:44:53 +0200
Subject: [PATCH 3/3] [snd-usb-6fire] Unmark struct snd_pcm_hardware const
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

struct snd_pcm_hardware pcm_hw is in fact changed in usb6fire_pcm_open()

---
 sound/usb/6fire/pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/usb/6fire/pcm.c +1 -1
index cce1312db93a..8ccf6384eff9 100644
@@ -40,7 +40,7 @@ enum { /* pcm streaming states */
 	STREAM_STOPPING
 };
 
-static const struct snd_pcm_hardware pcm_hw = {
+static struct snd_pcm_hardware pcm_hw = {
 	.info = SNDRV_PCM_INFO_MMAP |
 		SNDRV_PCM_INFO_INTERLEAVED |
 		SNDRV_PCM_INFO_BLOCK_TRANSFER |
Signature · 1 line
2.17.1