linux/sound/pci/emu10k1
Quentin Lambert 412b979ccc ALSA: remove deprecated use of pci api
Replace occurences of the pci api by appropriate call to the dma api.

A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr)

@deprecated@
idexpression id;
position p;
@@

(
  pci_dma_supported@p ( id, ...)
|
  pci_alloc_consistent@p ( id, ...)
)

@bad1@
idexpression id;
position deprecated.p;
@@
...when != &id->dev
   when != pci_get_drvdata ( id )
   when != pci_enable_device ( id )
(
  pci_dma_supported@p ( id, ...)
|
  pci_alloc_consistent@p ( id, ...)
)

@depends on !bad1@
idexpression id;
expression direction;
position deprecated.p;
@@

(
- pci_dma_supported@p ( id,
+ dma_supported ( &id->dev,
...
+ , GFP_ATOMIC
  )
|
- pci_alloc_consistent@p ( id,
+ dma_alloc_coherent ( &id->dev,
...
+ , GFP_ATOMIC
  )
)

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-04-16 12:19:52 +02:00
..
emu10k1_callback.c ALSA: emu10k1: Fix deadlock in synth voice lookup 2014-10-14 09:18:02 +02:00
emu10k1_main.c ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
emu10k1_patch.c ALSA: emu10k1: Use standard printk helpers 2014-02-26 16:45:27 +01:00
emu10k1_synth_local.h
emu10k1_synth.c ALSA: seq: Define driver object in each driver 2015-02-12 14:15:54 +01:00
emu10k1.c Merge branch 'topic/pci-cleanup' into for-next 2015-01-11 11:26:48 +01:00
emu10k1x.c ALSA: emu10k1: Remove always NULL parameters 2015-01-02 16:32:45 +01:00
emufx.c ALSA: emu10k1: Remove always NULL parameters 2015-01-02 16:32:45 +01:00
emumixer.c ALSA: emu10k1: add toggles for E-mu 1010 optical ports 2015-04-11 18:35:06 +02:00
emumpu401.c ALSA: emu10k1: Use standard printk helpers 2014-02-26 16:45:27 +01:00
emupcm.c ALSA: emu10k1: Remove always NULL parameters 2015-01-02 16:32:45 +01:00
emuproc.c ALSA: emu10k1: don't deadlock in proc-functions 2015-04-10 13:02:23 +02:00
io.c ALSA: emu10k1: Fix possible NULL dereference 2014-03-05 12:15:56 +01:00
irq.c ALSA: emu10k1: Use standard printk helpers 2014-02-26 16:45:27 +01:00
Makefile ALSA: clean up the logic for building sequencer modules 2009-05-29 11:49:42 +02:00
memory.c ALSA: emu10k1: Use standard printk helpers 2014-02-26 16:45:27 +01:00
p16v.c ALSA: emu10k1: Delete an unnecessary check before the function call "kfree" 2015-01-04 15:12:08 +01:00
p16v.h Fix common misspellings 2011-03-31 11:26:23 -03:00
p17v.h
timer.c ALSA: pci: remove __dev* attributes 2012-12-07 07:20:55 +01:00
tina2.h
voice.c ALSA: emu10k1: Use standard printk helpers 2014-02-26 16:45:27 +01:00