Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make hdspe on kernel 6.1.0 great again #14

Open
tonve opened this issue Apr 1, 2023 · 2 comments
Open

Make hdspe on kernel 6.1.0 great again #14

tonve opened this issue Apr 1, 2023 · 2 comments

Comments

@tonve
Copy link

tonve commented Apr 1, 2023

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
Copy link

Thank you for this. I will try to test also

@VennStone
Copy link

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

Are you using the 5.18+ patch?

#12

tsointsoin added a commit to tsointsoin/snd-hdspe that referenced this issue Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants