PhilippeBekaert / snd-hdspe

New linux driver and tools for RME HDSPe sound cards and extension modules
GNU General Public License v3.0
51 stars 18 forks source link

Make hdspe on kernel 6.1.0 great again #14

Open tonve opened 1 year ago

tonve commented 1 year ago

Tested with the current debian testing.

--- a/sound/pci/hdsp/hdspe/hdspe_core.c
+++ b/sound/pci/hdsp/hdspe/hdspe_core.c
@@ -422,9 +422,9 @@ static int snd_hdspe_create(struct hdspe *hdspe)
        if (err < 0)
                return err;

-       err = pci_set_dma_mask(pci, DMA_BIT_MASK(32));
+      err = dma_set_mask(&pci->dev, DMA_BIT_MASK(32));
        if (!err)
-               err = pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32));
+               err = dma_set_coherent_mask(&pci->dev, DMA_BIT_MASK(32));
        if (err != 0) {
                dev_err(card->dev, "No suitable DMA addressing support.\n");
                return -ENODEV;
jimfrench commented 1 year ago

Thank you for this. I will try to test also

VennStone commented 1 year ago

I was unable to reproduce this on Debian Test using kernel 6.1.0-7-rt-amd64.

Are you using the 5.18+ patch?

https://github.com/PhilippeBekaert/snd-hdspe/pull/12