]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: core: Remove child proc file elements recursively
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Apr 2015 16:26:38 +0000 (18:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 Apr 2015 15:27:57 +0000 (17:27 +0200)
commitf761766707970d88c743f5eeeefe6366c1fbe725
tree433dd8c4dd8c53ef7ebe4411f6dbdae7b1e9b74d
parent4b95e6c351dae4aacbc71cf3e9c2edca45226627
ALSA: core: Remove child proc file elements recursively

This patch changes the way to manage the resource release of proc
files: namely, let snd_info_free_entry() freeing the whole children.

This makes it us possible to drop the snd_device_*() management.  Then
snd_card_proc_new() becomes merely a wrapper to
snd_info_create_card_entry().

Together with this change, now you need to call snd_info_free_entry()
for a proc entry created via snd_card_proc_new(), while it was freed
via snd_device_free() beforehand.

Acked-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/info.h
sound/core/info.c
sound/pci/hda/patch_hdmi.c