hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/sound/pci/lola/lola.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Support for Digigram Lola PCI-e boards
34 *
45 * Copyright (c) 2011 Takashi Iwai <tiwai@suse.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the Free
8
- * Software Foundation; either version 2 of the License, or (at your option)
9
- * any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful, but WITHOUT
12
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
- * more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along with
17
- * this program; if not, write to the Free Software Foundation, Inc., 59
18
- * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
196 */
207
218 #include <linux/kernel.h>
....@@ -363,7 +350,7 @@
363350 unsigned long end_time;
364351
365352 err = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV,
366
- snd_dma_pci_data(chip->pci),
353
+ &chip->pci->dev,
367354 PAGE_SIZE, &chip->rb);
368355 if (err < 0)
369356 return err;
....@@ -572,7 +559,7 @@
572559 struct lola *chip;
573560 int err;
574561 unsigned int dever;
575
- static struct snd_device_ops ops = {
562
+ static const struct snd_device_ops ops = {
576563 .dev_free = lola_dev_free,
577564 };
578565
....@@ -651,7 +638,7 @@
651638 goto errout;
652639 }
653640 chip->irq = pci->irq;
654
- synchronize_irq(chip->irq);
641
+ card->sync_irq = chip->irq;
655642
656643 dever = lola_readl(chip, BAR1, DEVER);
657644 chip->pcm[CAPT].num_streams = (dever >> 0) & 0x3ff;