Skip to content

Clean up memalloc callers

Takashi Iwai alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24ALSA: drivers: Remove superfluous snd_dma_continuous_data()sound/drivers/dummy.c sound/drivers/ml403-ac97cr.c sound/drivers/pcsp/pcsp_lib.c+4 -40 replies
2/24ALSA: mips: Remove superfluous snd_dma_continuous_data()sound/mips/hal2.c+1 -20 replies
3/24ALSA: rme32: Remove superfluous snd_dma_continuous_data()sound/pci/rme32.c+2 -20 replies
4/24ALSA: sh: Remove superfluous snd_dma_continuous_data()sound/sh/aica.c sound/sh/sh_dac_audio.c+2 -20 replies
5/24ALSA: sparc: Remove superfluous snd_dma_continuous_data()sound/sparc/amd7930.c sound/sparc/dbri.c+2 -20 replies
6/24ALSA: usb: Remove superfluous snd_dma_continuous_data()sound/usb/line6/pcm.c sound/usb/usx2y/usbusx2yaudio.c sound/usb/usx2y/usx2yhwdeppcm.c+5 -70 replies
7/24ALSA: 6fire: Drop the dead codesound/usb/6fire/pcm.c+0 -70 replies
8/24ALSA: usb-audio: Convert to the common vmalloc memallocsound/usb/pcm.c+8 -420 replies
9/24ALSA: aloop: Convert to the common vmalloc memallocsound/drivers/aloop.c+4 -40 replies
10/24ALSA: firewire: Convert to the common vmalloc memallocsound/firewire/bebob/bebob_pcm.c sound/firewire/dice/dice-pcm.c sound/firewire/digi00x/digi00x-pcm.c +6 more+40 -470 replies
11/24ALSA: 6fire: Convert to the common vmalloc memallocsound/usb/6fire/pcm.c+5 -40 replies
12/24ALSA: caiaq: Convert to the common vmalloc memallocsound/usb/caiaq/audio.c+4 -40 replies
13/24ALSA: hiface: Convert to the common vmalloc memallocsound/usb/hiface/pcm.c+5 -40 replies
14/24ALSA: ua101: Convert to the common vmalloc memallocsound/usb/misc/ua101.c+7 -70 replies
15/24ALSA: vx: Convert to the common vmalloc memallocsound/drivers/vx/vx_pcm.c+5 -50 replies
16/24ALSA: pdaudiocf: Convert to the common vmalloc memallocsound/pcmcia/pdaudiocf/pdaudiocf_pcm.c+5 -40 replies
17/24ALSA: mips: Convert to the common vmalloc memallocsound/mips/sgio2audio.c+6 -60 replies
18/24ALSA: pci: Drop superfluous snd_pcm_sgbuf_ops_pagesound/pci/au88x0/au88x0_pcm.c sound/pci/bt87x.c sound/pci/ctxfi/ctpcm.c +9 more+0 -240 replies
19/24ALSA: aoa: Avoid non-standard macro usagesound/aoa/soundbus/i2sbus/pcm.c+1 -10 replies
20/24ALSA: echoaudio: Avoid non-standard macro usagesound/pci/echoaudio/echoaudio.c+7 -130 replies
21/24ALSA: es1968: Avoid non-standard macro usagesound/pci/es1968.c+1 -30 replies
22/24ALSA: rme: Avoid non-standard macro usagesound/pci/rme9652/hdsp.c sound/pci/rme9652/hdspm.c sound/pci/rme9652/rme9652.c+3 -130 replies
23/24ALSA: pci: Avoid non-standard macro usagesound/pci/ad1889.c sound/pci/ali5451/ali5451.c sound/pci/als300.c +43 more+145 -1160 replies
24/24ALSA: docs: Remove snd_dma_pci_data() usage in documentationDocumentation/sound/kernel-api/writing-an-alsa-driver.rst+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [alsa-devel] [PATCH 00/24] Clean up memalloc callers

Hi,

this is a trivial cleanup series corresponding to the recent ALSA memalloc API enhancement[1].

Most of patches do simple and systematic changes: either convert to the new way of vmalloc buffer handling, replacing the superfluous snd_dma_continous_data() macro with NULL, or replacing the snd_dma_pci_data() with the direct device pointer assignment. Some have a slightly more changes but they are straightforward enough. Also, a few document updates are provided.

There are still a few reminders (noticeably ASoC), and I'll post the patches for them later. Once after all conversions done, we can drop the superfluous API functions and macros.

thanks,

Takashi

[1] https://lore.kernel.org/r/[email protected]

===

Takashi Iwai (24):
ALSA: drivers: Remove superfluous snd_dma_continuous_data()
ALSA: mips: Remove superfluous snd_dma_continuous_data()
ALSA: rme32: Remove superfluous snd_dma_continuous_data()
ALSA: sh: Remove superfluous snd_dma_continuous_data()
ALSA: sparc: Remove superfluous snd_dma_continuous_data()
ALSA: usb: Remove superfluous snd_dma_continuous_data()
ALSA: 6fire: Drop the dead code
ALSA: usb-audio: Convert to the common vmalloc memalloc
ALSA: aloop: Convert to the common vmalloc memalloc
ALSA: firewire: Convert to the common vmalloc memalloc
ALSA: 6fire: Convert to the common vmalloc memalloc
ALSA: caiaq: Convert to the common vmalloc memalloc
ALSA: hiface: Convert to the common vmalloc memalloc
ALSA: ua101: Convert to the common vmalloc memalloc
ALSA: vx: Convert to the common vmalloc memalloc
ALSA: pdaudiocf: Convert to the common vmalloc memalloc
ALSA: mips: Convert to the common vmalloc memalloc
ALSA: pci: Drop superfluous snd_pcm_sgbuf_ops_page
ALSA: aoa: Avoid non-standard macro usage
ALSA: echoaudio: Avoid non-standard macro usage
ALSA: es1968: Avoid non-standard macro usage
ALSA: rme: Avoid non-standard macro usage
ALSA: pci: Avoid non-standard macro usage
ALSA: docs: Remove snd_dma_pci_data() usage in documentation

 .../sound/kernel-api/writing-an-alsa-driver.rst    |  8 ++--
 sound/aoa/soundbus/i2sbus/pcm.c                    |  2 +-
 sound/drivers/aloop.c                              |  8 ++--
 sound/drivers/dummy.c                              |  2 +-
 sound/drivers/ml403-ac97cr.c                       |  2 +-
 sound/drivers/pcsp/pcsp_lib.c                      |  4 +-
 sound/drivers/vx/vx_pcm.c                          | 10 ++---
 sound/firewire/bebob/bebob_pcm.c                   |  9 ++--
 sound/firewire/dice/dice-pcm.c                     | 11 ++---
 sound/firewire/digi00x/digi00x-pcm.c               |  9 ++--
 sound/firewire/fireface/ff-pcm.c                   |  9 ++--
 sound/firewire/fireworks/fireworks_pcm.c           |  9 ++--
 sound/firewire/isight.c                            |  8 ++--
 sound/firewire/motu/motu-pcm.c                     |  9 ++--
 sound/firewire/oxfw/oxfw-pcm.c                     | 14 +++---
 sound/firewire/tascam/tascam-pcm.c                 |  9 ++--
 sound/mips/hal2.c                                  |  3 +-
 sound/mips/sgio2audio.c                            | 12 +++---
 sound/pci/ad1889.c                                 |  6 +--
 sound/pci/ali5451/ali5451.c                        |  2 +-
 sound/pci/als300.c                                 |  3 +-
 sound/pci/als4000.c                                |  3 +-
 sound/pci/asihpi/asihpi.c                          |  4 +-
 sound/pci/atiixp.c                                 |  6 +--
 sound/pci/atiixp_modem.c                           |  4 +-
 sound/pci/au88x0/au88x0_pcm.c                      |  3 +-
 sound/pci/aw2/aw2-alsa.c                           |  6 +--
 sound/pci/azt3328.c                                |  8 ++--
 sound/pci/bt87x.c                                  |  5 +--
 sound/pci/ca0106/ca0106_main.c                     |  6 +--
 sound/pci/cmipci.c                                 |  6 +--
 sound/pci/cs4281.c                                 |  3 +-
 sound/pci/cs46xx/cs46xx_lib.c                      | 16 ++++---
 sound/pci/cs5535audio/cs5535audio_pcm.c            |  6 +--
 sound/pci/ctxfi/ctpcm.c                            |  5 +--
 sound/pci/ctxfi/ctvmem.c                           |  2 +-
 sound/pci/echoaudio/echoaudio.c                    | 24 +++--------
 sound/pci/emu10k1/emu10k1.c                        |  5 ++-
 sound/pci/emu10k1/emu10k1x.c                       |  6 +--
 sound/pci/emu10k1/emufx.c                          |  2 +-
 sound/pci/emu10k1/emupcm.c                         | 12 +++---
 sound/pci/emu10k1/memory.c                         |  4 +-
 sound/pci/emu10k1/p16v.c                           |  4 +-
 sound/pci/ens1370.c                                |  8 ++--
 sound/pci/es1938.c                                 |  3 +-
 sound/pci/es1968.c                                 |  4 +-
 sound/pci/fm801.c                                  |  2 +-
 sound/pci/hda/hda_controller.c                     |  1 -
 sound/pci/ice1712/ice1712.c                        |  9 ++--
 sound/pci/ice1712/ice1724.c                        |  6 +--
 sound/pci/intel8x0.c                               |  4 +-
 sound/pci/intel8x0m.c                              |  4 +-
 sound/pci/korg1212/korg1212.c                      |  8 ++--
 sound/pci/lola/lola.c                              |  2 +-
 sound/pci/lola/lola_pcm.c                          |  5 +--
 sound/pci/lx6464es/lx6464es.c                      |  2 +-
 sound/pci/maestro3.c                               |  3 +-
 sound/pci/mixart/mixart.c                          |  7 +--
 sound/pci/oxygen/oxygen_pcm.c                      | 10 ++---
 sound/pci/pcxhr/pcxhr.c                            |  4 +-
 sound/pci/riptide/riptide.c                        |  6 +--
 sound/pci/rme32.c                                  |  4 +-
 sound/pci/rme9652/hdsp.c                           |  7 +--
 sound/pci/rme9652/hdspm.c                          |  3 +-
 sound/pci/rme9652/rme9652.c                        |  7 +--
 sound/pci/sis7019.c                                |  3 +-
 sound/pci/sonicvibes.c                             |  3 +-
 sound/pci/trident/trident_main.c                   | 24 ++++++-----
 sound/pci/via82xx.c                                | 17 +++-----
 sound/pci/via82xx_modem.c                          |  6 +--
 sound/pci/ymfpci/ymfpci_main.c                     | 16 ++++---
 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c             |  9 ++--
 sound/sh/aica.c                                    |  2 +-
 sound/sh/sh_dac_audio.c                            |  2 +-
 sound/sparc/amd7930.c                              |  2 +-
 sound/sparc/dbri.c                                 |  2 +-
 sound/usb/6fire/pcm.c                              | 16 +++----
 sound/usb/caiaq/audio.c                            |  8 ++--
 sound/usb/hiface/pcm.c                             |  9 ++--
 sound/usb/line6/pcm.c                              |  4 +-
 sound/usb/misc/ua101.c                             | 14 +++---
 sound/usb/pcm.c                                    | 50 ++++------------------
 sound/usb/usx2y/usbusx2yaudio.c                    |  4 +-
 sound/usb/usx2y/usx2yhwdeppcm.c                    |  4 +-
 84 files changed, 266 insertions(+), 327 deletions(-)
Signature · 6 lines
2.16.4

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel