~ubuntu-branches/ubuntu/trusty/em8300/trusty

« back to all changes in this revision

Viewing changes to modules/em8300_params.h

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Boullis
  • Date: 2008-08-07 01:29:10 UTC
  • mfrom: (3.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080807012910-4ax8d4unic5j15gb
Tags: 0.16.4-4
* Fix compatibility with linux 2.6.26 by using the relevant mercurial
  changesets from upstream mercurial repository.
  Thanks to Daniel Baumann for reporting the problem.
  (Closes: #493715)
* Update Swedish debconf templates translation. Thanks Martin Bagge.
  (Closes: #488178)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: em8300_params.h,v 1.1 2007/03/02 23:00:35 nboullis Exp $
 
2
 *
 
3
 * em8300_params.h -- parameters for the em8300 driver
 
4
 * Copyright (C) 2007 Nicolas Boullis <nboullis@debian.org>
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or
 
7
 *  modify it under the terms of the GNU General Public License
 
8
 *  as published by the Free Software Foundation; either version 2
 
9
 *  of the License, or (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef _EM8300_PARAMS_H
 
22
#define _EM8300_PARAMS_H
 
23
 
 
24
#include <linux/version.h>
 
25
 
 
26
/* Major number used by the driver */
 
27
extern int major;
 
28
 
 
29
/* Card-model-dependant parameters */
 
30
extern int use_bt865[];
 
31
extern int dicom_other_pal[];
 
32
extern int dicom_fix[];
 
33
extern int dicom_control[];
 
34
extern int bt865_ucode_timeout[];
 
35
extern int activate_loopback[];
 
36
 
 
37
/* Audio driver used by the driver:
 
38
   - OSS     means OSS-compatible /dev/em8300_ma + /dev/dsp (old behavior)
 
39
   - OSSLIKE means OSS-compatible /dev/em8300_ma only
 
40
   - ALSA    means ALSA /dev/snd
 
41
   - NONE    means no sound
 
42
*/
 
43
typedef enum {
 
44
        AUDIO_DRIVER_NONE,
 
45
        AUDIO_DRIVER_OSSLIKE,
 
46
        AUDIO_DRIVER_OSS,
 
47
        AUDIO_DRIVER_ALSA,
 
48
        AUDIO_DRIVER_MAX
 
49
} audio_driver_t;
 
50
 
 
51
extern audio_driver_t audio_driver_nr[];
 
52
 
 
53
/* Number of the /dev/dsp device to allocate (only used with the OSS audio
 
54
   driver.
 
55
*/
 
56
#if defined(CONFIG_SOUND) || defined(CONFIG_SOUND_MODULE)
 
57
extern int dsp_num[];
 
58
#endif
 
59
 
 
60
/* Number and name of the ALSA card to allocate (only used with the ALSA audio
 
61
   driver.
 
62
*/
 
63
#if defined(CONFIG_SND) || defined(CONFIG_SND_MODULE)
 
64
extern int alsa_index[];
 
65
extern char *alsa_id[];
 
66
#endif
 
67
 
 
68
/* Option to disable the video output when there is nothing to display */
 
69
extern int stop_video[];
 
70
 
 
71
/* Initialization function */
 
72
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
 
73
extern void em8300_params_init(void);
 
74
#else
 
75
static inline void em8300_params_init(void)
 
76
{
 
77
}
 
78
#endif
 
79
 
 
80
#endif /* _EM8300_PARAMS_H */