aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-02-16 09:48:48 -0500
committerTakashi Iwai <tiwai@suse.de>2013-02-16 09:48:48 -0500
commitc881f80ba8c50a1f7697dac360210337808d7774 (patch)
tree1789ac393f37ba74e7a1b8d87851a08558ec78d6 /include/sound
parentf3c90242a3b9e32f510229c4c1313df6ca7f1667 (diff)
parent54759313ececcbd07e43fad75e0683e39a1f2a25 (diff)
Merge tag 'asoc-3.9-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Final updates for v3.9 A few more updates from the past week - a new driver from Dialog and some small fixes and tweaks.
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/da7213.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/sound/da7213.h b/include/sound/da7213.h
new file mode 100644
index 000000000000..673f5c39cbf2
--- /dev/null
+++ b/include/sound/da7213.h
@@ -0,0 +1,52 @@
1/*
2 * da7213.h - DA7213 ASoC Codec Driver Platform Data
3 *
4 * Copyright (c) 2013 Dialog Semiconductor
5 *
6 * Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#ifndef _DA7213_PDATA_H
14#define _DA7213_PDATA_H
15
16enum da7213_micbias_voltage {
17 DA7213_MICBIAS_1_6V = 0,
18 DA7213_MICBIAS_2_2V = 1,
19 DA7213_MICBIAS_2_5V = 2,
20 DA7213_MICBIAS_3_0V = 3,
21};
22
23enum da7213_dmic_data_sel {
24 DA7213_DMIC_DATA_LRISE_RFALL = 0,
25 DA7213_DMIC_DATA_LFALL_RRISE = 1,
26};
27
28enum da7213_dmic_samplephase {
29 DA7213_DMIC_SAMPLE_ON_CLKEDGE = 0,
30 DA7213_DMIC_SAMPLE_BETWEEN_CLKEDGE = 1,
31};
32
33enum da7213_dmic_clk_rate {
34 DA7213_DMIC_CLK_3_0MHZ = 0,
35 DA7213_DMIC_CLK_1_5MHZ = 1,
36};
37
38struct da7213_platform_data {
39 /* Mic Bias voltage */
40 enum da7213_micbias_voltage micbias1_lvl;
41 enum da7213_micbias_voltage micbias2_lvl;
42
43 /* DMIC config */
44 enum da7213_dmic_data_sel dmic_data_sel;
45 enum da7213_dmic_samplephase dmic_samplephase;
46 enum da7213_dmic_clk_rate dmic_clk_rate;
47
48 /* MCLK squaring config */
49 bool mclk_squaring;
50};
51
52#endif /* _DA7213_PDATA_H */