Commit aa38e71d authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Takashi Iwai

ALSA: pci: make snd_pcm_hardware const

Make these const as they are only used in a copy operation.
Done using Coccinelle.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3068116f
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define VORTEX_PCM_TYPE(x) (x->name[40]) #define VORTEX_PCM_TYPE(x) (x->name[40])
/* hardware definition */ /* hardware definition */
static struct snd_pcm_hardware snd_vortex_playback_hw_adb = { static const struct snd_pcm_hardware snd_vortex_playback_hw_adb = {
.info = .info =
(SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -51,7 +51,7 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_adb = { ...@@ -51,7 +51,7 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_adb = {
}; };
#ifndef CHIP_AU8820 #ifndef CHIP_AU8820
static struct snd_pcm_hardware snd_vortex_playback_hw_a3d = { static const struct snd_pcm_hardware snd_vortex_playback_hw_a3d = {
.info = .info =
(SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -71,7 +71,7 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_a3d = { ...@@ -71,7 +71,7 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_a3d = {
.periods_max = 64, .periods_max = 64,
}; };
#endif #endif
static struct snd_pcm_hardware snd_vortex_playback_hw_spdif = { static const struct snd_pcm_hardware snd_vortex_playback_hw_spdif = {
.info = .info =
(SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -94,7 +94,7 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_spdif = { ...@@ -94,7 +94,7 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_spdif = {
}; };
#ifndef CHIP_AU8810 #ifndef CHIP_AU8810
static struct snd_pcm_hardware snd_vortex_playback_hw_wt = { static const struct snd_pcm_hardware snd_vortex_playback_hw_wt = {
.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_MMAP_VALID), SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment