File: dummy.h

package info (click to toggle)
kernel-source-2.2.19 2.2.19.1-4woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92,100 kB
  • ctags: 276,892
  • sloc: ansic: 1,710,384; asm: 58,709; makefile: 10,198; sh: 2,398; perl: 907; tcl: 570; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (41 lines) | stat: -rw-r--r-- 913 bytes parent folder | download | duplicates (6)
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
/*
 * drivers/sbus/audio/dummy.h
 *
 * Copyright (C) 1998 Derrick J. Brashear (shadow@dementia.org)
 */

#ifndef _DUMMY_H_
#define _DUMMY_H_

#include <linux/types.h>
#include <linux/tqueue.h>

#define DUMMY_OUTFILE "/usr/tmp/dummy.au"

/* Our structure for each chip */

struct dummy_chip {
  struct audio_info perchip_info;
  unsigned int playlen;
  struct tq_struct tqueue;
};

#define DUMMY_MIN_ATEN     (0)
#define DUMMY_MAX_ATEN     (31)
#define DUMMY_MAX_DEV_ATEN (63)

#define DUMMY_MON_MIN_ATEN         (0)
#define DUMMY_MON_MAX_ATEN         (63)

#define DUMMY_DEFAULT_PLAYGAIN     (132)
#define DUMMY_DEFAULT_RECGAIN      (126)

#define DUMMY_MIN_GAIN     (0)
#define DUMMY_MAX_GAIN     (15)

#define DUMMY_PRECISION    (8)             /* # of bits/sample */
#define DUMMY_CHANNELS     (1)             /* channels/sample */

#define DUMMY_RATE   (8000)                /* default sample rate */

#endif