Skip to contentSkip to conversation

snd_hwdep_new and snd_seq_device_new

DISCUSSION Raymond 2 participants 2 messages Jul 13, 2005 – Jul 14, 2005

lore
Share & tools
lore

Raymond

author
#0 lore raw

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

#1 lore raw
Quoted 9 lines · Raymond

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 ?

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