1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*
* Purpose: Configuration options for OSS (osscore.conf)
*
* Description:
* This file contains various configuration options for the osscore module.
* They can be set in the osscore.conf configuration file.
*
* Each option variable must also be defined as extern in the proper header
* file (of the subsystem that uses them) or in the source file that uses them.
*/
/*
*
* This file is part of Open Sound System.
*
* Copyright (C) 4Front Technologies 1996-2008.
*
* This this source file is released under GPL v2 license (no other versions).
* See the COPYING file included in the main directory of this source
* distribution for the license terms and conditions.
*
*/
#include <oss_config.h>
#ifndef NO_GLOBAL_OPTIONS
/***********************************************************************************
***********************************************************************************
***********************************************************************************
***********************************************************************************
* Core settings
*
* Remember to update kernel/drv/osscore/.params when adding, removing or
* changing the following options. The .params file is used when generating the
* driver.conf files. Also don't forget to update osscore.man.
*
* For Linux it's also necessary to add a module_param() line to Linux/osscore.c
* For FreeBSD it's also necessary to add a TUNABLE_INT() line to FreeBSD/osscore.c
***********************************************************************************
***********************************************************************************
***********************************************************************************
***********************************************************************************/
int max_intrate = 100; /* 10 msec minimum interrupt interval */
int src_quality = 3; /* Sample rate conversion quality (0-5) */
int ac97_amplifier = -1; /* External amplifier enable for AC97 */
int ac97_recselect = 0; /* Enables independent L/R ch rec source selection */
int cooked_enable = 1;
int dma_buffsize = 0; /* Size of the DMA buffer in kbytes (0=use default) */
int flat_device_model = 0; /* 0=new audio device model, 1=old model */
int detect_trace = 0; /* Se to 1 if detection tracing is required */
int vmix_disabled = 0; /* 1=disable virtual mixer, 0=enable */
int vmix_loopdevs = 0; /* Number of vmix loopback devices for all instances (0 to 2) */
int vmix_no_autoattach = 0; /* Do not attach vmix devices during boot */
int excl_policy = 0; /* Allow O_EXCL to occupy soundcard */
int mixer_muted = 0; /* Set all mixer controls to a low level when OSS modules are loaded */
oss_option_map_t oss_global_options[] = {
{"max_intrate", &max_intrate},
{"detect_trace", &detect_trace},
{"src_quality", &src_quality},
{"ac97_amplifier", &ac97_amplifier},
{"ac97_recselect", &ac97_recselect},
{"cooked_enable", &cooked_enable},
{"dma_buffsize", &dma_buffsize},
{"flat_device_model", &flat_device_model},
{"vmix_disabled", &vmix_disabled},
{"vmix_loopdevs", &vmix_loopdevs},
{"vmix_no_autoattach", &vmix_no_autoattach},
{"excl_policy", &excl_policy},
{"mixer_muted", &mixer_muted},
{NULL, NULL}
};
#endif
|