Ignore:
Timestamp:
Aug 21, 2021, 3:35:34 AM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from next branch.

Location:
GPL/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/trident/trident.c

    r679 r695  
    2222MODULE_DESCRIPTION("Trident 4D-WaveDX/NX & SiS SI7018");
    2323MODULE_LICENSE("GPL");
    24 MODULE_SUPPORTED_DEVICE("{{Trident,4DWave DX},"
    25                 "{Trident,4DWave NX},"
    26                 "{SiS,SI7018 PCI Audio},"
    27                 "{Best Union,Miss Melody 4DWave PCI},"
    28                 "{HIS,4DWave PCI},"
    29                 "{Warpspeed,ONSpeed 4DWave PCI},"
    30                 "{Aztech Systems,PCI 64-Q3D},"
    31                 "{Addonics,SV 750},"
    32                 "{CHIC,True Sound 4Dwave},"
    33                 "{Shark,Predator4D-PCI},"
    34                 "{Jaton,SonicWave 4D},"
    35                 "{Hoontech,SoundTrack Digital 4DWave NX}}");
    3624
    3725static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;      /* Index 0-MAX */
  • GPL/trunk/alsa-kernel/pci/trident/trident_main.c

    r679 r695  
    683683                delta = 0x1000;
    684684        else
     685#ifndef TARGET_OS2
     686                delta = DIV_ROUND_CLOSEST(rate << 12, 48000) & 0x0000ffff;
     687#else
    685688                delta = (((rate << 12) + 24000) / 48000) & 0x0000ffff;
     689#endif
    686690        return delta;
    687691}
     
    10391043
    10401044        // Set channel sample rate, 4.12 format
     1045#ifndef TARGET_OS2
     1046        val = DIV_ROUND_CLOSEST(48000U << 12, runtime->rate);
     1047#else
    10411048        val = (((unsigned int) 48000L << 12) + (runtime->rate/2)) / runtime->rate;
     1049#endif
    10421050        outw(val, TRID_REG(trident, T4D_SBDELTA_DELTA_R));
    10431051
     
    35023510                return err;
    35033511        /* check, if we can restrict PCI DMA transfers to 30 bits */
    3504         if (dma_set_mask(&pci->dev, DMA_BIT_MASK(30)) < 0 ||
    3505             dma_set_coherent_mask(&pci->dev, DMA_BIT_MASK(30)) < 0) {
     3512        if (dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(30))) {
    35063513                dev_err(card->dev,
    35073514                        "architecture does not support 30bit PCI busmaster DMA\n");
Note: See TracChangeset for help on using the changeset viewer.