Commit dee49895 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 during 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 420b0c1b
...@@ -283,7 +283,7 @@ snd_ad1889_hw_free(struct snd_pcm_substream *substream) ...@@ -283,7 +283,7 @@ snd_ad1889_hw_free(struct snd_pcm_substream *substream)
return snd_pcm_lib_free_pages(substream); return snd_pcm_lib_free_pages(substream);
} }
static struct snd_pcm_hardware snd_ad1889_playback_hw = { static const struct snd_pcm_hardware snd_ad1889_playback_hw = {
.info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER,
.formats = SNDRV_PCM_FMTBIT_S16_LE, .formats = SNDRV_PCM_FMTBIT_S16_LE,
...@@ -300,7 +300,7 @@ static struct snd_pcm_hardware snd_ad1889_playback_hw = { ...@@ -300,7 +300,7 @@ static struct snd_pcm_hardware snd_ad1889_playback_hw = {
/*.fifo_size = 0,*/ /*.fifo_size = 0,*/
}; };
static struct snd_pcm_hardware snd_ad1889_capture_hw = { static const struct snd_pcm_hardware snd_ad1889_capture_hw = {
.info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER,
.formats = SNDRV_PCM_FMTBIT_S16_LE, .formats = SNDRV_PCM_FMTBIT_S16_LE,
......
...@@ -328,7 +328,7 @@ static int snd_als300_ac97(struct snd_als300 *chip) ...@@ -328,7 +328,7 @@ static int snd_als300_ac97(struct snd_als300 *chip)
* the card when it is running outside of legacy * the card when it is running outside of legacy
* mode. * mode.
*/ */
static struct snd_pcm_hardware snd_als300_playback_hw = static const struct snd_pcm_hardware snd_als300_playback_hw =
{ {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -347,7 +347,7 @@ static struct snd_pcm_hardware snd_als300_playback_hw = ...@@ -347,7 +347,7 @@ static struct snd_pcm_hardware snd_als300_playback_hw =
.periods_max = 2, .periods_max = 2,
}; };
static struct snd_pcm_hardware snd_als300_capture_hw = static const struct snd_pcm_hardware snd_als300_capture_hw =
{ {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
......
...@@ -592,7 +592,7 @@ static irqreturn_t snd_als4000_interrupt(int irq, void *dev_id) ...@@ -592,7 +592,7 @@ static irqreturn_t snd_als4000_interrupt(int irq, void *dev_id)
/*****************************************************************/ /*****************************************************************/
static struct snd_pcm_hardware snd_als4000_playback = static const struct snd_pcm_hardware snd_als4000_playback =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID), SNDRV_PCM_INFO_MMAP_VALID),
...@@ -611,7 +611,7 @@ static struct snd_pcm_hardware snd_als4000_playback = ...@@ -611,7 +611,7 @@ static struct snd_pcm_hardware snd_als4000_playback =
.fifo_size = 0 .fifo_size = 0
}; };
static struct snd_pcm_hardware snd_als4000_capture = static const struct snd_pcm_hardware snd_als4000_capture =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID), SNDRV_PCM_INFO_MMAP_VALID),
......
...@@ -1009,7 +1009,7 @@ static int snd_atiixp_pcm_hw_free(struct snd_pcm_substream *substream) ...@@ -1009,7 +1009,7 @@ static int snd_atiixp_pcm_hw_free(struct snd_pcm_substream *substream)
/* /*
* pcm hardware definition, identical for all DMA types * pcm hardware definition, identical for all DMA types
*/ */
static struct snd_pcm_hardware snd_atiixp_pcm_hw = static const struct snd_pcm_hardware snd_atiixp_pcm_hw =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -834,7 +834,7 @@ static int snd_atiixp_pcm_hw_free(struct snd_pcm_substream *substream) ...@@ -834,7 +834,7 @@ static int snd_atiixp_pcm_hw_free(struct snd_pcm_substream *substream)
/* /*
* pcm hardware definition, identical for all DMA types * pcm hardware definition, identical for all DMA types
*/ */
static struct snd_pcm_hardware snd_atiixp_pcm_hw = static const struct snd_pcm_hardware snd_atiixp_pcm_hw =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -353,7 +353,7 @@ static irqreturn_t snd_bt87x_interrupt(int irq, void *dev_id) ...@@ -353,7 +353,7 @@ static irqreturn_t snd_bt87x_interrupt(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static struct snd_pcm_hardware snd_bt87x_digital_hw = { static const struct snd_pcm_hardware snd_bt87x_digital_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 |
...@@ -370,7 +370,7 @@ static struct snd_pcm_hardware snd_bt87x_digital_hw = { ...@@ -370,7 +370,7 @@ static struct snd_pcm_hardware snd_bt87x_digital_hw = {
.periods_max = 255, .periods_max = 255,
}; };
static struct snd_pcm_hardware snd_bt87x_analog_hw = { static const struct snd_pcm_hardware snd_bt87x_analog_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 |
......
...@@ -1477,7 +1477,7 @@ static irqreturn_t snd_cmipci_interrupt(int irq, void *dev_id) ...@@ -1477,7 +1477,7 @@ static irqreturn_t snd_cmipci_interrupt(int irq, void *dev_id)
*/ */
/* playback on channel A */ /* playback on channel A */
static struct snd_pcm_hardware snd_cmipci_playback = static const struct snd_pcm_hardware snd_cmipci_playback =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE |
...@@ -1497,7 +1497,7 @@ static struct snd_pcm_hardware snd_cmipci_playback = ...@@ -1497,7 +1497,7 @@ static struct snd_pcm_hardware snd_cmipci_playback =
}; };
/* capture on channel B */ /* capture on channel B */
static struct snd_pcm_hardware snd_cmipci_capture = static const struct snd_pcm_hardware snd_cmipci_capture =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE |
...@@ -1517,7 +1517,7 @@ static struct snd_pcm_hardware snd_cmipci_capture = ...@@ -1517,7 +1517,7 @@ static struct snd_pcm_hardware snd_cmipci_capture =
}; };
/* playback on channel B - stereo 16bit only? */ /* playback on channel B - stereo 16bit only? */
static struct snd_pcm_hardware snd_cmipci_playback2 = static const struct snd_pcm_hardware snd_cmipci_playback2 =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE |
...@@ -1537,7 +1537,7 @@ static struct snd_pcm_hardware snd_cmipci_playback2 = ...@@ -1537,7 +1537,7 @@ static struct snd_pcm_hardware snd_cmipci_playback2 =
}; };
/* spdif playback on channel A */ /* spdif playback on channel A */
static struct snd_pcm_hardware snd_cmipci_playback_spdif = static const struct snd_pcm_hardware snd_cmipci_playback_spdif =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE |
...@@ -1557,7 +1557,7 @@ static struct snd_pcm_hardware snd_cmipci_playback_spdif = ...@@ -1557,7 +1557,7 @@ static struct snd_pcm_hardware snd_cmipci_playback_spdif =
}; };
/* spdif playback on channel A (32bit, IEC958 subframes) */ /* spdif playback on channel A (32bit, IEC958 subframes) */
static struct snd_pcm_hardware snd_cmipci_playback_iec958_subframe = static const struct snd_pcm_hardware snd_cmipci_playback_iec958_subframe =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE |
...@@ -1577,7 +1577,7 @@ static struct snd_pcm_hardware snd_cmipci_playback_iec958_subframe = ...@@ -1577,7 +1577,7 @@ static struct snd_pcm_hardware snd_cmipci_playback_iec958_subframe =
}; };
/* spdif capture on channel B */ /* spdif capture on channel B */
static struct snd_pcm_hardware snd_cmipci_capture_spdif = static const struct snd_pcm_hardware snd_cmipci_capture_spdif =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE |
......
...@@ -847,7 +847,7 @@ static snd_pcm_uframes_t snd_cs4281_pointer(struct snd_pcm_substream *substream) ...@@ -847,7 +847,7 @@ static snd_pcm_uframes_t snd_cs4281_pointer(struct snd_pcm_substream *substream)
snd_cs4281_peekBA0(chip, dma->regDCC) - 1; snd_cs4281_peekBA0(chip, dma->regDCC) - 1;
} }
static struct snd_pcm_hardware snd_cs4281_playback = static const struct snd_pcm_hardware snd_cs4281_playback =
{ {
.info = SNDRV_PCM_INFO_MMAP | .info = SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -872,7 +872,7 @@ static struct snd_pcm_hardware snd_cs4281_playback = ...@@ -872,7 +872,7 @@ static struct snd_pcm_hardware snd_cs4281_playback =
.fifo_size = CS4281_FIFO_SIZE, .fifo_size = CS4281_FIFO_SIZE,
}; };
static struct snd_pcm_hardware snd_cs4281_capture = static const struct snd_pcm_hardware snd_cs4281_capture =
{ {
.info = SNDRV_PCM_INFO_MMAP | .info = SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
......
...@@ -1059,7 +1059,7 @@ static snd_pcm_uframes_t snd_ensoniq_capture_pointer(struct snd_pcm_substream *s ...@@ -1059,7 +1059,7 @@ static snd_pcm_uframes_t snd_ensoniq_capture_pointer(struct snd_pcm_substream *s
return ptr; return ptr;
} }
static struct snd_pcm_hardware snd_ensoniq_playback1 = static const struct snd_pcm_hardware snd_ensoniq_playback1 =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
...@@ -1086,7 +1086,7 @@ static struct snd_pcm_hardware snd_ensoniq_playback1 = ...@@ -1086,7 +1086,7 @@ static struct snd_pcm_hardware snd_ensoniq_playback1 =
.fifo_size = 0, .fifo_size = 0,
}; };
static struct snd_pcm_hardware snd_ensoniq_playback2 = static const struct snd_pcm_hardware snd_ensoniq_playback2 =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
...@@ -1106,7 +1106,7 @@ static struct snd_pcm_hardware snd_ensoniq_playback2 = ...@@ -1106,7 +1106,7 @@ static struct snd_pcm_hardware snd_ensoniq_playback2 =
.fifo_size = 0, .fifo_size = 0,
}; };
static struct snd_pcm_hardware snd_ensoniq_capture = static const struct snd_pcm_hardware snd_ensoniq_capture =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -900,7 +900,7 @@ static int snd_es1938_pcm_hw_free(struct snd_pcm_substream *substream) ...@@ -900,7 +900,7 @@ static int snd_es1938_pcm_hw_free(struct snd_pcm_substream *substream)
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
* Audio1 Capture (ADC) * Audio1 Capture (ADC)
* ----------------------------------------------------------------------*/ * ----------------------------------------------------------------------*/
static struct snd_pcm_hardware snd_es1938_capture = static const struct snd_pcm_hardware snd_es1938_capture =
{ {
.info = (SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER), SNDRV_PCM_INFO_BLOCK_TRANSFER),
...@@ -922,7 +922,7 @@ static struct snd_pcm_hardware snd_es1938_capture = ...@@ -922,7 +922,7 @@ static struct snd_pcm_hardware snd_es1938_capture =
/* ----------------------------------------------------------------------- /* -----------------------------------------------------------------------
* Audio2 Playback (DAC) * Audio2 Playback (DAC)
* -----------------------------------------------------------------------*/ * -----------------------------------------------------------------------*/
static struct snd_pcm_hardware snd_es1938_playback = static const struct snd_pcm_hardware snd_es1938_playback =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -1290,7 +1290,7 @@ static snd_pcm_uframes_t snd_es1968_pcm_pointer(struct snd_pcm_substream *substr ...@@ -1290,7 +1290,7 @@ static snd_pcm_uframes_t snd_es1968_pcm_pointer(struct snd_pcm_substream *substr
return bytes_to_frames(substream->runtime, ptr % es->dma_size); return bytes_to_frames(substream->runtime, ptr % es->dma_size);
} }
static struct snd_pcm_hardware snd_es1968_playback = { static const struct snd_pcm_hardware snd_es1968_playback = {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -1311,7 +1311,7 @@ static struct snd_pcm_hardware snd_es1968_playback = { ...@@ -1311,7 +1311,7 @@ static struct snd_pcm_hardware snd_es1968_playback = {
.fifo_size = 0, .fifo_size = 0,
}; };
static struct snd_pcm_hardware snd_es1968_capture = { static const struct snd_pcm_hardware snd_es1968_capture = {
.info = (SNDRV_PCM_INFO_NONINTERLEAVED | .info = (SNDRV_PCM_INFO_NONINTERLEAVED |
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
......
...@@ -599,7 +599,7 @@ static irqreturn_t snd_fm801_interrupt(int irq, void *dev_id) ...@@ -599,7 +599,7 @@ static irqreturn_t snd_fm801_interrupt(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static struct snd_pcm_hardware snd_fm801_playback = static const struct snd_pcm_hardware snd_fm801_playback =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
...@@ -619,7 +619,7 @@ static struct snd_pcm_hardware snd_fm801_playback = ...@@ -619,7 +619,7 @@ static struct snd_pcm_hardware snd_fm801_playback =
.fifo_size = 0, .fifo_size = 0,
}; };
static struct snd_pcm_hardware snd_fm801_capture = static const struct snd_pcm_hardware snd_fm801_capture =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -1115,7 +1115,7 @@ static snd_pcm_uframes_t snd_intel8x0_pcm_pointer(struct snd_pcm_substream *subs ...@@ -1115,7 +1115,7 @@ static snd_pcm_uframes_t snd_intel8x0_pcm_pointer(struct snd_pcm_substream *subs
return bytes_to_frames(substream->runtime, ptr); return bytes_to_frames(substream->runtime, ptr);
} }
static struct snd_pcm_hardware snd_intel8x0_stream = static const struct snd_pcm_hardware snd_intel8x0_stream =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -611,7 +611,7 @@ static int snd_intel8x0m_pcm_prepare(struct snd_pcm_substream *substream) ...@@ -611,7 +611,7 @@ static int snd_intel8x0m_pcm_prepare(struct snd_pcm_substream *substream)
return 0; return 0;
} }
static struct snd_pcm_hardware snd_intel8x0m_stream = static const struct snd_pcm_hardware snd_intel8x0m_stream =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -1681,7 +1681,7 @@ static irqreturn_t snd_m3_interrupt(int irq, void *dev_id) ...@@ -1681,7 +1681,7 @@ static irqreturn_t snd_m3_interrupt(int irq, void *dev_id)
/* /*
*/ */
static struct snd_pcm_hardware snd_m3_playback = static const struct snd_pcm_hardware snd_m3_playback =
{ {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -1702,7 +1702,7 @@ static struct snd_pcm_hardware snd_m3_playback = ...@@ -1702,7 +1702,7 @@ static struct snd_pcm_hardware snd_m3_playback =
.periods_max = 1024, .periods_max = 1024,
}; };
static struct snd_pcm_hardware snd_m3_capture = static const struct snd_pcm_hardware snd_m3_capture =
{ {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
......
...@@ -314,7 +314,7 @@ static int snd_rme32_capture_copy_kernel(struct snd_pcm_substream *substream, ...@@ -314,7 +314,7 @@ static int snd_rme32_capture_copy_kernel(struct snd_pcm_substream *substream,
/* /*
* SPDIF I/O capabilities (half-duplex mode) * SPDIF I/O capabilities (half-duplex mode)
*/ */
static struct snd_pcm_hardware snd_rme32_spdif_info = { static const struct snd_pcm_hardware snd_rme32_spdif_info = {
.info = (SNDRV_PCM_INFO_MMAP_IOMEM | .info = (SNDRV_PCM_INFO_MMAP_IOMEM |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -340,7 +340,7 @@ static struct snd_pcm_hardware snd_rme32_spdif_info = { ...@@ -340,7 +340,7 @@ static struct snd_pcm_hardware snd_rme32_spdif_info = {
/* /*
* ADAT I/O capabilities (half-duplex mode) * ADAT I/O capabilities (half-duplex mode)
*/ */
static struct snd_pcm_hardware snd_rme32_adat_info = static const struct snd_pcm_hardware snd_rme32_adat_info =
{ {
.info = (SNDRV_PCM_INFO_MMAP_IOMEM | .info = (SNDRV_PCM_INFO_MMAP_IOMEM |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
...@@ -365,7 +365,7 @@ static struct snd_pcm_hardware snd_rme32_adat_info = ...@@ -365,7 +365,7 @@ static struct snd_pcm_hardware snd_rme32_adat_info =
/* /*
* SPDIF I/O capabilities (full-duplex mode) * SPDIF I/O capabilities (full-duplex mode)
*/ */
static struct snd_pcm_hardware snd_rme32_spdif_fd_info = { static const struct snd_pcm_hardware snd_rme32_spdif_fd_info = {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -391,7 +391,7 @@ static struct snd_pcm_hardware snd_rme32_spdif_fd_info = { ...@@ -391,7 +391,7 @@ static struct snd_pcm_hardware snd_rme32_spdif_fd_info = {
/* /*
* ADAT I/O capabilities (full-duplex mode) * ADAT I/O capabilities (full-duplex mode)
*/ */
static struct snd_pcm_hardware snd_rme32_adat_fd_info = static const struct snd_pcm_hardware snd_rme32_adat_fd_info =
{ {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
......
...@@ -384,7 +384,7 @@ snd_rme96_capture_copy_kernel(struct snd_pcm_substream *substream, ...@@ -384,7 +384,7 @@ snd_rme96_capture_copy_kernel(struct snd_pcm_substream *substream,
/* /*
* Digital output capabilities (S/PDIF) * Digital output capabilities (S/PDIF)
*/ */
static struct snd_pcm_hardware snd_rme96_playback_spdif_info = static const struct snd_pcm_hardware snd_rme96_playback_spdif_info =
{ {
.info = (SNDRV_PCM_INFO_MMAP_IOMEM | .info = (SNDRV_PCM_INFO_MMAP_IOMEM |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
...@@ -415,7 +415,7 @@ static struct snd_pcm_hardware snd_rme96_playback_spdif_info = ...@@ -415,7 +415,7 @@ static struct snd_pcm_hardware snd_rme96_playback_spdif_info =
/* /*
* Digital input capabilities (S/PDIF) * Digital input capabilities (S/PDIF)
*/ */
static struct snd_pcm_hardware snd_rme96_capture_spdif_info = static const struct snd_pcm_hardware snd_rme96_capture_spdif_info =
{ {
.info = (SNDRV_PCM_INFO_MMAP_IOMEM | .info = (SNDRV_PCM_INFO_MMAP_IOMEM |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
...@@ -446,7 +446,7 @@ static struct snd_pcm_hardware snd_rme96_capture_spdif_info = ...@@ -446,7 +446,7 @@ static struct snd_pcm_hardware snd_rme96_capture_spdif_info =
/* /*
* Digital output capabilities (ADAT) * Digital output capabilities (ADAT)
*/ */
static struct snd_pcm_hardware snd_rme96_playback_adat_info = static const struct snd_pcm_hardware snd_rme96_playback_adat_info =
{ {
.info = (SNDRV_PCM_INFO_MMAP_IOMEM | .info = (SNDRV_PCM_INFO_MMAP_IOMEM |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
...@@ -473,7 +473,7 @@ static struct snd_pcm_hardware snd_rme96_playback_adat_info = ...@@ -473,7 +473,7 @@ static struct snd_pcm_hardware snd_rme96_playback_adat_info =
/* /*
* Digital input capabilities (ADAT) * Digital input capabilities (ADAT)
*/ */
static struct snd_pcm_hardware snd_rme96_capture_adat_info = static const struct snd_pcm_hardware snd_rme96_capture_adat_info =
{ {
.info = (SNDRV_PCM_INFO_MMAP_IOMEM | .info = (SNDRV_PCM_INFO_MMAP_IOMEM |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
......
...@@ -159,7 +159,7 @@ struct sis7019 { ...@@ -159,7 +159,7 @@ struct sis7019 {
* We'll add a constraint upon open that limits the period and buffer sample * We'll add a constraint upon open that limits the period and buffer sample
* size to values that are legal for the hardware. * size to values that are legal for the hardware.
*/ */
static struct snd_pcm_hardware sis_playback_hw_info = { static const struct snd_pcm_hardware sis_playback_hw_info = {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
...@@ -180,7 +180,7 @@ static struct snd_pcm_hardware sis_playback_hw_info = { ...@@ -180,7 +180,7 @@ static struct snd_pcm_hardware sis_playback_hw_info = {
.periods_max = (0xfff9 / 9), .periods_max = (0xfff9 / 9),
}; };
static struct snd_pcm_hardware sis_capture_hw_info = { static const struct snd_pcm_hardware sis_capture_hw_info = {
.info = (SNDRV_PCM_INFO_MMAP | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_INTERLEAVED |
......
...@@ -776,7 +776,7 @@ static snd_pcm_uframes_t snd_sonicvibes_capture_pointer(struct snd_pcm_substream ...@@ -776,7 +776,7 @@ static snd_pcm_uframes_t snd_sonicvibes_capture_pointer(struct snd_pcm_substream
return bytes_to_frames(substream->runtime, ptr); return bytes_to_frames(substream->runtime, ptr);
} }
static struct snd_pcm_hardware snd_sonicvibes_playback = static const struct snd_pcm_hardware snd_sonicvibes_playback =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
...@@ -795,7 +795,7 @@ static struct snd_pcm_hardware snd_sonicvibes_playback = ...@@ -795,7 +795,7 @@ static struct snd_pcm_hardware snd_sonicvibes_playback =
.fifo_size = 0, .fifo_size = 0,
}; };
static struct snd_pcm_hardware snd_sonicvibes_capture = static const struct snd_pcm_hardware snd_sonicvibes_capture =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -1150,7 +1150,7 @@ static int snd_via8233_capture_prepare(struct snd_pcm_substream *substream) ...@@ -1150,7 +1150,7 @@ static int snd_via8233_capture_prepare(struct snd_pcm_substream *substream)
/* /*
* pcm hardware definition, identical for both playback and capture * pcm hardware definition, identical for both playback and capture
*/ */
static struct snd_pcm_hardware snd_via82xx_hw = static const struct snd_pcm_hardware snd_via82xx_hw =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
...@@ -714,7 +714,7 @@ static int snd_via82xx_pcm_prepare(struct snd_pcm_substream *substream) ...@@ -714,7 +714,7 @@ static int snd_via82xx_pcm_prepare(struct snd_pcm_substream *substream)
/* /*
* pcm hardware definition, identical for both playback and capture * pcm hardware definition, identical for both playback and capture
*/ */
static struct snd_pcm_hardware snd_via82xx_hw = static const struct snd_pcm_hardware snd_via82xx_hw =
{ {
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
......
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