forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/isa/sb/jazz16.c
....@@ -158,9 +158,9 @@
158158
159159 static int jazz16_configure_board(struct snd_sb *chip, int mpu_irq)
160160 {
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,
162162 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 };
164164
165165 if (jazz_dma_bits[chip->dma8] == 0 ||
166166 jazz_dma_bits[chip->dma16] == 0 ||
....@@ -224,9 +224,9 @@
224224 struct snd_card_jazz16 *jazz16;
225225 struct snd_sb *chip;
226226 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};
230230 int err, xirq, xdma8, xdma16, xmpu_port, xmpu_irq;
231231
232232 err = snd_card_new(devptr, index[dev], id[dev], THIS_MODULE,
....@@ -356,7 +356,6 @@
356356 struct snd_sb *chip = acard->chip;
357357
358358 snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
359
- snd_pcm_suspend_all(chip->pcm);
360359 snd_sbmixer_suspend(chip);
361360 return 0;
362361 }