]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: pcm: Make PCM linked list consistent while re-grouping
authorTakashi Iwai <tiwai@suse.de>
Sun, 13 Jan 2019 08:40:21 +0000 (09:40 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Jan 2019 15:39:54 +0000 (16:39 +0100)
commita41c4cb913b53bf74f1ec66a4b96057626c87009
treea063f1c6b8276a20ac40e407e77454ae303d1860
parent73365cb10b280e539bad14e129e0d8434418bb79
ALSA: pcm: Make PCM linked list consistent while re-grouping

Make a common helper to re-assign the PCM link using list_move() instead
of open code with manual list_del() and list_add_tail().  This assures
the consistency and we can get rid of snd_pcm_group.count field -- its
purpose is only to check whether the list is singular, and we can know
it by list_is_singular() call now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm_native.c