media: usb: make snd_pcm_hardware const
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
1ab2234eef
commit
38c4f03acf
|
@ -403,7 +403,7 @@ static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct snd_pcm_hardware snd_cx231xx_hw_capture = {
|
static const struct snd_pcm_hardware snd_cx231xx_hw_capture = {
|
||||||
.info = SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
.info = SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
||||||
SNDRV_PCM_INFO_MMAP |
|
SNDRV_PCM_INFO_MMAP |
|
||||||
SNDRV_PCM_INFO_INTERLEAVED |
|
SNDRV_PCM_INFO_INTERLEAVED |
|
||||||
|
|
|
@ -216,7 +216,7 @@ static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct snd_pcm_hardware snd_em28xx_hw_capture = {
|
static const struct snd_pcm_hardware snd_em28xx_hw_capture = {
|
||||||
.info = SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
.info = SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
||||||
SNDRV_PCM_INFO_MMAP |
|
SNDRV_PCM_INFO_MMAP |
|
||||||
SNDRV_PCM_INFO_INTERLEAVED |
|
SNDRV_PCM_INFO_INTERLEAVED |
|
||||||
|
|
|
@ -52,7 +52,7 @@ struct go7007_snd {
|
||||||
int capturing;
|
int capturing;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct snd_pcm_hardware go7007_snd_capture_hw = {
|
static const struct snd_pcm_hardware go7007_snd_capture_hw = {
|
||||||
.info = (SNDRV_PCM_INFO_MMAP |
|
.info = (SNDRV_PCM_INFO_MMAP |
|
||||||
SNDRV_PCM_INFO_INTERLEAVED |
|
SNDRV_PCM_INFO_INTERLEAVED |
|
||||||
SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
||||||
|
|
|
@ -143,7 +143,7 @@ static int dsp_buffer_alloc(struct snd_pcm_substream *substream, int size)
|
||||||
*/
|
*/
|
||||||
#define DEFAULT_FIFO_SIZE 4096
|
#define DEFAULT_FIFO_SIZE 4096
|
||||||
|
|
||||||
static struct snd_pcm_hardware snd_tm6000_digital_hw = {
|
static const struct snd_pcm_hardware snd_tm6000_digital_hw = {
|
||||||
.info = SNDRV_PCM_INFO_BATCH |
|
.info = SNDRV_PCM_INFO_BATCH |
|
||||||
SNDRV_PCM_INFO_MMAP |
|
SNDRV_PCM_INFO_MMAP |
|
||||||
SNDRV_PCM_INFO_INTERLEAVED |
|
SNDRV_PCM_INFO_INTERLEAVED |
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
#include "usbtv.h"
|
#include "usbtv.h"
|
||||||
|
|
||||||
static struct snd_pcm_hardware snd_usbtv_digital_hw = {
|
static const struct snd_pcm_hardware snd_usbtv_digital_hw = {
|
||||||
.info = SNDRV_PCM_INFO_BATCH |
|
.info = SNDRV_PCM_INFO_BATCH |
|
||||||
SNDRV_PCM_INFO_MMAP |
|
SNDRV_PCM_INFO_MMAP |
|
||||||
SNDRV_PCM_INFO_INTERLEAVED |
|
SNDRV_PCM_INFO_INTERLEAVED |
|
||||||
|
|
Loading…
Reference in New Issue