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/cs4281.c

    r615 r629  
    784784}
    785785
    786 static int snd_cs4281_hw_params(struct snd_pcm_substream *substream,
    787                                 struct snd_pcm_hw_params *hw_params)
    788 {
    789         return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
    790 }
    791 
    792 static int snd_cs4281_hw_free(struct snd_pcm_substream *substream)
    793 {
    794         return snd_pcm_lib_free_pages(substream);
    795 }
    796 
    797786static int snd_cs4281_playback_prepare(struct snd_pcm_substream *substream)
    798787{
     
    942931        .open =         snd_cs4281_playback_open,
    943932        .close =        snd_cs4281_playback_close,
    944         .ioctl =        snd_pcm_lib_ioctl,
    945         .hw_params =    snd_cs4281_hw_params,
    946         .hw_free =      snd_cs4281_hw_free,
    947933        .prepare =      snd_cs4281_playback_prepare,
    948934        .trigger =      snd_cs4281_trigger,
     
    953939        .open =         snd_cs4281_capture_open,
    954940        .close =        snd_cs4281_capture_close,
    955         .ioctl =        snd_pcm_lib_ioctl,
    956         .hw_params =    snd_cs4281_hw_params,
    957         .hw_free =      snd_cs4281_hw_free,
    958941        .prepare =      snd_cs4281_capture_prepare,
    959942        .trigger =      snd_cs4281_trigger,
     
    978961        chip->pcm = pcm;
    979962
    980         snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
    981                                               snd_dma_pci_data(chip->pci), 64*1024, 512*1024);
     963        snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &chip->pci->dev,
     964                                      64*1024, 512*1024);
    982965
    983966        return 0;
     
    10851068        struct snd_ac97_template ac97;
    10861069        int err;
    1087         static struct snd_ac97_bus_ops ops = {
     1070        static const struct snd_ac97_bus_ops ops = {
    10881071                .write = snd_cs4281_ac97_write,
    10891072                .read = snd_cs4281_ac97_read,
     
    11501133}
    11511134
    1152 static struct snd_info_entry_ops snd_cs4281_proc_ops_BA0 = {
     1135static const struct snd_info_entry_ops snd_cs4281_proc_ops_BA0 = {
    11531136        .read = snd_cs4281_BA0_read,
    11541137};
    11551138
    1156 static struct snd_info_entry_ops snd_cs4281_proc_ops_BA1 = {
     1139static const struct snd_info_entry_ops snd_cs4281_proc_ops_BA1 = {
    11571140        .read = snd_cs4281_BA1_read,
    11581141};
     
    12891272        snd_cs4281_free_gameport(chip);
    12901273
    1291         if (chip->irq >= 0)
    1292                 synchronize_irq(chip->irq);
    1293 
    12941274        /* Mask interrupts */
    12951275        snd_cs4281_pokeBA0(chip, BA0_HIMR, 0x7fffffff);
     
    13281308        unsigned int tmp;
    13291309        int err;
    1330         static struct snd_device_ops ops = {
     1310        static const struct snd_device_ops ops = {
    13311311                .dev_free =     snd_cs4281_dev_free,
    13321312        };
     
    13731353        }
    13741354        chip->irq = pci->irq;
     1355        card->sync_irq = chip->irq;
    13751356
    13761357        tmp = snd_cs4281_chip_init(chip);
     
    16211602                                        BA0_HISR_DMA(2) |
    16221603                                        BA0_HISR_DMA(3)));
    1623         synchronize_irq(chip->irq);
    16241604
    16251605        return 0;
     
    19631943#ifdef CONFIG_PM_SLEEP
    19641944
    1965 static int saved_regs[SUSPEND_REGISTERS] = {
     1945static const int saved_regs[SUSPEND_REGISTERS] = {
    19661946        BA0_JSCTL,
    19671947        BA0_GPIOR,
Note: See TracChangeset for help on using the changeset viewer.