Changeset 629 for GPL/branches/uniaud32-next/alsa-kernel/pci/maestro3.c
- Timestamp:
- Jan 4, 2021, 10:15:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/pci/maestro3.c
r625 r629 815 815 MODULE_DEVICE_TABLE(pci, snd_m3_ids); 816 816 817 static struct snd_pci_quirk m3_amp_quirk_list[] = {817 static const struct snd_pci_quirk m3_amp_quirk_list[] = { 818 818 SND_PCI_QUIRK(0x0E11, 0x0094, "Compaq Evo N600c", 0x0c), 819 819 SND_PCI_QUIRK(0x10f7, 0x833e, "Panasonic CF-28", 0x0d), … … 824 824 }; 825 825 826 static struct snd_pci_quirk m3_irda_quirk_list[] = {826 static const struct snd_pci_quirk m3_irda_quirk_list[] = { 827 827 SND_PCI_QUIRK(0x1028, 0x00b0, "Dell Inspiron 4000", 1), 828 828 SND_PCI_QUIRK(0x1028, 0x00a4, "Dell Inspiron 8000", 1), … … 832 832 833 833 /* hardware volume quirks */ 834 static struct snd_pci_quirk m3_hv_quirk_list[] = {834 static const struct snd_pci_quirk m3_hv_quirk_list[] = { 835 835 /* Allegro chips */ 836 836 SND_PCI_QUIRK(0x0E11, 0x002E, NULL, HV_CTRL_ENABLE | HV_BUTTON_FROM_GD), … … 910 910 911 911 /* HP Omnibook quirks */ 912 static struct snd_pci_quirk m3_omnibook_quirk_list[] = {912 static const struct snd_pci_quirk m3_omnibook_quirk_list[] = { 913 913 SND_PCI_QUIRK_ID(0x103c, 0x0010), /* HP OmniBook 6000 */ 914 914 SND_PCI_QUIRK_ID(0x103c, 0x0011), /* HP OmniBook 500 */ … … 1389 1389 { 1390 1390 struct m3_dma *s = substream->runtime->private_data; 1391 int err; 1392 1393 if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0) 1394 return err; 1391 1395 1392 /* set buffer address */ 1396 1393 s->buffer_addr = substream->runtime->dma_addr; … … 1409 1406 return 0; 1410 1407 s = substream->runtime->private_data; 1411 snd_pcm_lib_free_pages(substream);1412 1408 s->buffer_addr = 0; 1413 1409 return 0; … … 1830 1826 .open = snd_m3_playback_open, 1831 1827 .close = snd_m3_playback_close, 1832 .ioctl = snd_pcm_lib_ioctl,1833 1828 .hw_params = snd_m3_pcm_hw_params, 1834 1829 .hw_free = snd_m3_pcm_hw_free, … … 1841 1836 .open = snd_m3_capture_open, 1842 1837 .close = snd_m3_capture_close, 1843 .ioctl = snd_pcm_lib_ioctl,1844 1838 .hw_params = snd_m3_pcm_hw_params, 1845 1839 .hw_free = snd_m3_pcm_hw_free, … … 1868 1862 chip->pcm = pcm; 1869 1863 1870 snd_pcm_ lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,1871 snd_dma_pci_data(chip->pci), 64*1024, 64*1024);1864 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, 1865 &chip->pci->dev, 64*1024, 64*1024); 1872 1866 1873 1867 return 0; … … 2050 2044 #endif 2051 2045 int err; 2052 static struct snd_ac97_bus_ops ops = {2046 static const struct snd_ac97_bus_ops ops = { 2053 2047 .write = snd_m3_ac97_write, 2054 2048 .read = snd_m3_ac97_read, … … 2536 2530 int i, err; 2537 2531 const struct snd_pci_quirk *quirk; 2538 static struct snd_device_ops ops = {2532 static const struct snd_device_ops ops = { 2539 2533 .dev_free = snd_m3_dev_free, 2540 2534 }; … … 2647 2641 } 2648 2642 chip->irq = pci->irq; 2643 card->sync_irq = chip->irq; 2649 2644 2650 2645 #ifdef CONFIG_PM_SLEEP
Note:
See TracChangeset
for help on using the changeset viewer.