From dab3456f9a858f9e888e40d69fdf80548da527ec Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 20 Mar 2025 15:30:17 +0100 Subject: [PATCH] Fixed build for Debian Bookworm Signed-off-by: Christian Pointner --- src/pcxhr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pcxhr.c b/src/pcxhr.c index 4aa2736..aa33a56 100644 --- a/src/pcxhr.c +++ b/src/pcxhr.c @@ -60,7 +60,6 @@ MODULE_AUTHOR("Gilbert Passador , " "Loïc Boissy "); MODULE_DESCRIPTION("Digigram " DRIVER_NAME " " PCXHR_DRIVER_VERSION_STRING); MODULE_LICENSE("GPL"); -MODULE_SUPPORTED_DEVICE("{{Digigram," DRIVER_NAME "}}"); static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ @@ -1651,7 +1650,7 @@ static int pcxhr_probe(struct pci_dev *pci, pci_set_master(pci); /* check if we can restrict PCI DMA transfers to 32 bits */ - if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { + if (dma_set_mask(&pci->dev, DMA_BIT_MASK(32)) < 0) { snd_printk(KERN_ERR "architecture does not support " "32bit PCI busmaster DMA\n"); pci_disable_device(pci);