]> git.baikalelectronics.ru Git - kernel.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)
commit8776e9dc6dbd8512c6ab3ec723697d0dd0e19b47
treea063f1c6b8276a20ac40e407e77454ae303d1860
parenta9fb19ca2ac4066576cd5ec79273b8ba3c233b8d
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