snd_hwdep_new and snd_seq_device_new
There are functions snd_hwdep_free() and snd_seq_device_free(), they are not export_symbol
EXPORT_SYMBOL(snd_hwdep_new) in hwdep.c EXPORT_SYMBOL(snd_seq_device_new) in seq/seq_device.c
Do I need to free the (soundfont loading) hwdep device on the callback ".dev_free" of the sound card ?
Do it mean that I cannot use snd_device_new(card, SNDRV_DEV_SEQUENCER, wt, &ops)) to implement a customized version of snd_seq_device_free() (put the synth code in the sound card driver) ?
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
Quoted 9 lines · Raymond
There are functions
snd_hwdep_free()andsnd_seq_device_free(), they are notexport_symbol
EXPORT_SYMBOL(snd_hwdep_new)inhwdep.cEXPORT_SYMBOL(snd_seq_device_new)inseq/seq_device.cDo I need to free the (soundfont loading) hwdep device on the callback ".dev_free" of the sound card ?
Nope. You may set hwdep->private_free and/or seqdev->private_free callback to cleanup/free your allocated data. See snd_seq_device_free() and snd_hwdep_free() implementation.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar