]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Unify snd_pcm_group initialization
authorTakashi Iwai <tiwai@suse.de>
Sun, 13 Jan 2019 08:35:17 +0000 (09:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Jan 2019 15:39:35 +0000 (16:39 +0100)
commit467ef31df5bd04544db93a2b43ccc62090bdd42d
tree578b57c2edbaafecc208d65fbb1518d5044a84c9
parent4d3086d617ae7921aa3682b3f80753608ef8f697
ALSA: pcm: Unify snd_pcm_group initialization

There are multiple open codes that initialize the same object.
Create a common helper function instead.

Also, use kzalloc() to be safer at creating a group object, and move
the initialization out of the critical section.

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