linux/sound/pci/ctxfi
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
..
ct20k1reg.h ALSA: ctxfi: ct20k1reg: Fix typo in include guard 2014-08-22 11:24:57 +02:00
ct20k2reg.h
ctamixer.c ALSA: ctxfi: pr_* replaced with dev_* 2014-09-30 10:36:59 +02:00
ctamixer.h ALSA: ctxfi: added reference of snd_card 2014-09-30 10:35:48 +02:00
ctatc.c ALSA: ctxfi: Kill the rest snd_print*() 2014-10-28 17:40:42 +01:00
ctatc.h ALSA: ctxfi: changed void * to struct hw * 2014-09-30 10:34:29 +02:00
ctdaio.c ALSA: ctxfi: Neaten get_daio_rsc 2014-12-03 20:30:04 +01:00
ctdaio.h ALSA: ctxfi: added reference of snd_card 2014-09-30 10:35:48 +02:00
cthardware.c
cthardware.h ALSA: ctxfi: added reference of snd_card 2014-09-30 10:35:48 +02:00
cthw20k1.c ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
cthw20k1.h
cthw20k2.c ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
cthw20k2.h
ctimap.c
ctimap.h
ctmixer.c ALSA: ctxfi: pr_* replaced with dev_* 2014-09-30 10:36:59 +02:00
ctmixer.h
ctpcm.c ALSA: ctxfi: pr_* replaced with dev_* 2014-09-30 10:36:59 +02:00
ctpcm.h
ctresource.c ALSA: ctxfi: pr_* replaced with dev_* 2014-09-30 10:36:59 +02:00
ctresource.h ALSA: ctxfi: changed void * to struct hw * 2014-09-30 10:34:29 +02:00
ctsrc.c ALSA: ctxfi: pr_* replaced with dev_* 2014-09-30 10:36:59 +02:00
ctsrc.h ALSA: ctxfi: added reference of snd_card 2014-09-30 10:35:48 +02:00
cttimer.c ALSA: ctxfi: Kill the rest snd_print*() 2014-10-28 17:40:42 +01:00
cttimer.h
ctvmem.c ALSA: ctxfi: pr_* replaced with dev_* 2014-09-30 10:36:59 +02:00
ctvmem.h
Makefile
xfi.c ALSA: ctxfi: pr_* replaced with dev_* 2014-09-30 10:36:59 +02:00