diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-12 11:31:28 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-12 17:31:58 -0400 |
commit | dee49895b197936c02d27d651e58c90bac18f452 (patch) | |
tree | c8d80b6103c61da781977dd3f6f37b53d34e947b | |
parent | 420b0c1b78aed04b951418ca453673fd6c06c737 (diff) |
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: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/ad1889.c | 4 | ||||
-rw-r--r-- | sound/pci/als300.c | 4 | ||||
-rw-r--r-- | sound/pci/als4000.c | 4 | ||||
-rw-r--r-- | sound/pci/atiixp.c | 2 | ||||
-rw-r--r-- | sound/pci/atiixp_modem.c | 2 | ||||
-rw-r--r-- | sound/pci/bt87x.c | 4 | ||||
-rw-r--r-- | sound/pci/cmipci.c | 12 | ||||
-rw-r--r-- | sound/pci/cs4281.c | 4 | ||||
-rw-r--r-- | sound/pci/ens1370.c | 6 | ||||
-rw-r--r-- | sound/pci/es1938.c | 4 | ||||
-rw-r--r-- | sound/pci/es1968.c | 4 | ||||
-rw-r--r-- | sound/pci/fm801.c | 4 | ||||
-rw-r--r-- | sound/pci/intel8x0.c | 2 | ||||
-rw-r--r-- | sound/pci/intel8x0m.c | 2 | ||||
-rw-r--r-- | sound/pci/maestro3.c | 4 | ||||
-rw-r--r-- | sound/pci/rme32.c | 8 | ||||
-rw-r--r-- | sound/pci/rme96.c | 8 | ||||
-rw-r--r-- | sound/pci/sis7019.c | 4 | ||||
-rw-r--r-- | sound/pci/sonicvibes.c | 4 | ||||
-rw-r--r-- | sound/pci/via82xx.c | 2 | ||||
-rw-r--r-- | sound/pci/via82xx_modem.c | 2 |
21 files changed, 45 insertions, 45 deletions
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index 8c36990e26f6..0bf2c04eeada 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -283,7 +283,7 @@ snd_ad1889_hw_free(struct snd_pcm_substream *substream) | |||
283 | return snd_pcm_lib_free_pages(substream); | 283 | return snd_pcm_lib_free_pages(substream); |
284 | } | 284 | } |
285 | 285 | ||
286 | static struct snd_pcm_hardware snd_ad1889_playback_hw = { | 286 | static const struct snd_pcm_hardware snd_ad1889_playback_hw = { |
287 | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 287 | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
288 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, | 288 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, |
289 | .formats = SNDRV_PCM_FMTBIT_S16_LE, | 289 | .formats = SNDRV_PCM_FMTBIT_S16_LE, |
@@ -300,7 +300,7 @@ static struct snd_pcm_hardware snd_ad1889_playback_hw = { | |||
300 | /*.fifo_size = 0,*/ | 300 | /*.fifo_size = 0,*/ |
301 | }; | 301 | }; |
302 | 302 | ||
303 | static struct snd_pcm_hardware snd_ad1889_capture_hw = { | 303 | static const struct snd_pcm_hardware snd_ad1889_capture_hw = { |
304 | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 304 | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
305 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, | 305 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, |
306 | .formats = SNDRV_PCM_FMTBIT_S16_LE, | 306 | .formats = SNDRV_PCM_FMTBIT_S16_LE, |
diff --git a/sound/pci/als300.c b/sound/pci/als300.c index ab75601d7c2c..eaa2d853d922 100644 --- a/sound/pci/als300.c +++ b/sound/pci/als300.c | |||
@@ -328,7 +328,7 @@ static int snd_als300_ac97(struct snd_als300 *chip) | |||
328 | * the card when it is running outside of legacy | 328 | * the card when it is running outside of legacy |
329 | * mode. | 329 | * mode. |
330 | */ | 330 | */ |
331 | static struct snd_pcm_hardware snd_als300_playback_hw = | 331 | static const struct snd_pcm_hardware snd_als300_playback_hw = |
332 | { | 332 | { |
333 | .info = (SNDRV_PCM_INFO_MMAP | | 333 | .info = (SNDRV_PCM_INFO_MMAP | |
334 | SNDRV_PCM_INFO_INTERLEAVED | | 334 | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -347,7 +347,7 @@ static struct snd_pcm_hardware snd_als300_playback_hw = | |||
347 | .periods_max = 2, | 347 | .periods_max = 2, |
348 | }; | 348 | }; |
349 | 349 | ||
350 | static struct snd_pcm_hardware snd_als300_capture_hw = | 350 | static const struct snd_pcm_hardware snd_als300_capture_hw = |
351 | { | 351 | { |
352 | .info = (SNDRV_PCM_INFO_MMAP | | 352 | .info = (SNDRV_PCM_INFO_MMAP | |
353 | SNDRV_PCM_INFO_INTERLEAVED | | 353 | SNDRV_PCM_INFO_INTERLEAVED | |
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index 7844a75d8ed9..26b097edec8c 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -592,7 +592,7 @@ static irqreturn_t snd_als4000_interrupt(int irq, void *dev_id) | |||
592 | 592 | ||
593 | /*****************************************************************/ | 593 | /*****************************************************************/ |
594 | 594 | ||
595 | static struct snd_pcm_hardware snd_als4000_playback = | 595 | static const struct snd_pcm_hardware snd_als4000_playback = |
596 | { | 596 | { |
597 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 597 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
598 | SNDRV_PCM_INFO_MMAP_VALID), | 598 | SNDRV_PCM_INFO_MMAP_VALID), |
@@ -611,7 +611,7 @@ static struct snd_pcm_hardware snd_als4000_playback = | |||
611 | .fifo_size = 0 | 611 | .fifo_size = 0 |
612 | }; | 612 | }; |
613 | 613 | ||
614 | static struct snd_pcm_hardware snd_als4000_capture = | 614 | static const struct snd_pcm_hardware snd_als4000_capture = |
615 | { | 615 | { |
616 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 616 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
617 | SNDRV_PCM_INFO_MMAP_VALID), | 617 | SNDRV_PCM_INFO_MMAP_VALID), |
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index a40c918c8dff..de53c2aa5b20 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -1009,7 +1009,7 @@ static int snd_atiixp_pcm_hw_free(struct snd_pcm_substream *substream) | |||
1009 | /* | 1009 | /* |
1010 | * pcm hardware definition, identical for all DMA types | 1010 | * pcm hardware definition, identical for all DMA types |
1011 | */ | 1011 | */ |
1012 | static struct snd_pcm_hardware snd_atiixp_pcm_hw = | 1012 | static const struct snd_pcm_hardware snd_atiixp_pcm_hw = |
1013 | { | 1013 | { |
1014 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1014 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1015 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 1015 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index 52e0ea7b9b80..a586635664e0 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c | |||
@@ -834,7 +834,7 @@ static int snd_atiixp_pcm_hw_free(struct snd_pcm_substream *substream) | |||
834 | /* | 834 | /* |
835 | * pcm hardware definition, identical for all DMA types | 835 | * pcm hardware definition, identical for all DMA types |
836 | */ | 836 | */ |
837 | static struct snd_pcm_hardware snd_atiixp_pcm_hw = | 837 | static const struct snd_pcm_hardware snd_atiixp_pcm_hw = |
838 | { | 838 | { |
839 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 839 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
840 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 840 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index de0234294c25..d8ade8771a32 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -353,7 +353,7 @@ static irqreturn_t snd_bt87x_interrupt(int irq, void *dev_id) | |||
353 | return IRQ_HANDLED; | 353 | return IRQ_HANDLED; |
354 | } | 354 | } |
355 | 355 | ||
356 | static struct snd_pcm_hardware snd_bt87x_digital_hw = { | 356 | static const struct snd_pcm_hardware snd_bt87x_digital_hw = { |
357 | .info = SNDRV_PCM_INFO_MMAP | | 357 | .info = SNDRV_PCM_INFO_MMAP | |
358 | SNDRV_PCM_INFO_INTERLEAVED | | 358 | SNDRV_PCM_INFO_INTERLEAVED | |
359 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 359 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
@@ -370,7 +370,7 @@ static struct snd_pcm_hardware snd_bt87x_digital_hw = { | |||
370 | .periods_max = 255, | 370 | .periods_max = 255, |
371 | }; | 371 | }; |
372 | 372 | ||
373 | static struct snd_pcm_hardware snd_bt87x_analog_hw = { | 373 | static const struct snd_pcm_hardware snd_bt87x_analog_hw = { |
374 | .info = SNDRV_PCM_INFO_MMAP | | 374 | .info = SNDRV_PCM_INFO_MMAP | |
375 | SNDRV_PCM_INFO_INTERLEAVED | | 375 | SNDRV_PCM_INFO_INTERLEAVED | |
376 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 376 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index a460cb63e971..a45245f16059 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -1477,7 +1477,7 @@ static irqreturn_t snd_cmipci_interrupt(int irq, void *dev_id) | |||
1477 | */ | 1477 | */ |
1478 | 1478 | ||
1479 | /* playback on channel A */ | 1479 | /* playback on channel A */ |
1480 | static struct snd_pcm_hardware snd_cmipci_playback = | 1480 | static const struct snd_pcm_hardware snd_cmipci_playback = |
1481 | { | 1481 | { |
1482 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1482 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1483 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | | 1483 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | |
@@ -1497,7 +1497,7 @@ static struct snd_pcm_hardware snd_cmipci_playback = | |||
1497 | }; | 1497 | }; |
1498 | 1498 | ||
1499 | /* capture on channel B */ | 1499 | /* capture on channel B */ |
1500 | static struct snd_pcm_hardware snd_cmipci_capture = | 1500 | static const struct snd_pcm_hardware snd_cmipci_capture = |
1501 | { | 1501 | { |
1502 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1502 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1503 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | | 1503 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | |
@@ -1517,7 +1517,7 @@ static struct snd_pcm_hardware snd_cmipci_capture = | |||
1517 | }; | 1517 | }; |
1518 | 1518 | ||
1519 | /* playback on channel B - stereo 16bit only? */ | 1519 | /* playback on channel B - stereo 16bit only? */ |
1520 | static struct snd_pcm_hardware snd_cmipci_playback2 = | 1520 | static const struct snd_pcm_hardware snd_cmipci_playback2 = |
1521 | { | 1521 | { |
1522 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1522 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1523 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | | 1523 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | |
@@ -1537,7 +1537,7 @@ static struct snd_pcm_hardware snd_cmipci_playback2 = | |||
1537 | }; | 1537 | }; |
1538 | 1538 | ||
1539 | /* spdif playback on channel A */ | 1539 | /* spdif playback on channel A */ |
1540 | static struct snd_pcm_hardware snd_cmipci_playback_spdif = | 1540 | static const struct snd_pcm_hardware snd_cmipci_playback_spdif = |
1541 | { | 1541 | { |
1542 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1542 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1543 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | | 1543 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | |
@@ -1557,7 +1557,7 @@ static struct snd_pcm_hardware snd_cmipci_playback_spdif = | |||
1557 | }; | 1557 | }; |
1558 | 1558 | ||
1559 | /* spdif playback on channel A (32bit, IEC958 subframes) */ | 1559 | /* spdif playback on channel A (32bit, IEC958 subframes) */ |
1560 | static struct snd_pcm_hardware snd_cmipci_playback_iec958_subframe = | 1560 | static const struct snd_pcm_hardware snd_cmipci_playback_iec958_subframe = |
1561 | { | 1561 | { |
1562 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1562 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1563 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | | 1563 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | |
@@ -1577,7 +1577,7 @@ static struct snd_pcm_hardware snd_cmipci_playback_iec958_subframe = | |||
1577 | }; | 1577 | }; |
1578 | 1578 | ||
1579 | /* spdif capture on channel B */ | 1579 | /* spdif capture on channel B */ |
1580 | static struct snd_pcm_hardware snd_cmipci_capture_spdif = | 1580 | static const struct snd_pcm_hardware snd_cmipci_capture_spdif = |
1581 | { | 1581 | { |
1582 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1582 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1583 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | | 1583 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | |
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index ee7ba4b0b47b..ec4247638fa1 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c | |||
@@ -847,7 +847,7 @@ static snd_pcm_uframes_t snd_cs4281_pointer(struct snd_pcm_substream *substream) | |||
847 | snd_cs4281_peekBA0(chip, dma->regDCC) - 1; | 847 | snd_cs4281_peekBA0(chip, dma->regDCC) - 1; |
848 | } | 848 | } |
849 | 849 | ||
850 | static struct snd_pcm_hardware snd_cs4281_playback = | 850 | static const struct snd_pcm_hardware snd_cs4281_playback = |
851 | { | 851 | { |
852 | .info = SNDRV_PCM_INFO_MMAP | | 852 | .info = SNDRV_PCM_INFO_MMAP | |
853 | SNDRV_PCM_INFO_INTERLEAVED | | 853 | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -872,7 +872,7 @@ static struct snd_pcm_hardware snd_cs4281_playback = | |||
872 | .fifo_size = CS4281_FIFO_SIZE, | 872 | .fifo_size = CS4281_FIFO_SIZE, |
873 | }; | 873 | }; |
874 | 874 | ||
875 | static struct snd_pcm_hardware snd_cs4281_capture = | 875 | static const struct snd_pcm_hardware snd_cs4281_capture = |
876 | { | 876 | { |
877 | .info = SNDRV_PCM_INFO_MMAP | | 877 | .info = SNDRV_PCM_INFO_MMAP | |
878 | SNDRV_PCM_INFO_INTERLEAVED | | 878 | SNDRV_PCM_INFO_INTERLEAVED | |
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index f0d978e3b274..d4cd6451fdca 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -1059,7 +1059,7 @@ static snd_pcm_uframes_t snd_ensoniq_capture_pointer(struct snd_pcm_substream *s | |||
1059 | return ptr; | 1059 | return ptr; |
1060 | } | 1060 | } |
1061 | 1061 | ||
1062 | static struct snd_pcm_hardware snd_ensoniq_playback1 = | 1062 | static const struct snd_pcm_hardware snd_ensoniq_playback1 = |
1063 | { | 1063 | { |
1064 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1064 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1065 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 1065 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
@@ -1086,7 +1086,7 @@ static struct snd_pcm_hardware snd_ensoniq_playback1 = | |||
1086 | .fifo_size = 0, | 1086 | .fifo_size = 0, |
1087 | }; | 1087 | }; |
1088 | 1088 | ||
1089 | static struct snd_pcm_hardware snd_ensoniq_playback2 = | 1089 | static const struct snd_pcm_hardware snd_ensoniq_playback2 = |
1090 | { | 1090 | { |
1091 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1091 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1092 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 1092 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
@@ -1106,7 +1106,7 @@ static struct snd_pcm_hardware snd_ensoniq_playback2 = | |||
1106 | .fifo_size = 0, | 1106 | .fifo_size = 0, |
1107 | }; | 1107 | }; |
1108 | 1108 | ||
1109 | static struct snd_pcm_hardware snd_ensoniq_capture = | 1109 | static const struct snd_pcm_hardware snd_ensoniq_capture = |
1110 | { | 1110 | { |
1111 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1111 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1112 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 1112 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 069902a06f00..9d248eb2e26c 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -900,7 +900,7 @@ static int snd_es1938_pcm_hw_free(struct snd_pcm_substream *substream) | |||
900 | /* ---------------------------------------------------------------------- | 900 | /* ---------------------------------------------------------------------- |
901 | * Audio1 Capture (ADC) | 901 | * Audio1 Capture (ADC) |
902 | * ----------------------------------------------------------------------*/ | 902 | * ----------------------------------------------------------------------*/ |
903 | static struct snd_pcm_hardware snd_es1938_capture = | 903 | static const struct snd_pcm_hardware snd_es1938_capture = |
904 | { | 904 | { |
905 | .info = (SNDRV_PCM_INFO_INTERLEAVED | | 905 | .info = (SNDRV_PCM_INFO_INTERLEAVED | |
906 | SNDRV_PCM_INFO_BLOCK_TRANSFER), | 906 | SNDRV_PCM_INFO_BLOCK_TRANSFER), |
@@ -922,7 +922,7 @@ static struct snd_pcm_hardware snd_es1938_capture = | |||
922 | /* ----------------------------------------------------------------------- | 922 | /* ----------------------------------------------------------------------- |
923 | * Audio2 Playback (DAC) | 923 | * Audio2 Playback (DAC) |
924 | * -----------------------------------------------------------------------*/ | 924 | * -----------------------------------------------------------------------*/ |
925 | static struct snd_pcm_hardware snd_es1938_playback = | 925 | static const struct snd_pcm_hardware snd_es1938_playback = |
926 | { | 926 | { |
927 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 927 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
928 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 928 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index 2ec2b1ce0af6..0b1845ca6005 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -1290,7 +1290,7 @@ static snd_pcm_uframes_t snd_es1968_pcm_pointer(struct snd_pcm_substream *substr | |||
1290 | return bytes_to_frames(substream->runtime, ptr % es->dma_size); | 1290 | return bytes_to_frames(substream->runtime, ptr % es->dma_size); |
1291 | } | 1291 | } |
1292 | 1292 | ||
1293 | static struct snd_pcm_hardware snd_es1968_playback = { | 1293 | static const struct snd_pcm_hardware snd_es1968_playback = { |
1294 | .info = (SNDRV_PCM_INFO_MMAP | | 1294 | .info = (SNDRV_PCM_INFO_MMAP | |
1295 | SNDRV_PCM_INFO_MMAP_VALID | | 1295 | SNDRV_PCM_INFO_MMAP_VALID | |
1296 | SNDRV_PCM_INFO_INTERLEAVED | | 1296 | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -1311,7 +1311,7 @@ static struct snd_pcm_hardware snd_es1968_playback = { | |||
1311 | .fifo_size = 0, | 1311 | .fifo_size = 0, |
1312 | }; | 1312 | }; |
1313 | 1313 | ||
1314 | static struct snd_pcm_hardware snd_es1968_capture = { | 1314 | static const struct snd_pcm_hardware snd_es1968_capture = { |
1315 | .info = (SNDRV_PCM_INFO_NONINTERLEAVED | | 1315 | .info = (SNDRV_PCM_INFO_NONINTERLEAVED | |
1316 | SNDRV_PCM_INFO_MMAP | | 1316 | SNDRV_PCM_INFO_MMAP | |
1317 | SNDRV_PCM_INFO_MMAP_VALID | | 1317 | SNDRV_PCM_INFO_MMAP_VALID | |
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index 8e6b04b39dcc..73a67bc3586b 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -599,7 +599,7 @@ static irqreturn_t snd_fm801_interrupt(int irq, void *dev_id) | |||
599 | return IRQ_HANDLED; | 599 | return IRQ_HANDLED; |
600 | } | 600 | } |
601 | 601 | ||
602 | static struct snd_pcm_hardware snd_fm801_playback = | 602 | static const struct snd_pcm_hardware snd_fm801_playback = |
603 | { | 603 | { |
604 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 604 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
605 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 605 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
@@ -619,7 +619,7 @@ static struct snd_pcm_hardware snd_fm801_playback = | |||
619 | .fifo_size = 0, | 619 | .fifo_size = 0, |
620 | }; | 620 | }; |
621 | 621 | ||
622 | static struct snd_pcm_hardware snd_fm801_capture = | 622 | static const struct snd_pcm_hardware snd_fm801_capture = |
623 | { | 623 | { |
624 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 624 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
625 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 625 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index fcd032e3882d..851ccff549a4 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -1115,7 +1115,7 @@ static snd_pcm_uframes_t snd_intel8x0_pcm_pointer(struct snd_pcm_substream *subs | |||
1115 | return bytes_to_frames(substream->runtime, ptr); | 1115 | return bytes_to_frames(substream->runtime, ptr); |
1116 | } | 1116 | } |
1117 | 1117 | ||
1118 | static struct snd_pcm_hardware snd_intel8x0_stream = | 1118 | static const struct snd_pcm_hardware snd_intel8x0_stream = |
1119 | { | 1119 | { |
1120 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1120 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1121 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 1121 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index 2f1b878fadbb..3a4769a97d29 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c | |||
@@ -611,7 +611,7 @@ static int snd_intel8x0m_pcm_prepare(struct snd_pcm_substream *substream) | |||
611 | return 0; | 611 | return 0; |
612 | } | 612 | } |
613 | 613 | ||
614 | static struct snd_pcm_hardware snd_intel8x0m_stream = | 614 | static const struct snd_pcm_hardware snd_intel8x0m_stream = |
615 | { | 615 | { |
616 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 616 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
617 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 617 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index cafea6dc5c01..97ac80af4447 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -1681,7 +1681,7 @@ static irqreturn_t snd_m3_interrupt(int irq, void *dev_id) | |||
1681 | /* | 1681 | /* |
1682 | */ | 1682 | */ |
1683 | 1683 | ||
1684 | static struct snd_pcm_hardware snd_m3_playback = | 1684 | static const struct snd_pcm_hardware snd_m3_playback = |
1685 | { | 1685 | { |
1686 | .info = (SNDRV_PCM_INFO_MMAP | | 1686 | .info = (SNDRV_PCM_INFO_MMAP | |
1687 | SNDRV_PCM_INFO_INTERLEAVED | | 1687 | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -1702,7 +1702,7 @@ static struct snd_pcm_hardware snd_m3_playback = | |||
1702 | .periods_max = 1024, | 1702 | .periods_max = 1024, |
1703 | }; | 1703 | }; |
1704 | 1704 | ||
1705 | static struct snd_pcm_hardware snd_m3_capture = | 1705 | static const struct snd_pcm_hardware snd_m3_capture = |
1706 | { | 1706 | { |
1707 | .info = (SNDRV_PCM_INFO_MMAP | | 1707 | .info = (SNDRV_PCM_INFO_MMAP | |
1708 | SNDRV_PCM_INFO_INTERLEAVED | | 1708 | SNDRV_PCM_INFO_INTERLEAVED | |
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index e4cdef94e4a2..f0906ba416d4 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -314,7 +314,7 @@ static int snd_rme32_capture_copy_kernel(struct snd_pcm_substream *substream, | |||
314 | /* | 314 | /* |
315 | * SPDIF I/O capabilities (half-duplex mode) | 315 | * SPDIF I/O capabilities (half-duplex mode) |
316 | */ | 316 | */ |
317 | static struct snd_pcm_hardware snd_rme32_spdif_info = { | 317 | static const struct snd_pcm_hardware snd_rme32_spdif_info = { |
318 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | | 318 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | |
319 | SNDRV_PCM_INFO_MMAP_VALID | | 319 | SNDRV_PCM_INFO_MMAP_VALID | |
320 | SNDRV_PCM_INFO_INTERLEAVED | | 320 | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -340,7 +340,7 @@ static struct snd_pcm_hardware snd_rme32_spdif_info = { | |||
340 | /* | 340 | /* |
341 | * ADAT I/O capabilities (half-duplex mode) | 341 | * ADAT I/O capabilities (half-duplex mode) |
342 | */ | 342 | */ |
343 | static struct snd_pcm_hardware snd_rme32_adat_info = | 343 | static const struct snd_pcm_hardware snd_rme32_adat_info = |
344 | { | 344 | { |
345 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | | 345 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | |
346 | SNDRV_PCM_INFO_MMAP_VALID | | 346 | SNDRV_PCM_INFO_MMAP_VALID | |
@@ -365,7 +365,7 @@ static struct snd_pcm_hardware snd_rme32_adat_info = | |||
365 | /* | 365 | /* |
366 | * SPDIF I/O capabilities (full-duplex mode) | 366 | * SPDIF I/O capabilities (full-duplex mode) |
367 | */ | 367 | */ |
368 | static struct snd_pcm_hardware snd_rme32_spdif_fd_info = { | 368 | static const struct snd_pcm_hardware snd_rme32_spdif_fd_info = { |
369 | .info = (SNDRV_PCM_INFO_MMAP | | 369 | .info = (SNDRV_PCM_INFO_MMAP | |
370 | SNDRV_PCM_INFO_MMAP_VALID | | 370 | SNDRV_PCM_INFO_MMAP_VALID | |
371 | SNDRV_PCM_INFO_INTERLEAVED | | 371 | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -391,7 +391,7 @@ static struct snd_pcm_hardware snd_rme32_spdif_fd_info = { | |||
391 | /* | 391 | /* |
392 | * ADAT I/O capabilities (full-duplex mode) | 392 | * ADAT I/O capabilities (full-duplex mode) |
393 | */ | 393 | */ |
394 | static struct snd_pcm_hardware snd_rme32_adat_fd_info = | 394 | static const struct snd_pcm_hardware snd_rme32_adat_fd_info = |
395 | { | 395 | { |
396 | .info = (SNDRV_PCM_INFO_MMAP | | 396 | .info = (SNDRV_PCM_INFO_MMAP | |
397 | SNDRV_PCM_INFO_MMAP_VALID | | 397 | SNDRV_PCM_INFO_MMAP_VALID | |
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index b488d74c3b99..dcfa4d7a73e2 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c | |||
@@ -384,7 +384,7 @@ snd_rme96_capture_copy_kernel(struct snd_pcm_substream *substream, | |||
384 | /* | 384 | /* |
385 | * Digital output capabilities (S/PDIF) | 385 | * Digital output capabilities (S/PDIF) |
386 | */ | 386 | */ |
387 | static struct snd_pcm_hardware snd_rme96_playback_spdif_info = | 387 | static const struct snd_pcm_hardware snd_rme96_playback_spdif_info = |
388 | { | 388 | { |
389 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | | 389 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | |
390 | SNDRV_PCM_INFO_MMAP_VALID | | 390 | SNDRV_PCM_INFO_MMAP_VALID | |
@@ -415,7 +415,7 @@ static struct snd_pcm_hardware snd_rme96_playback_spdif_info = | |||
415 | /* | 415 | /* |
416 | * Digital input capabilities (S/PDIF) | 416 | * Digital input capabilities (S/PDIF) |
417 | */ | 417 | */ |
418 | static struct snd_pcm_hardware snd_rme96_capture_spdif_info = | 418 | static const struct snd_pcm_hardware snd_rme96_capture_spdif_info = |
419 | { | 419 | { |
420 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | | 420 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | |
421 | SNDRV_PCM_INFO_MMAP_VALID | | 421 | SNDRV_PCM_INFO_MMAP_VALID | |
@@ -446,7 +446,7 @@ static struct snd_pcm_hardware snd_rme96_capture_spdif_info = | |||
446 | /* | 446 | /* |
447 | * Digital output capabilities (ADAT) | 447 | * Digital output capabilities (ADAT) |
448 | */ | 448 | */ |
449 | static struct snd_pcm_hardware snd_rme96_playback_adat_info = | 449 | static const struct snd_pcm_hardware snd_rme96_playback_adat_info = |
450 | { | 450 | { |
451 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | | 451 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | |
452 | SNDRV_PCM_INFO_MMAP_VALID | | 452 | SNDRV_PCM_INFO_MMAP_VALID | |
@@ -473,7 +473,7 @@ static struct snd_pcm_hardware snd_rme96_playback_adat_info = | |||
473 | /* | 473 | /* |
474 | * Digital input capabilities (ADAT) | 474 | * Digital input capabilities (ADAT) |
475 | */ | 475 | */ |
476 | static struct snd_pcm_hardware snd_rme96_capture_adat_info = | 476 | static const struct snd_pcm_hardware snd_rme96_capture_adat_info = |
477 | { | 477 | { |
478 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | | 478 | .info = (SNDRV_PCM_INFO_MMAP_IOMEM | |
479 | SNDRV_PCM_INFO_MMAP_VALID | | 479 | SNDRV_PCM_INFO_MMAP_VALID | |
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c index 35188872d313..964acf302479 100644 --- a/sound/pci/sis7019.c +++ b/sound/pci/sis7019.c | |||
@@ -159,7 +159,7 @@ struct sis7019 { | |||
159 | * We'll add a constraint upon open that limits the period and buffer sample | 159 | * We'll add a constraint upon open that limits the period and buffer sample |
160 | * size to values that are legal for the hardware. | 160 | * size to values that are legal for the hardware. |
161 | */ | 161 | */ |
162 | static struct snd_pcm_hardware sis_playback_hw_info = { | 162 | static const struct snd_pcm_hardware sis_playback_hw_info = { |
163 | .info = (SNDRV_PCM_INFO_MMAP | | 163 | .info = (SNDRV_PCM_INFO_MMAP | |
164 | SNDRV_PCM_INFO_MMAP_VALID | | 164 | SNDRV_PCM_INFO_MMAP_VALID | |
165 | SNDRV_PCM_INFO_INTERLEAVED | | 165 | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -180,7 +180,7 @@ static struct snd_pcm_hardware sis_playback_hw_info = { | |||
180 | .periods_max = (0xfff9 / 9), | 180 | .periods_max = (0xfff9 / 9), |
181 | }; | 181 | }; |
182 | 182 | ||
183 | static struct snd_pcm_hardware sis_capture_hw_info = { | 183 | static const struct snd_pcm_hardware sis_capture_hw_info = { |
184 | .info = (SNDRV_PCM_INFO_MMAP | | 184 | .info = (SNDRV_PCM_INFO_MMAP | |
185 | SNDRV_PCM_INFO_MMAP_VALID | | 185 | SNDRV_PCM_INFO_MMAP_VALID | |
186 | SNDRV_PCM_INFO_INTERLEAVED | | 186 | SNDRV_PCM_INFO_INTERLEAVED | |
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index 784d762f18a7..a8abb15e3c3a 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -776,7 +776,7 @@ static snd_pcm_uframes_t snd_sonicvibes_capture_pointer(struct snd_pcm_substream | |||
776 | return bytes_to_frames(substream->runtime, ptr); | 776 | return bytes_to_frames(substream->runtime, ptr); |
777 | } | 777 | } |
778 | 778 | ||
779 | static struct snd_pcm_hardware snd_sonicvibes_playback = | 779 | static const struct snd_pcm_hardware snd_sonicvibes_playback = |
780 | { | 780 | { |
781 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 781 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
782 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 782 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
@@ -795,7 +795,7 @@ static struct snd_pcm_hardware snd_sonicvibes_playback = | |||
795 | .fifo_size = 0, | 795 | .fifo_size = 0, |
796 | }; | 796 | }; |
797 | 797 | ||
798 | static struct snd_pcm_hardware snd_sonicvibes_capture = | 798 | static const struct snd_pcm_hardware snd_sonicvibes_capture = |
799 | { | 799 | { |
800 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 800 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
801 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 801 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index c767b8664359..3a1c0b8b4ea2 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -1150,7 +1150,7 @@ static int snd_via8233_capture_prepare(struct snd_pcm_substream *substream) | |||
1150 | /* | 1150 | /* |
1151 | * pcm hardware definition, identical for both playback and capture | 1151 | * pcm hardware definition, identical for both playback and capture |
1152 | */ | 1152 | */ |
1153 | static struct snd_pcm_hardware snd_via82xx_hw = | 1153 | static const struct snd_pcm_hardware snd_via82xx_hw = |
1154 | { | 1154 | { |
1155 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 1155 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
1156 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 1156 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index 55f79b2599e7..8a69221c1b86 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c | |||
@@ -714,7 +714,7 @@ static int snd_via82xx_pcm_prepare(struct snd_pcm_substream *substream) | |||
714 | /* | 714 | /* |
715 | * pcm hardware definition, identical for both playback and capture | 715 | * pcm hardware definition, identical for both playback and capture |
716 | */ | 716 | */ |
717 | static struct snd_pcm_hardware snd_via82xx_hw = | 717 | static const struct snd_pcm_hardware snd_via82xx_hw = |
718 | { | 718 | { |
719 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 719 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
720 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 720 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |