Ignore:
Timestamp:
Aug 14, 2021, 9:21:05 AM (4 years ago)
Author:
Paul Smedley
Message:

Update linux source to 5.12.19

File:
1 edited

Legend:

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

    r629 r693  
    3030MODULE_DESCRIPTION("S3 SonicVibes PCI");
    3131MODULE_LICENSE("GPL");
    32 MODULE_SUPPORTED_DEVICE("{{S3,SonicVibes PCI}}");
    3332
    3433#if IS_REACHABLE(CONFIG_GAMEPORT)
     
    571570        unsigned long flags;
    572571
    573         div = (rate * 65536 + SV_FULLRATE / 2) / SV_FULLRATE;
     572        div = DIV_ROUND_CLOSEST(rate * 65536, SV_FULLRATE);
    574573        if (div > 65535)
    575574                div = 65535;
     
    12311230                return err;
    12321231        /* check, if we can restrict PCI DMA transfers to 24 bits */
    1233         if (dma_set_mask(&pci->dev, DMA_BIT_MASK(24)) < 0 ||
    1234             dma_set_coherent_mask(&pci->dev, DMA_BIT_MASK(24)) < 0) {
     1232        if (dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(24))) {
    12351233                dev_err(card->dev,
    12361234                        "architecture does not support 24bit PCI busmaster DMA\n");
Note: See TracChangeset for help on using the changeset viewer.