blob: d7079413def0cfa69bd1dad8c0504a57fefdba36 [file] [log] [blame]
Ola Liljaf242e502012-06-07 14:00:46 +02001/*
2 * Copyright (C) ST-Ericsson SA 2012
3 *
4 * Author: Ola Lilja <ola.o.lilja@stericsson.com>
5 * for ST-Ericsson.
6 *
7 * License terms:
8 *
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License version 2 as published
11 * by the Free Software Foundation.
12 */
13
14#ifndef AB8500_CORE_CODEC_H
15#define AB8500_CORE_CODEC_H
16
17/* Mic-types */
18enum amic_type {
19 AMIC_TYPE_SINGLE_ENDED,
20 AMIC_TYPE_DIFFERENTIAL
21};
22
23/* Mic-biases */
24enum amic_micbias {
25 AMIC_MICBIAS_VAMIC1,
Lee Jonesdb5c8112012-07-27 08:50:05 +010026 AMIC_MICBIAS_VAMIC2,
27 AMIC_MICBIAS_UNKNOWN
Ola Liljaf242e502012-06-07 14:00:46 +020028};
29
30/* Bias-voltage */
31enum ear_cm_voltage {
32 EAR_CMV_0_95V,
33 EAR_CMV_1_10V,
34 EAR_CMV_1_27V,
Lee Jonesdb5c8112012-07-27 08:50:05 +010035 EAR_CMV_1_58V,
36 EAR_CMV_UNKNOWN
Ola Liljaf242e502012-06-07 14:00:46 +020037};
38
39/* Analog microphone settings */
40struct amic_settings {
41 enum amic_type mic1_type;
42 enum amic_type mic2_type;
43 enum amic_micbias mic1a_micbias;
44 enum amic_micbias mic1b_micbias;
45 enum amic_micbias mic2_micbias;
46};
47
48/* Platform data structure for the audio-parts of the AB8500 */
49struct ab8500_codec_platform_data {
50 struct amic_settings amics;
51 enum ear_cm_voltage ear_cmv;
52};
53
54#endif