~ubuntu-branches/ubuntu/wily/oss4/wily

« back to all changes in this revision

Viewing changes to kernel/framework/osscore/oss_core_options.c

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis, Samuel Thibault, Romain Beauxis, Sebastien NOEL
  • Date: 2011-06-14 10:06:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614100656-cx4oc7u426zn812z
Tags: 4.2-build2004-1
[ Samuel Thibault ]
* debian/control: Add liboss4-salsa2, liboss4-salsa-dev and
  liboss4-salsa-asound2 packages, equivalent to (and will replace) those from
  the oss-libsalsa package (Closes: #589127).
* debian/patches/liboss4-salsa.patch: New patch to rename libsalsa into
  liboss4-salsa to avoid conflicts in the archive for no good reason.
* debian/rules: Make in libOSSlib and libsalsa.
* debian/liboss4-salsa-dev.install, debian/liboss4-salsa2.install,
  debian/liboss4-salsa-asound2.links, debian/liboss4-salsa-dev.links:
  Install liboss4-salsa libraries like was done in the oss-libsalsa package.
* include-alsa: Add a copy of ALSA 1.0.5 headers: Cf ALSA_1.0.* symbols in
  libsalsa, this is the roughly supported version.
* debian/copyright: Update for new include-alsa files.
* alsa.pc: New file for compatibility with libasound-dev.
* debian/control:
  - Add Vcs-Browser and Vcs-Svn fields.
  - Use linux-any instead of the list of Linux archs (Closes: #604679).
  - Make dkms dependency linux-any only.
* debian/patches/hurd_iot.patch: New patch to fix soundcard.h usage in
  libsalsa on hurd-i386.
* debian/patches/libsalsa_fixes.patch: New patch to fix some printf usages
  and ioctl declaration in libsalsa.
* debian/patches/no_EBADE.patch: New patch to cope with hurd-i386 not having
  EBADE.
* debian/patches/CFLAGS.patch: New patch to make oss4 take debian/rules
  CFLAGS into account.
* debian/patches/snd_asoundlib_version.patch: New patch to add
  snd_asoundlib_version().
* debian/patches/generic_srccconf.patch: New patch to fix source
  configuration on unknown archs.

[ Romain Beauxis ]
* Fixed README.Debian to only mention dkms' modules.
* Switch to dpkg-source 3.0 (quilt) format
* Added DM-Upload-Allowed: yes

[ Sebastien NOEL ]
* New upstream release (Closes: #595298, #619272).
* Fix typo in initscript (Closes: #627149).
* debian/control: adjust linux-headers dependencies (Closes: #628879).

Show diffs side-by-side

added added

removed removed

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