forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/sound/pci/emu10k1/memory.c
....@@ -1,24 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
34 * Copyright (c) by Takashi Iwai <tiwai@suse.de>
45 *
56 * EMU10K1 memory page allocation (PTB area)
6
- *
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
- *
227 */
238
249 #include <linux/pci.h>
....@@ -402,7 +387,7 @@
402387 }
403388
404389 return snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV,
405
- snd_dma_pci_data(emu->pci), size, dmab);
390
+ &emu->pci->dev, size, dmab);
406391 }
407392
408393 /*
....@@ -492,7 +477,7 @@
492477 int page;
493478
494479 dmab.dev.type = SNDRV_DMA_TYPE_DEV;
495
- dmab.dev.dev = snd_dma_pci_data(emu->pci);
480
+ dmab.dev.dev = &emu->pci->dev;
496481
497482 for (page = first_page; page <= last_page; page++) {
498483 if (emu->page_ptr_table[page] == NULL)