.. | .. |
---|
158 | 158 | |
---|
159 | 159 | static int jazz16_configure_board(struct snd_sb *chip, int mpu_irq) |
---|
160 | 160 | { |
---|
161 | | - static unsigned char jazz_irq_bits[] = { 0, 0, 2, 3, 0, 1, 0, 4, |
---|
| 161 | + static const unsigned char jazz_irq_bits[] = { 0, 0, 2, 3, 0, 1, 0, 4, |
---|
162 | 162 | 0, 2, 5, 0, 0, 0, 0, 6 }; |
---|
163 | | - static unsigned char jazz_dma_bits[] = { 0, 1, 0, 2, 0, 3, 0, 4 }; |
---|
| 163 | + static const unsigned char jazz_dma_bits[] = { 0, 1, 0, 2, 0, 3, 0, 4 }; |
---|
164 | 164 | |
---|
165 | 165 | if (jazz_dma_bits[chip->dma8] == 0 || |
---|
166 | 166 | jazz_dma_bits[chip->dma16] == 0 || |
---|
.. | .. |
---|
224 | 224 | struct snd_card_jazz16 *jazz16; |
---|
225 | 225 | struct snd_sb *chip; |
---|
226 | 226 | struct snd_opl3 *opl3; |
---|
227 | | - static int possible_irqs[] = {2, 3, 5, 7, 9, 10, 15, -1}; |
---|
228 | | - static int possible_dmas8[] = {1, 3, -1}; |
---|
229 | | - static int possible_dmas16[] = {5, 7, -1}; |
---|
| 227 | + static const int possible_irqs[] = {2, 3, 5, 7, 9, 10, 15, -1}; |
---|
| 228 | + static const int possible_dmas8[] = {1, 3, -1}; |
---|
| 229 | + static const int possible_dmas16[] = {5, 7, -1}; |
---|
230 | 230 | int err, xirq, xdma8, xdma16, xmpu_port, xmpu_irq; |
---|
231 | 231 | |
---|
232 | 232 | err = snd_card_new(devptr, index[dev], id[dev], THIS_MODULE, |
---|
.. | .. |
---|
356 | 356 | struct snd_sb *chip = acard->chip; |
---|
357 | 357 | |
---|
358 | 358 | snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); |
---|
359 | | - snd_pcm_suspend_all(chip->pcm); |
---|
360 | 359 | snd_sbmixer_suspend(chip); |
---|
361 | 360 | return 0; |
---|
362 | 361 | } |
---|