diff options
author | Ashish Chavan <ashish.chavan@kpitcummins.com> | 2012-09-21 10:46:17 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-28 09:21:54 -0400 |
commit | 9911f7f7562a25381eff93fdc660a4a3b4c0f6e0 (patch) | |
tree | be43efe4c9efbeb9d2ac4a1ec90fb13a5be13301 /include/sound/da9055.h | |
parent | da75c924878c48b3ee6ce21579bbf679f93ce40c (diff) |
ASoC: codecs: Add DA9055 codec driver
This patch adds support for Dialog semiconductor's DA9055 audio codec.
This has been tested on DA9055 EVB with Samsung SMDK6410 board.
Signed-off-by: Ashish Chavan <ashish.chavan@kpitcummins.com>
Signed-off-by: David Dajun Chen <david.chen@diasemi.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/da9055.h')
-rw-r--r-- | include/sound/da9055.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/sound/da9055.h b/include/sound/da9055.h new file mode 100644 index 000000000000..cf1241b64d89 --- /dev/null +++ b/include/sound/da9055.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * DA9055 ALSA Soc codec driver | ||
3 | * | ||
4 | * Copyright (c) 2012 Dialog Semiconductor | ||
5 | * | ||
6 | * Tested on (Samsung SMDK6410 board + DA9055 EVB) using I2S and I2C | ||
7 | * Written by David Chen <david.chen@diasemi.com> and | ||
8 | * Ashish Chavan <ashish.chavan@kpitcummins.com> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify it | ||
11 | * under the terms of the GNU General Public License as published by the | ||
12 | * Free Software Foundation; either version 2 of the License, or (at your | ||
13 | * option) any later version. | ||
14 | */ | ||
15 | |||
16 | #ifndef __SOUND_DA9055_H__ | ||
17 | #define __SOUND_DA9055_H__ | ||
18 | |||
19 | enum da9055_micbias_voltage { | ||
20 | DA9055_MICBIAS_1_6V = 0, | ||
21 | DA9055_MICBIAS_1_8V = 1, | ||
22 | DA9055_MICBIAS_2_1V = 2, | ||
23 | DA9055_MICBIAS_2_2V = 3, | ||
24 | }; | ||
25 | |||
26 | struct da9055_platform_data { | ||
27 | /* Selects which of the two MicBias pins acts as the bias source */ | ||
28 | bool micbias_source; | ||
29 | /* Selects the micbias voltage */ | ||
30 | enum da9055_micbias_voltage micbias; | ||
31 | }; | ||
32 | |||
33 | #endif | ||