.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * The driver for the EMU10K1 (SB Live!) based soundcards |
---|
3 | 4 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk> |
---|
6 | 7 | * Added support for Audigy 2 Value. |
---|
7 | | - * |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License as published by |
---|
11 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
12 | | - * (at your option) any later version. |
---|
13 | | - * |
---|
14 | | - * This program is distributed in the hope that it will be useful, |
---|
15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | | - * GNU General Public License for more details. |
---|
18 | | - * |
---|
19 | | - * You should have received a copy of the GNU General Public License |
---|
20 | | - * along with this program; if not, write to the Free Software |
---|
21 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
22 | | - * |
---|
23 | | - * |
---|
24 | 8 | */ |
---|
25 | 9 | |
---|
26 | 10 | #include <linux/init.h> |
---|
.. | .. |
---|
140 | 124 | goto error; |
---|
141 | 125 | /* This stores the periods table. */ |
---|
142 | 126 | if (emu->card_capabilities->ca0151_chip) { /* P16V */ |
---|
143 | | - if ((err = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(pci), |
---|
144 | | - 1024, &emu->p16v_buffer)) < 0) |
---|
| 127 | + err = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, &pci->dev, |
---|
| 128 | + 1024, &emu->p16v_buffer); |
---|
| 129 | + if (err < 0) |
---|
145 | 130 | goto error; |
---|
146 | 131 | } |
---|
147 | 132 | |
---|
.. | .. |
---|
223 | 208 | emu->suspend = 1; |
---|
224 | 209 | |
---|
225 | 210 | cancel_delayed_work_sync(&emu->emu1010.firmware_work); |
---|
226 | | - |
---|
227 | | - snd_pcm_suspend_all(emu->pcm); |
---|
228 | | - snd_pcm_suspend_all(emu->pcm_mic); |
---|
229 | | - snd_pcm_suspend_all(emu->pcm_efx); |
---|
230 | | - snd_pcm_suspend_all(emu->pcm_multi); |
---|
231 | | - snd_pcm_suspend_all(emu->pcm_p16v); |
---|
232 | 211 | |
---|
233 | 212 | snd_ac97_suspend(emu->ac97); |
---|
234 | 213 | |
---|