blob: cd07f46947fdc6ce5ed42d69bce2abadb09c4116 (
plain)
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
|
/*
* Copyright (C) ST-Ericsson SA 2010
* Author: Deepak KARDA/ deepak.karda@stericsson.com for ST-Ericsson
* License terms: GNU General Public License (GPL) version 2.
*/
#ifndef __AUDIOIO_HWCTRL_COMMON_H__
#define __AUDIOIO_HWCTRL_COMMON_H__
#include <linux/types.h>
#include <mach/ste_audio_io_ioctl.h>
/*
* Defines
*/
#define MAX_GAIN 100
#define MIN_GAIN 0
#define MAX_NO_CHANNELS 4
#define MAX_NO_GAINS 3
#define MAX_NO_LOOPS 1
#define MAX_NO_LOOP_GAINS 1
struct gain_descriptor_t {
int min_gain;
int max_gain;
uint gain_step;
};
/* Number of channels for each transducer */
extern const uint transducer_no_of_channels[MAX_NO_TRANSDUCERS];
/*
* Maximum number of gains in each transducer path
* all channels of a specific transducer have same max no of gains
*/
extern const uint transducer_no_of_gains[MAX_NO_TRANSDUCERS];
/* Maximum number of supported loops for each transducer */
extern const uint transducer_max_no_of_supported_loops[MAX_NO_TRANSDUCERS];
/* Maximum number of gains supported by loops for each transducer */
extern const uint transducer_no_of_loop_gains[MAX_NO_TRANSDUCERS];
/* Supported Loop Indexes for each transducer */
extern const uint transducer_no_of_supported_loops[MAX_NO_TRANSDUCERS];
extern const int hs_analog_gain_table[16] ;
extern struct gain_descriptor_t gain_descriptor[MAX_NO_TRANSDUCERS]\
[MAX_NO_CHANNELS][MAX_NO_GAINS];
#endif
/* End of audio_io_hwctrl_common.h */
|