ALSA: pcm: Use for_each_pcm_substream() macro
authorTakashi Iwai <tiwai@suse.de>
Sat, 6 Feb 2021 20:36:56 +0000 (21:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Feb 2021 15:01:01 +0000 (16:01 +0100)
commit8d19b4e0b377e226b98f26ded5f0c6463976e4fb
tree2018d108a523f8c192748d4181a0aea31192010d
parent700cb70730777c159a988e01daa93f20a1ae9b58
ALSA: pcm: Use for_each_pcm_substream() macro

There are a few places doing the same loop iterating all PCM
substreams belonging to the PCM object.  Introduce a local helper
macro, for_each_pcm_substream(), to simplify the code.

Link: https://lore.kernel.org/r/20210206203656.15959-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c
sound/core/pcm_local.h
sound/core/pcm_memory.c
sound/core/pcm_native.c