Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Blackmagic Design Linux 3.1.0 – Kernel module patch

  • Linux 3.1.0 – Kernel module patch

    Posted by Reuben Martin on November 1, 2011 at 3:05 am

    Patch to build desktopvideo-8.6.1a10 against kernel version 3.1.0.

    DMA_nBITS_MASK Macros have been depreciated for quite a while now and have finally gotten the boot.

    Replace DMA_nBITS_MASK with DMA_BITS_MASK(n)


    diff -U 3 -H -d -r -N -- desktopvideo-8.6.1a10.orig/blackmagic_core.c desktopvideo-8.6.1a10/blackmagic_core.c
    --- desktopvideo-8.6.1a10.orig/blackmagic_core.c 2011-10-24 20:27:33.000000000 -0500
    +++ desktopvideo-8.6.1a10/blackmagic_core.c 2011-10-31 21:43:40.557347242 -0500
    @@ -327,9 +327,9 @@
    pci_enable_device(pdev);
    pci_set_master(pdev);

    - if (pci_set_dma_mask(pdev, DMA_64BIT_MASK) < 0)
    + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) < 0)
    {
    - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) < 0)
    + if (pci_set_dma_mask(pdev, DMA_32BIT_MASK(32)) < 0)
    goto fail;
    }

    Reuben Martin replied 14 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy