Skip to content

ALSA: Drop __bitwise and __force prefix

Takashi Iwai linux-sound 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14ALSA: uapi: Drop __bitwise and __force prefixinclude/uapi/sound/asequencer.h include/uapi/sound/asound.h+93 -930 replies
2/14ALSA: pcm: Drop __force castsinclude/sound/pcm.h include/sound/pcm_params.h sound/core/pcm.c +2 more+39 -490 replies
3/14ALSA: pcm: Avoid macros for SNDRV_PCM_FMTBIT and SNDRV_PCM_SUBFMTBITinclude/sound/pcm.h+55 -570 replies
4/14ALSA: control: Drop __force castssound/core/control_compat.c+6 -60 replies
5/14ALSA: oss: Drop __force castssound/core/oss/pcm_oss.c sound/core/oss/pcm_plugin.c+18 -180 replies
6/14ALSA: kunit: Drop __force castssound/core/sound_kunit.c+2 -20 replies
7/14ALSA: aloop: Drop __force castssound/drivers/aloop.c+2 -20 replies
8/14ALSA: hda: Drop __force castssound/hda/common/codec.c sound/hda/core/device.c+2 -20 replies
9/14ALSA: asihpi: Drop __force castsound/pci/asihpi/asihpi.c+1 -10 replies
10/14ALSA: emu10k1: Drop __force castssound/pci/emu10k1/emufx.c+9 -90 replies
11/14ASoC: fsl: Drop __force castssound/soc/fsl/fsl-asoc-card.c sound/soc/fsl/fsl_asrc.c sound/soc/fsl/fsl_asrc_m2m.c +3 more+14 -142 replies
12/14ASoC: Intel: avs: Drop __force castsound/soc/intel/avs/probes.c+1 -12 replies
13/14ASoC: mediatek: Drop __force castssound/soc/mediatek/mt8183/mt8183-da7219-max98357.c sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c sound/soc/mediatek/mt8186/mt8186-mt6366.c +5 more+11 -111 reply
14/14ASoC: meson: Drop __force castsound/soc/meson/meson-codec-glue.c+1 -11 reply

Reviews trailers per patch

4 of 14 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCezary RojewskiShengjiu WangMark Brown
SeriesR-b
1/14
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14R-b A-b
12/14A-b A-b
13/14A-b
14/14A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/14] ALSA: Drop __bitwise and __force prefix

Hi,

this is a series of cleanup patches to kill the infamous __bitwise and __force prefix usage for some PCM and control parameter types. They were added ages ago just for code safety, but its effect is quite limited, while the drawback is significant. Let's drop them.

Takashi

===

Takashi Iwai (14):
ALSA: uapi: Drop __bitwise and __force prefix
ALSA: pcm: Drop __force casts
ALSA: pcm: Avoid macros for SNDRV_PCM_FMTBIT and SNDRV_PCM_SUBFMTBIT
ALSA: control: Drop __force casts
ALSA: oss: Drop __force casts
ALSA: kunit: Drop __force casts
ALSA: aloop: Drop __force casts
ALSA: hda: Drop __force casts
ALSA: asihpi: Drop __force cast
ALSA: emu10k1: Drop __force casts
ASoC: fsl: Drop __force casts
ASoC: Intel: avs: Drop __force cast
ASoC: mediatek: Drop __force casts
ASoC: meson: Drop __force cast

 include/sound/pcm.h                           | 118 ++++++------
 include/sound/pcm_params.h                    |  13 +-
 include/uapi/sound/asequencer.h               |   8 +-
 include/uapi/sound/asound.h                   | 178 +++++++++---------
 sound/core/control_compat.c                   |  12 +-
 sound/core/oss/pcm_oss.c                      |  16 +-
 sound/core/oss/pcm_plugin.c                   |  20 +-
 sound/core/pcm.c                              |  12 +-
 sound/core/pcm_misc.c                         |  25 ++-
 sound/core/pcm_native.c                       |  28 +--
 sound/core/sound_kunit.c                      |   4 +-
 sound/drivers/aloop.c                         |   4 +-
 sound/hda/common/codec.c                      |   2 +-
 sound/hda/core/device.c                       |   2 +-
 sound/pci/asihpi/asihpi.c                     |   2 +-
 sound/pci/emu10k1/emufx.c                     |  18 +-
 sound/soc/fsl/fsl-asoc-card.c                 |   2 +-
 sound/soc/fsl/fsl_asrc.c                      |   2 +-
 sound/soc/fsl/fsl_asrc_m2m.c                  |  10 +-
 sound/soc/fsl/fsl_easrc.c                     |   2 +-
 sound/soc/fsl/fsl_qmc_audio.c                 |   8 +-
 sound/soc/fsl/imx-card.c                      |   4 +-
 sound/soc/intel/avs/probes.c                  |   2 +-
 .../mediatek/mt8183/mt8183-da7219-max98357.c  |   4 +-
 .../mt8183/mt8183-mt6358-ts3a227-max98357.c   |   4 +-
 sound/soc/mediatek/mt8186/mt8186-mt6366.c     |   2 +-
 sound/soc/mediatek/mt8188/mt8188-mt6359.c     |   2 +-
 sound/soc/mediatek/mt8189/mt8189-nau8825.c    |   2 +-
 .../mt8192/mt8192-mt6359-rt1015-rt5682.c      |   2 +-
 sound/soc/mediatek/mt8195/mt8195-mt6359.c     |   4 +-
 sound/soc/mediatek/mt8196/mt8196-nau8825.c    |   2 +-
 sound/soc/meson/meson-codec-glue.c            |   2 +-
 32 files changed, 252 insertions(+), 264 deletions(-)
Signature · 1 line
2.55.0