Skip to content

ALSA: Use auto-cleanup for probe card error handling

Takashi Iwai linux-sound 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest32 patches 0 repliesNew
  2. v132 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32ALSA: galaxy: Use auto-cleanup for probe card error handlingsound/isa/galaxy/galaxy.c+3 -70 replies
2/32ALSA: sc6000: Use auto-cleanup for probe card error handlingsound/isa/sc6000.c+3 -70 replies
3/32ALSA: ad1889: Use auto-cleanup for probe card error handlingsound/pci/ad1889.c+4 -90 replies
4/32ALSA: ali5451: Use auto-cleanup for probe card error handlingsound/pci/ali5451/ali5451.c+4 -90 replies
5/32ALSA: als4000: Use auto-cleanup for probe card error handlingsound/pci/als4000.c+4 -90 replies
6/32ALSA: atiixp: Use auto-cleanup for probe card error handlingsound/pci/atiixp.c sound/pci/atiixp_modem.c+8 -180 replies
7/32ALSA: au88x0: Use auto-cleanup for probe card error handlingsound/pci/au88x0/au88x0.c+3 -80 replies
8/32ALSA: azt3328: Use auto-cleanup for probe card error handlingsound/pci/azt3328.c+3 -80 replies
9/32ALSA: bt87x: Use auto-cleanup for probe card error handlingsound/pci/bt87x.c+4 -90 replies
10/32ALSA: ca0106: Use auto-cleanup for probe card error handlingsound/pci/ca0106/ca0106_main.c+3 -80 replies
11/32ALSA: cs4281: Use auto-cleanup for probe card error handlingsound/pci/cs4281.c+4 -90 replies
12/32ALSA: cs5535audio: Use auto-cleanup for probe card error handlingsound/pci/cs5535audio/cs5535audio.c+4 -90 replies
13/32ALSA: echoaudio: Use auto-cleanup for probe card error handlingsound/pci/echoaudio/echoaudio.c+4 -100 replies
14/32ALSA: emu10k1x: Use auto-cleanup for probe card error handlingsound/pci/emu10k1/emu10k1x.c+4 -90 replies
15/32ALSA: ens137x: Use auto-cleanup for probe card error handlingsound/pci/ens1370.c+4 -90 replies
16/32ALSA: es1938: Use auto-cleanup for probe card error handlingsound/pci/es1938.c+4 -90 replies
17/32ALSA: es1968: Use auto-cleanup for probe card error handlingsound/pci/es1968.c+4 -90 replies
18/32ALSA: fm801: Use auto-cleanup for probe card error handlingsound/pci/fm801.c+4 -90 replies
19/32ALSA: ice1724: Use auto-cleanup for probe card error handlingsound/pci/ice1712/ice1724.c+4 -90 replies
20/32ALSA: intel8x0: Use auto-cleanup for probe card error handlingsound/pci/intel8x0.c sound/pci/intel8x0m.c+9 -180 replies
21/32ALSA: lola: Use auto-cleanup for probe card error handlingsound/pci/lola/lola.c+4 -90 replies
22/32ALSA: maestro3: Use auto-cleanup for probe card error handlingsound/pci/maestro3.c+3 -80 replies
23/32ALSA: oxygen: Use auto-cleanup for probe card error handlingsound/pci/oxygen/oxygen_lib.c+3 -120 replies
24/32ALSA: riptide: Use auto-cleanup for probe card error handlingsound/pci/riptide/riptide.c+3 -80 replies
25/32ALSA: rme32: Use auto-cleanup for probe card error handlingsound/pci/rme32.c+3 -80 replies
26/32ALSA: rm96: Use auto-cleanup for probe card error handlingsound/pci/rme96.c+4 -90 replies
27/32ALSA: sis7019: Use auto-cleanup for probe card error handlingsound/pci/sis7019.c+4 -90 replies
28/32ALSA: sonicbibes: Use auto-cleanup for probe card error handlingsound/pci/sonicvibes.c+4 -90 replies
29/32ALSA: via82xx: Use auto-cleanup for probe card error handlingsound/pci/via82xx.c sound/pci/via82xx_modem.c+8 -180 replies
30/32ALSA: ymfpci: Use auto-cleanup for probe card error handlingsound/pci/ymfpci/ymfpci.c+4 -90 replies
31/32ALSA: intel-hdmi-audio: Use auto-cleanup for probe card error handlingsound/x86/intel_hdmi_audio.c+3 -70 replies
32/32ALSA: Drop unused snd_card_free_on_error()include/sound/core.h sound/core/init.c+7 -300 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/32] ALSA: Use auto-cleanup for probe card error handling

Hi,

here is a revised series of trivial changes as a cleanup.

So far, many sound drivers use the manual call of snd_card_free_on_error() helper in order to deal with the errors at probe time. This can be gracefully done via auto-cleanup, and here are the conversions.

In this version, the new __free(snd_card_free) is used instead of __free(snd_card_unref).

Only code refactoring, and no functional changes are expected.

Takashi

===

Takashi Iwai (32):
ALSA: galaxy: Use auto-cleanup for probe card error handling
ALSA: sc6000: Use auto-cleanup for probe card error handling
ALSA: ad1889: Use auto-cleanup for probe card error handling
ALSA: ali5451: Use auto-cleanup for probe card error handling
ALSA: als4000: Use auto-cleanup for probe card error handling
ALSA: atiixp: Use auto-cleanup for probe card error handling
ALSA: au88x0: Use auto-cleanup for probe card error handling
ALSA: azt3328: Use auto-cleanup for probe card error handling
ALSA: bt87x: Use auto-cleanup for probe card error handling
ALSA: ca0106: Use auto-cleanup for probe card error handling
ALSA: cs4281: Use auto-cleanup for probe card error handling
ALSA: cs5535audio: Use auto-cleanup for probe card error handling
ALSA: echoaudio: Use auto-cleanup for probe card error handling
ALSA: emu10k1x: Use auto-cleanup for probe card error handling
ALSA: ens137x: Use auto-cleanup for probe card error handling
ALSA: es1938: Use auto-cleanup for probe card error handling
ALSA: es1968: Use auto-cleanup for probe card error handling
ALSA: fm801: Use auto-cleanup for probe card error handling
ALSA: ice1724: Use auto-cleanup for probe card error handling
ALSA: intel8x0: Use auto-cleanup for probe card error handling
ALSA: lola: Use auto-cleanup for probe card error handling
ALSA: maestro3: Use auto-cleanup for probe card error handling
ALSA: oxygen: Use auto-cleanup for probe card error handling
ALSA: riptide: Use auto-cleanup for probe card error handling
ALSA: rme32: Use auto-cleanup for probe card error handling
ALSA: rm96: Use auto-cleanup for probe card error handling
ALSA: sis7019: Use auto-cleanup for probe card error handling
ALSA: sonicbibes: Use auto-cleanup for probe card error handling
ALSA: via82xx: Use auto-cleanup for probe card error handling
ALSA: ymfpci: Use auto-cleanup for probe card error handling
ALSA: intel-hdmi-audio: Use auto-cleanup for probe card error handling
ALSA: Drop unused snd_card_free_on_error()

 include/sound/core.h                |  1 -
 sound/core/init.c                   | 36 ++++++-----------------------
 sound/isa/galaxy/galaxy.c           | 10 +++-----
 sound/isa/sc6000.c                  | 10 +++-----
 sound/pci/ad1889.c                  | 13 ++++-------
 sound/pci/ali5451/ali5451.c         | 13 ++++-------
 sound/pci/als4000.c                 | 13 ++++-------
 sound/pci/atiixp.c                  | 13 ++++-------
 sound/pci/atiixp_modem.c            | 13 ++++-------
 sound/pci/au88x0/au88x0.c           | 11 +++------
 sound/pci/azt3328.c                 | 11 +++------
 sound/pci/bt87x.c                   | 13 ++++-------
 sound/pci/ca0106/ca0106_main.c      | 11 +++------
 sound/pci/cs4281.c                  | 13 ++++-------
 sound/pci/cs5535audio/cs5535audio.c | 13 ++++-------
 sound/pci/echoaudio/echoaudio.c     | 14 ++++-------
 sound/pci/emu10k1/emu10k1x.c        | 13 ++++-------
 sound/pci/ens1370.c                 | 13 ++++-------
 sound/pci/es1938.c                  | 13 ++++-------
 sound/pci/es1968.c                  | 13 ++++-------
 sound/pci/fm801.c                   | 13 ++++-------
 sound/pci/ice1712/ice1724.c         | 13 ++++-------
 sound/pci/intel8x0.c                | 14 ++++-------
 sound/pci/intel8x0m.c               | 13 ++++-------
 sound/pci/lola/lola.c               | 13 ++++-------
 sound/pci/maestro3.c                | 11 +++------
 sound/pci/oxygen/oxygen_lib.c       | 15 +++---------
 sound/pci/riptide/riptide.c         | 11 +++------
 sound/pci/rme32.c                   | 11 +++------
 sound/pci/rme96.c                   | 13 ++++-------
 sound/pci/sis7019.c                 | 13 ++++-------
 sound/pci/sonicvibes.c              | 13 ++++-------
 sound/pci/via82xx.c                 | 13 ++++-------
 sound/pci/via82xx_modem.c           | 13 ++++-------
 sound/pci/ymfpci/ymfpci.c           | 13 ++++-------
 sound/x86/intel_hdmi_audio.c        | 10 +++-----
 36 files changed, 134 insertions(+), 328 deletions(-)
Signature · 1 line
2.55.0