linux/sound/firewire/dice
Takashi Sakamoto 366a20d7a7 ALSA: firewire: use managed-resource of fw unit device for private data
At present, private data of each driver in ALSA firewire stack is
allocated/freed by kernel slab allocator for corresponding unit on
IEEE 1394 bus. In this case, resource-managed slab allocator is
available to release memory object automatically just before releasing
device structure for the unit. This idea can prevent runtime from
memory leak due to programming mistakes.

This commit uses the allocator for the private data. These drivers
already use reference counter to maintain lifetime of device structure
for the unit by a pair of fw_unit_get()/fw_unit_put(). The private data
is safely released in a callback of 'struct snd_card.private_free().

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-10-04 07:54:01 +02:00
..
dice-alesis.c ALSA: dice: fix wrong copy to rx parameters for Alesis iO26 2018-08-06 09:35:32 +02:00
dice-extension.c ALSA: dice: use extended protocol to detect available stream formats 2018-05-02 16:02:00 +02:00
dice-hwdep.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
dice-interface.h ALSA: dice: improve support for ancient firmware for DICE 2018-04-24 17:18:59 +02:00
dice-midi.c ALSA: dice: use stream formats to add MIDI substreams 2018-05-02 16:02:05 +02:00
dice-mytek.c ALSA: dice: add stream format parameters for Mytek devices 2018-05-18 08:53:51 +02:00
dice-pcm.c ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
dice-proc.c sound: Use octal not symbolic permissions 2018-05-28 11:27:20 +02:00
dice-stream.c Merge branch 'for-linus' into for-next 2018-05-15 07:30:23 +02:00
dice-tcelectronic.c ALSA: dice: unuse second stream for MIDI conformant data channel for TC Electronic models 2018-05-27 08:32:08 +02:00
dice-transaction.c ALSA: dice: improve support for ancient firmware for DICE 2018-04-24 17:18:59 +02:00
dice.c ALSA: firewire: use managed-resource of fw unit device for private data 2018-10-04 07:54:01 +02:00
dice.h ALSA: dice: add stream format parameters for Mytek devices 2018-05-18 08:53:51 +02:00
Makefile ALSA: dice: add stream format parameters for Mytek devices 2018-05-18 08:53:51 +02:00