| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Support for Digigram Lola PCI-e boards |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 19 | 6 | */ |
|---|
| 20 | 7 | |
|---|
| 21 | 8 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 363 | 350 | unsigned long end_time; |
|---|
| 364 | 351 | |
|---|
| 365 | 352 | err = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, |
|---|
| 366 | | - snd_dma_pci_data(chip->pci), |
|---|
| 353 | + &chip->pci->dev, |
|---|
| 367 | 354 | PAGE_SIZE, &chip->rb); |
|---|
| 368 | 355 | if (err < 0) |
|---|
| 369 | 356 | return err; |
|---|
| .. | .. |
|---|
| 572 | 559 | struct lola *chip; |
|---|
| 573 | 560 | int err; |
|---|
| 574 | 561 | unsigned int dever; |
|---|
| 575 | | - static struct snd_device_ops ops = { |
|---|
| 562 | + static const struct snd_device_ops ops = { |
|---|
| 576 | 563 | .dev_free = lola_dev_free, |
|---|
| 577 | 564 | }; |
|---|
| 578 | 565 | |
|---|
| .. | .. |
|---|
| 651 | 638 | goto errout; |
|---|
| 652 | 639 | } |
|---|
| 653 | 640 | chip->irq = pci->irq; |
|---|
| 654 | | - synchronize_irq(chip->irq); |
|---|
| 641 | + card->sync_irq = chip->irq; |
|---|
| 655 | 642 | |
|---|
| 656 | 643 | dever = lola_readl(chip, BAR1, DEVER); |
|---|
| 657 | 644 | chip->pcm[CAPT].num_streams = (dever >> 0) & 0x3ff; |
|---|