mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
[ALSA] Add snd_pcm_group_for_each_entry() for code cleanup
Added a new macro snd_pcm_group_for_each_entry() just for code cleanup. Old macros, snd_pcm_group_for_each() and snd_pcm_group_substream_entry(), are removed. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
5e24c1c1c4
commit
ef991b95aa
18 changed files with 34 additions and 85 deletions
|
@ -603,11 +603,8 @@ do { \
|
|||
read_unlock_irqrestore(&snd_pcm_link_rwlock, (flags)); \
|
||||
} while (0)
|
||||
|
||||
#define snd_pcm_group_for_each(pos, substream) \
|
||||
list_for_each(pos, &substream->group->substreams)
|
||||
|
||||
#define snd_pcm_group_substream_entry(pos) \
|
||||
list_entry(pos, struct snd_pcm_substream, link_list)
|
||||
#define snd_pcm_group_for_each_entry(s, substream) \
|
||||
list_for_each_entry(s, &substream->group->substreams, link_list)
|
||||
|
||||
static inline int snd_pcm_running(struct snd_pcm_substream *substream)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue