diff options
Diffstat (limited to 'sound/pci/mixart/mixart.c')
-rw-r--r-- | sound/pci/mixart/mixart.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index ac007cec0879..880b824e24cd 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c | |||
@@ -652,7 +652,7 @@ static int snd_mixart_hw_free(struct snd_pcm_substream *subs) | |||
652 | static struct snd_pcm_hardware snd_mixart_analog_caps = | 652 | static struct snd_pcm_hardware snd_mixart_analog_caps = |
653 | { | 653 | { |
654 | .info = ( SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 654 | .info = ( SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
655 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_SYNC_START | | 655 | SNDRV_PCM_INFO_MMAP_VALID | |
656 | SNDRV_PCM_INFO_PAUSE), | 656 | SNDRV_PCM_INFO_PAUSE), |
657 | .formats = ( SNDRV_PCM_FMTBIT_U8 | | 657 | .formats = ( SNDRV_PCM_FMTBIT_U8 | |
658 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE | | 658 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE | |
@@ -673,7 +673,7 @@ static struct snd_pcm_hardware snd_mixart_analog_caps = | |||
673 | static struct snd_pcm_hardware snd_mixart_digital_caps = | 673 | static struct snd_pcm_hardware snd_mixart_digital_caps = |
674 | { | 674 | { |
675 | .info = ( SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 675 | .info = ( SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
676 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_SYNC_START | | 676 | SNDRV_PCM_INFO_MMAP_VALID | |
677 | SNDRV_PCM_INFO_PAUSE), | 677 | SNDRV_PCM_INFO_PAUSE), |
678 | .formats = ( SNDRV_PCM_FMTBIT_U8 | | 678 | .formats = ( SNDRV_PCM_FMTBIT_U8 | |
679 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE | | 679 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE | |
@@ -1317,6 +1317,12 @@ static int __devinit snd_mixart_probe(struct pci_dev *pci, | |||
1317 | mgr->mem[i].phys = pci_resource_start(pci, i); | 1317 | mgr->mem[i].phys = pci_resource_start(pci, i); |
1318 | mgr->mem[i].virt = ioremap_nocache(mgr->mem[i].phys, | 1318 | mgr->mem[i].virt = ioremap_nocache(mgr->mem[i].phys, |
1319 | pci_resource_len(pci, i)); | 1319 | pci_resource_len(pci, i)); |
1320 | if (!mgr->mem[i].virt) { | ||
1321 | printk(KERN_ERR "unable to remap resource 0x%lx\n", | ||
1322 | mgr->mem[i].phys); | ||
1323 | snd_mixart_free(mgr); | ||
1324 | return -EBUSY; | ||
1325 | } | ||
1320 | } | 1326 | } |
1321 | 1327 | ||
1322 | if (request_irq(pci->irq, snd_mixart_interrupt, IRQF_SHARED, | 1328 | if (request_irq(pci->irq, snd_mixart_interrupt, IRQF_SHARED, |