]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92264fd3b9a97f5ab98c8c1f03ac9fc5df9066fb
tree2018d108a523f8c192748d4181a0aea31192010d
parent75bda517c0ab42701b4bbfd4b35dce6a487e0de0
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