Beispiel #1
0
int __exit snd_seq_info_done(void)
{
	snd_info_unregister(queues_entry);
	snd_info_unregister(clients_entry);
	snd_info_unregister(timer_entry);
	return 0;
}
Beispiel #2
0
void snd_gus_irq_profile_done(snd_gus_card_t *gus)
{
	if (gus->irq_entry) {
		snd_info_unregister(gus->irq_entry);
		gus->irq_entry = NULL;
	}
}
static void
unregister_proc(void)
{
	if (info_entry)
		snd_info_unregister(info_entry);
	info_entry = NULL;
}
Beispiel #4
0
void snd_emux_proc_free(struct snd_emux *emu)
{
	if (emu->proc) {
		snd_info_unregister(emu->proc);
		emu->proc = NULL;
	}
}
Beispiel #5
0
/**
 * snd_pcm_lib_preallocate_free - release the preallocated buffer of the specified substream.
 * @substream: the pcm substream instance
 *
 * Releases the pre-allocated buffer of the given substream.
 *
 * Returns zero if successful, or a negative error code on failure.
 */
int snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream)
{
    snd_pcm_lib_preallocate_dma_free(substream);
    snd_info_unregister(substream->proc_prealloc_entry);
    substream->proc_prealloc_entry = NULL;
    return 0;
}
Beispiel #6
0
int __exit snd_info_done(void)
{
	snd_card_info_done();
	snd_minor_info_oss_done();
	snd_minor_info_done();
	snd_info_version_done();
	if (snd_proc_root) {
#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
		snd_info_unregister(snd_seq_root);
#endif
#ifdef CONFIG_SND_OSSEMUL
		snd_info_unregister(snd_oss_root);
#endif
		snd_remove_proc_entry(&proc_root, snd_proc_root);
	}
	return 0;
}
Beispiel #7
0
int snd_info_minor_unregister(void)
{
	if (snd_sndstat_proc_entry) {
		snd_info_unregister(snd_sndstat_proc_entry);
		snd_sndstat_proc_entry = NULL;
	}
	return 0;
}
Beispiel #8
0
int snd_info_card_unregister(snd_card_t * card)
{
	void *data;

	snd_assert(card != NULL, return -ENXIO);
	if (card->proc_root_link) {
		data = card->proc_root_link->data;
		card->proc_root_link->data = NULL;
		kfree(data);
		snd_remove_proc_entry(snd_proc_root, card->proc_root_link);
		card->proc_root_link = NULL;
	}
	if (card->proc_root) {
		snd_info_unregister(card->proc_root);
		card->proc_root = NULL;
	}
	return 0;
}
Beispiel #9
0
int __exit snd_info_done(void)
{
	snd_card_info_done();
#ifdef CONFIG_SND_OSSEMUL
	snd_minor_info_oss_done();
#endif
	snd_minor_info_done();
#ifdef CONFIG_SND_DEBUG_MEMORY
	snd_memory_info_done();
#endif
	snd_info_version_done();
	if (snd_proc_root) {
#ifdef CONFIG_SND_SEQUENCER
		if (snd_seq_root)
			snd_info_unregister(snd_seq_root);
#endif
		snd_remove_proc_entry(snd_proc_root, snd_proc_dev);
		snd_remove_proc_entry(&proc_root, snd_proc_root);
	}
	return 0;
}
Beispiel #10
0
static int __exit snd_info_version_done(void)
{
	if (snd_info_version_entry)
		snd_info_unregister(snd_info_version_entry);
	return 0;
}
Beispiel #11
0
int __exit snd_memory_info_done(void)
{
	if (snd_memory_info_entry)
		snd_info_unregister(snd_memory_info_entry);
	return 0;
}