2
* Purpose: Various global services for OSS.
4
* This source file contains some initialization and cleanup code
5
* that is called by the OS modules for all operating systems.
9
* This file is part of Open Sound System.
11
* Copyright (C) 4Front Technologies 1996-2008.
13
* This this source file is released under GPL v2 license (no other versions).
14
* See the COPYING file included in the main directory of this source
15
* distribution for the license terms and conditions.
19
#include <oss_config.h>
20
#include "midi_core.h"
23
extern oss_mutex_t oss_timing_mutex;
26
oss_history_t oss_history[OSS_HISTORY_SIZE] = { {0} };
27
int oss_history_p = 0;
29
int oss_num_cdevs = 0;
30
oss_cdev_t **oss_cdevs = NULL;
31
int oss_max_cdevs = 0;
33
static int drivers_loaded = 0;
36
oss_unload_drivers (void)
43
#ifdef CONFIG_OSS_VMIX
49
/* oss_midi_uninit(); *//* TODO: This causes crashes */
51
MUTEX_CLEANUP (oss_timing_mutex);
55
* Release all global memory
57
oss_memblk_unalloc(&oss_global_memblk);
62
create_new_card (char *shortname, char *longname)
67
oss_common_init (oss_device_t * osdev)
72
MUTEX_INIT (osdev, oss_timing_mutex, MH_TOP);
75
oss_audio_init (osdev);
76
install_sndstat (osdev);
78
oss_midi_init (osdev);
79
install_vmidi (osdev);
80
install_dev_mixer (osdev);
81
#ifdef CONFIG_OSS_VMIX
82
vmix_core_init (osdev);