Ignore:
Timestamp:
Jan 4, 2021, 10:15:17 AM (5 years ago)
Author:
Paul Smedley
Message:

Update source to linux 5.10.4 level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/pci/maestro3.c

    r625 r629  
    815815MODULE_DEVICE_TABLE(pci, snd_m3_ids);
    816816
    817 static struct snd_pci_quirk m3_amp_quirk_list[] = {
     817static const struct snd_pci_quirk m3_amp_quirk_list[] = {
    818818        SND_PCI_QUIRK(0x0E11, 0x0094, "Compaq Evo N600c", 0x0c),
    819819        SND_PCI_QUIRK(0x10f7, 0x833e, "Panasonic CF-28", 0x0d),
     
    824824};
    825825
    826 static struct snd_pci_quirk m3_irda_quirk_list[] = {
     826static const struct snd_pci_quirk m3_irda_quirk_list[] = {
    827827        SND_PCI_QUIRK(0x1028, 0x00b0, "Dell Inspiron 4000", 1),
    828828        SND_PCI_QUIRK(0x1028, 0x00a4, "Dell Inspiron 8000", 1),
     
    832832
    833833/* hardware volume quirks */
    834 static struct snd_pci_quirk m3_hv_quirk_list[] = {
     834static const struct snd_pci_quirk m3_hv_quirk_list[] = {
    835835        /* Allegro chips */
    836836        SND_PCI_QUIRK(0x0E11, 0x002E, NULL, HV_CTRL_ENABLE | HV_BUTTON_FROM_GD),
     
    910910
    911911/* HP Omnibook quirks */
    912 static struct snd_pci_quirk m3_omnibook_quirk_list[] = {
     912static const struct snd_pci_quirk m3_omnibook_quirk_list[] = {
    913913        SND_PCI_QUIRK_ID(0x103c, 0x0010), /* HP OmniBook 6000 */
    914914        SND_PCI_QUIRK_ID(0x103c, 0x0011), /* HP OmniBook 500 */
     
    13891389{
    13901390        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
    13951392        /* set buffer address */
    13961393        s->buffer_addr = substream->runtime->dma_addr;
     
    14091406                return 0;
    14101407        s = substream->runtime->private_data;
    1411         snd_pcm_lib_free_pages(substream);
    14121408        s->buffer_addr = 0;
    14131409        return 0;
     
    18301826        .open =         snd_m3_playback_open,
    18311827        .close =        snd_m3_playback_close,
    1832         .ioctl =        snd_pcm_lib_ioctl,
    18331828        .hw_params =    snd_m3_pcm_hw_params,
    18341829        .hw_free =      snd_m3_pcm_hw_free,
     
    18411836        .open =         snd_m3_capture_open,
    18421837        .close =        snd_m3_capture_close,
    1843         .ioctl =        snd_pcm_lib_ioctl,
    18441838        .hw_params =    snd_m3_pcm_hw_params,
    18451839        .hw_free =      snd_m3_pcm_hw_free,
     
    18681862        chip->pcm = pcm;
    18691863       
    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);
    18721866
    18731867        return 0;
     
    20502044#endif
    20512045        int err;
    2052         static struct snd_ac97_bus_ops ops = {
     2046        static const struct snd_ac97_bus_ops ops = {
    20532047                .write = snd_m3_ac97_write,
    20542048                .read = snd_m3_ac97_read,
     
    25362530        int i, err;
    25372531        const struct snd_pci_quirk *quirk;
    2538         static struct snd_device_ops ops = {
     2532        static const struct snd_device_ops ops = {
    25392533                .dev_free =     snd_m3_dev_free,
    25402534        };
     
    26472641        }
    26482642        chip->irq = pci->irq;
     2643        card->sync_irq = chip->irq;
    26492644
    26502645#ifdef CONFIG_PM_SLEEP
Note: See TracChangeset for help on using the changeset viewer.