Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arizona.h - Wolfson Arizona class device shared support |
| 3 | * |
| 4 | * Copyright 2012 Wolfson Microelectronics plc |
| 5 | * |
| 6 | * Author: Mark Brown <broonie@opensource.wolfsonmicro.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 _ASOC_ARIZONA_H |
| 14 | #define _ASOC_ARIZONA_H |
| 15 | |
| 16 | #include <linux/completion.h> |
| 17 | |
| 18 | #include <sound/soc.h> |
| 19 | |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 20 | #include "wm_adsp.h" |
| 21 | |
Mark Brown | cbd840d | 2012-08-08 17:52:44 +0100 | [diff] [blame] | 22 | #define ARIZONA_CLK_SYSCLK 1 |
| 23 | #define ARIZONA_CLK_ASYNCCLK 2 |
| 24 | #define ARIZONA_CLK_OPCLK 3 |
| 25 | #define ARIZONA_CLK_ASYNC_OPCLK 4 |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 26 | |
| 27 | #define ARIZONA_CLK_SRC_MCLK1 0x0 |
| 28 | #define ARIZONA_CLK_SRC_MCLK2 0x1 |
| 29 | #define ARIZONA_CLK_SRC_FLL1 0x4 |
| 30 | #define ARIZONA_CLK_SRC_FLL2 0x5 |
| 31 | #define ARIZONA_CLK_SRC_AIF1BCLK 0x8 |
| 32 | #define ARIZONA_CLK_SRC_AIF2BCLK 0x9 |
| 33 | #define ARIZONA_CLK_SRC_AIF3BCLK 0xa |
| 34 | |
Charles Keepax | f3f1163 | 2013-02-20 17:28:41 +0000 | [diff] [blame] | 35 | #define ARIZONA_FLL_SRC_NONE -1 |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 36 | #define ARIZONA_FLL_SRC_MCLK1 0 |
| 37 | #define ARIZONA_FLL_SRC_MCLK2 1 |
Mark Brown | a8c02db | 2012-12-18 14:05:01 +0000 | [diff] [blame] | 38 | #define ARIZONA_FLL_SRC_SLIMCLK 3 |
| 39 | #define ARIZONA_FLL_SRC_FLL1 4 |
| 40 | #define ARIZONA_FLL_SRC_FLL2 5 |
| 41 | #define ARIZONA_FLL_SRC_AIF1BCLK 8 |
| 42 | #define ARIZONA_FLL_SRC_AIF2BCLK 9 |
| 43 | #define ARIZONA_FLL_SRC_AIF3BCLK 10 |
| 44 | #define ARIZONA_FLL_SRC_AIF1LRCLK 12 |
| 45 | #define ARIZONA_FLL_SRC_AIF2LRCLK 13 |
| 46 | #define ARIZONA_FLL_SRC_AIF3LRCLK 14 |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 47 | |
| 48 | #define ARIZONA_MIXER_VOL_MASK 0x00FE |
| 49 | #define ARIZONA_MIXER_VOL_SHIFT 1 |
| 50 | #define ARIZONA_MIXER_VOL_WIDTH 7 |
| 51 | |
Mark Brown | 3f341f7 | 2013-03-08 15:22:29 +0800 | [diff] [blame] | 52 | #define ARIZONA_CLK_6MHZ 0 |
| 53 | #define ARIZONA_CLK_12MHZ 1 |
| 54 | #define ARIZONA_CLK_24MHZ 2 |
| 55 | #define ARIZONA_CLK_49MHZ 3 |
| 56 | #define ARIZONA_CLK_73MHZ 4 |
| 57 | #define ARIZONA_CLK_98MHZ 5 |
| 58 | #define ARIZONA_CLK_147MHZ 6 |
| 59 | |
Mark Brown | bd1dd88 | 2013-05-17 13:29:03 +0100 | [diff] [blame] | 60 | #define ARIZONA_MAX_DAI 6 |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 61 | #define ARIZONA_MAX_ADSP 4 |
Mark Brown | 5b2eec3 | 2012-07-04 17:32:05 +0100 | [diff] [blame] | 62 | |
Richard Fitzgerald | 346d968 | 2015-06-02 11:53:33 +0100 | [diff] [blame] | 63 | #define ARIZONA_DVFS_SR1_RQ 0x001 |
| 64 | #define ARIZONA_DVFS_ADSP1_RQ 0x100 |
| 65 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 66 | struct arizona; |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 67 | struct wm_adsp; |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 68 | |
Mark Brown | 5b2eec3 | 2012-07-04 17:32:05 +0100 | [diff] [blame] | 69 | struct arizona_dai_priv { |
| 70 | int clk; |
| 71 | }; |
| 72 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 73 | struct arizona_priv { |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 74 | struct wm_adsp adsp[ARIZONA_MAX_ADSP]; |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 75 | struct arizona *arizona; |
| 76 | int sysclk; |
| 77 | int asyncclk; |
Mark Brown | 5b2eec3 | 2012-07-04 17:32:05 +0100 | [diff] [blame] | 78 | struct arizona_dai_priv dai[ARIZONA_MAX_DAI]; |
Mark Brown | ddbce97 | 2013-02-15 17:27:22 +0000 | [diff] [blame] | 79 | |
| 80 | int num_inputs; |
| 81 | unsigned int in_pending; |
Mark Brown | 56447e1 | 2013-01-10 14:45:58 +0000 | [diff] [blame] | 82 | |
Charles Keepax | e1ae5fb | 2015-01-20 16:31:51 +0000 | [diff] [blame] | 83 | unsigned int out_up_pending; |
| 84 | unsigned int out_up_delay; |
Charles Keepax | 054e1b4 | 2015-01-20 16:31:50 +0000 | [diff] [blame] | 85 | unsigned int out_down_pending; |
| 86 | unsigned int out_down_delay; |
| 87 | |
Mark Brown | 56447e1 | 2013-01-10 14:45:58 +0000 | [diff] [blame] | 88 | unsigned int spk_ena:2; |
| 89 | unsigned int spk_ena_pending:1; |
Richard Fitzgerald | 346d968 | 2015-06-02 11:53:33 +0100 | [diff] [blame] | 90 | |
| 91 | unsigned int dvfs_reqs; |
| 92 | struct mutex dvfs_lock; |
| 93 | bool dvfs_cached; |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 94 | }; |
| 95 | |
Richard Fitzgerald | e64001e | 2013-11-20 13:17:07 +0000 | [diff] [blame] | 96 | #define ARIZONA_NUM_MIXER_INPUTS 103 |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 97 | |
| 98 | extern const unsigned int arizona_mixer_tlv[]; |
| 99 | extern const char *arizona_mixer_texts[ARIZONA_NUM_MIXER_INPUTS]; |
| 100 | extern int arizona_mixer_values[ARIZONA_NUM_MIXER_INPUTS]; |
| 101 | |
| 102 | #define ARIZONA_MIXER_CONTROLS(name, base) \ |
| 103 | SOC_SINGLE_RANGE_TLV(name " Input 1 Volume", base + 1, \ |
| 104 | ARIZONA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \ |
| 105 | arizona_mixer_tlv), \ |
| 106 | SOC_SINGLE_RANGE_TLV(name " Input 2 Volume", base + 3, \ |
| 107 | ARIZONA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \ |
| 108 | arizona_mixer_tlv), \ |
| 109 | SOC_SINGLE_RANGE_TLV(name " Input 3 Volume", base + 5, \ |
| 110 | ARIZONA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \ |
| 111 | arizona_mixer_tlv), \ |
| 112 | SOC_SINGLE_RANGE_TLV(name " Input 4 Volume", base + 7, \ |
| 113 | ARIZONA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \ |
| 114 | arizona_mixer_tlv) |
| 115 | |
| 116 | #define ARIZONA_MUX_ENUM_DECL(name, reg) \ |
Charles Keepax | 21a37e3 | 2015-05-01 12:37:27 +0100 | [diff] [blame] | 117 | SOC_VALUE_ENUM_SINGLE_AUTODISABLE_DECL( \ |
| 118 | name, reg, 0, 0xff, arizona_mixer_texts, arizona_mixer_values) |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 119 | |
| 120 | #define ARIZONA_MUX_CTL_DECL(name) \ |
| 121 | const struct snd_kcontrol_new name##_mux = \ |
Lars-Peter Clausen | 355e3a0 | 2014-04-14 21:30:58 +0200 | [diff] [blame] | 122 | SOC_DAPM_ENUM("Route", name##_enum) |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 123 | |
Charles Keepax | 17bd09e | 2012-11-13 16:40:32 +0000 | [diff] [blame] | 124 | #define ARIZONA_MUX_ENUMS(name, base_reg) \ |
| 125 | static ARIZONA_MUX_ENUM_DECL(name##_enum, base_reg); \ |
| 126 | static ARIZONA_MUX_CTL_DECL(name) |
| 127 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 128 | #define ARIZONA_MIXER_ENUMS(name, base_reg) \ |
Charles Keepax | 17bd09e | 2012-11-13 16:40:32 +0000 | [diff] [blame] | 129 | ARIZONA_MUX_ENUMS(name##_in1, base_reg); \ |
| 130 | ARIZONA_MUX_ENUMS(name##_in2, base_reg + 2); \ |
| 131 | ARIZONA_MUX_ENUMS(name##_in3, base_reg + 4); \ |
| 132 | ARIZONA_MUX_ENUMS(name##_in4, base_reg + 6) |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 133 | |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 134 | #define ARIZONA_DSP_AUX_ENUMS(name, base_reg) \ |
Charles Keepax | 17bd09e | 2012-11-13 16:40:32 +0000 | [diff] [blame] | 135 | ARIZONA_MUX_ENUMS(name##_aux1, base_reg); \ |
| 136 | ARIZONA_MUX_ENUMS(name##_aux2, base_reg + 8); \ |
| 137 | ARIZONA_MUX_ENUMS(name##_aux3, base_reg + 16); \ |
| 138 | ARIZONA_MUX_ENUMS(name##_aux4, base_reg + 24); \ |
| 139 | ARIZONA_MUX_ENUMS(name##_aux5, base_reg + 32); \ |
| 140 | ARIZONA_MUX_ENUMS(name##_aux6, base_reg + 40) |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 141 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 142 | #define ARIZONA_MUX(name, ctrl) \ |
Lars-Peter Clausen | 355e3a0 | 2014-04-14 21:30:58 +0200 | [diff] [blame] | 143 | SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl) |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 144 | |
Charles Keepax | 17bd09e | 2012-11-13 16:40:32 +0000 | [diff] [blame] | 145 | #define ARIZONA_MUX_WIDGETS(name, name_str) \ |
| 146 | ARIZONA_MUX(name_str " Input", &name##_mux) |
| 147 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 148 | #define ARIZONA_MIXER_WIDGETS(name, name_str) \ |
| 149 | ARIZONA_MUX(name_str " Input 1", &name##_in1_mux), \ |
| 150 | ARIZONA_MUX(name_str " Input 2", &name##_in2_mux), \ |
| 151 | ARIZONA_MUX(name_str " Input 3", &name##_in3_mux), \ |
| 152 | ARIZONA_MUX(name_str " Input 4", &name##_in4_mux), \ |
| 153 | SND_SOC_DAPM_MIXER(name_str " Mixer", SND_SOC_NOPM, 0, 0, NULL, 0) |
| 154 | |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 155 | #define ARIZONA_DSP_WIDGETS(name, name_str) \ |
| 156 | ARIZONA_MIXER_WIDGETS(name##L, name_str "L"), \ |
| 157 | ARIZONA_MIXER_WIDGETS(name##R, name_str "R"), \ |
| 158 | ARIZONA_MUX(name_str " Aux 1", &name##_aux1_mux), \ |
| 159 | ARIZONA_MUX(name_str " Aux 2", &name##_aux2_mux), \ |
| 160 | ARIZONA_MUX(name_str " Aux 3", &name##_aux3_mux), \ |
| 161 | ARIZONA_MUX(name_str " Aux 4", &name##_aux4_mux), \ |
| 162 | ARIZONA_MUX(name_str " Aux 5", &name##_aux5_mux), \ |
| 163 | ARIZONA_MUX(name_str " Aux 6", &name##_aux6_mux) |
| 164 | |
Charles Keepax | e7edb27 | 2013-08-12 11:33:32 +0100 | [diff] [blame] | 165 | #define ARIZONA_MUX_ROUTES(widget, name) \ |
| 166 | { widget, NULL, name " Input" }, \ |
Charles Keepax | 17bd09e | 2012-11-13 16:40:32 +0000 | [diff] [blame] | 167 | ARIZONA_MIXER_INPUT_ROUTES(name " Input") |
| 168 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 169 | #define ARIZONA_MIXER_ROUTES(widget, name) \ |
| 170 | { widget, NULL, name " Mixer" }, \ |
| 171 | { name " Mixer", NULL, name " Input 1" }, \ |
| 172 | { name " Mixer", NULL, name " Input 2" }, \ |
| 173 | { name " Mixer", NULL, name " Input 3" }, \ |
| 174 | { name " Mixer", NULL, name " Input 4" }, \ |
| 175 | ARIZONA_MIXER_INPUT_ROUTES(name " Input 1"), \ |
| 176 | ARIZONA_MIXER_INPUT_ROUTES(name " Input 2"), \ |
| 177 | ARIZONA_MIXER_INPUT_ROUTES(name " Input 3"), \ |
| 178 | ARIZONA_MIXER_INPUT_ROUTES(name " Input 4") |
| 179 | |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 180 | #define ARIZONA_DSP_ROUTES(name) \ |
Charles Keepax | 12db5ed | 2014-01-08 17:42:19 +0000 | [diff] [blame] | 181 | { name, NULL, name " Preloader"}, \ |
| 182 | { name " Preloader", NULL, name " Aux 1" }, \ |
| 183 | { name " Preloader", NULL, name " Aux 2" }, \ |
| 184 | { name " Preloader", NULL, name " Aux 3" }, \ |
| 185 | { name " Preloader", NULL, name " Aux 4" }, \ |
| 186 | { name " Preloader", NULL, name " Aux 5" }, \ |
| 187 | { name " Preloader", NULL, name " Aux 6" }, \ |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 188 | ARIZONA_MIXER_INPUT_ROUTES(name " Aux 1"), \ |
| 189 | ARIZONA_MIXER_INPUT_ROUTES(name " Aux 2"), \ |
| 190 | ARIZONA_MIXER_INPUT_ROUTES(name " Aux 3"), \ |
| 191 | ARIZONA_MIXER_INPUT_ROUTES(name " Aux 4"), \ |
| 192 | ARIZONA_MIXER_INPUT_ROUTES(name " Aux 5"), \ |
| 193 | ARIZONA_MIXER_INPUT_ROUTES(name " Aux 6"), \ |
Charles Keepax | 12db5ed | 2014-01-08 17:42:19 +0000 | [diff] [blame] | 194 | ARIZONA_MIXER_ROUTES(name " Preloader", name "L"), \ |
| 195 | ARIZONA_MIXER_ROUTES(name " Preloader", name "R") |
Mark Brown | 0b09df6 | 2012-10-11 11:31:35 +0900 | [diff] [blame] | 196 | |
Mark Brown | dc91428 | 2013-02-18 19:09:23 +0000 | [diff] [blame] | 197 | #define ARIZONA_RATE_ENUM_SIZE 4 |
| 198 | extern const char *arizona_rate_text[ARIZONA_RATE_ENUM_SIZE]; |
| 199 | extern const int arizona_rate_val[ARIZONA_RATE_ENUM_SIZE]; |
| 200 | |
| 201 | extern const struct soc_enum arizona_isrc_fsl[]; |
Charles Keepax | fbedc8c | 2013-12-19 09:30:12 +0000 | [diff] [blame] | 202 | extern const struct soc_enum arizona_isrc_fsh[]; |
Charles Keepax | 56d37d8 | 2013-12-19 09:30:13 +0000 | [diff] [blame] | 203 | extern const struct soc_enum arizona_asrc_rate1; |
Mark Brown | dc91428 | 2013-02-18 19:09:23 +0000 | [diff] [blame] | 204 | |
Mark Brown | e853a00 | 2012-12-09 12:25:52 +0900 | [diff] [blame] | 205 | extern const struct soc_enum arizona_in_vi_ramp; |
| 206 | extern const struct soc_enum arizona_in_vd_ramp; |
| 207 | |
| 208 | extern const struct soc_enum arizona_out_vi_ramp; |
| 209 | extern const struct soc_enum arizona_out_vd_ramp; |
| 210 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 211 | extern const struct soc_enum arizona_lhpf1_mode; |
| 212 | extern const struct soc_enum arizona_lhpf2_mode; |
| 213 | extern const struct soc_enum arizona_lhpf3_mode; |
| 214 | extern const struct soc_enum arizona_lhpf4_mode; |
| 215 | |
Mark Brown | 845571c | 2012-12-18 13:47:57 +0000 | [diff] [blame] | 216 | extern const struct soc_enum arizona_ng_hold; |
Charles Keepax | 254dc32 | 2013-11-19 16:04:03 +0000 | [diff] [blame] | 217 | extern const struct soc_enum arizona_in_hpf_cut_enum; |
Charles Keepax | c7f3843 | 2013-08-06 17:03:55 +0100 | [diff] [blame] | 218 | extern const struct soc_enum arizona_in_dmic_osr[]; |
Mark Brown | 845571c | 2012-12-18 13:47:57 +0000 | [diff] [blame] | 219 | |
Richard Fitzgerald | 336d044 | 2015-06-18 13:43:19 +0100 | [diff] [blame] | 220 | extern const struct snd_kcontrol_new arizona_adsp2_rate_controls[]; |
| 221 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 222 | extern int arizona_in_ev(struct snd_soc_dapm_widget *w, |
| 223 | struct snd_kcontrol *kcontrol, |
| 224 | int event); |
| 225 | extern int arizona_out_ev(struct snd_soc_dapm_widget *w, |
| 226 | struct snd_kcontrol *kcontrol, |
| 227 | int event); |
Mark Brown | f607e31 | 2013-02-22 18:36:53 +0000 | [diff] [blame] | 228 | extern int arizona_hp_ev(struct snd_soc_dapm_widget *w, |
| 229 | struct snd_kcontrol *kcontrol, |
| 230 | int event); |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 231 | |
| 232 | extern int arizona_set_sysclk(struct snd_soc_codec *codec, int clk_id, |
| 233 | int source, unsigned int freq, int dir); |
| 234 | |
| 235 | extern const struct snd_soc_dai_ops arizona_dai_ops; |
Mark Brown | bd1dd88 | 2013-05-17 13:29:03 +0100 | [diff] [blame] | 236 | extern const struct snd_soc_dai_ops arizona_simple_dai_ops; |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 237 | |
| 238 | #define ARIZONA_FLL_NAME_LEN 20 |
| 239 | |
| 240 | struct arizona_fll { |
| 241 | struct arizona *arizona; |
| 242 | int id; |
| 243 | unsigned int base; |
Mark Brown | 2b4d39f | 2012-07-10 17:03:46 +0100 | [diff] [blame] | 244 | unsigned int vco_mult; |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 245 | struct completion ok; |
| 246 | |
Charles Keepax | de1e6ee | 2013-02-20 17:28:39 +0000 | [diff] [blame] | 247 | unsigned int fout; |
Charles Keepax | 9e359c6 | 2013-02-20 17:28:35 +0000 | [diff] [blame] | 248 | int sync_src; |
| 249 | unsigned int sync_freq; |
Charles Keepax | 19b34bd | 2013-02-20 17:28:34 +0000 | [diff] [blame] | 250 | int ref_src; |
| 251 | unsigned int ref_freq; |
| 252 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 253 | char lock_name[ARIZONA_FLL_NAME_LEN]; |
| 254 | char clock_ok_name[ARIZONA_FLL_NAME_LEN]; |
| 255 | }; |
| 256 | |
Richard Fitzgerald | 346d968 | 2015-06-02 11:53:33 +0100 | [diff] [blame] | 257 | extern int arizona_dvfs_up(struct snd_soc_codec *codec, unsigned int flags); |
| 258 | extern int arizona_dvfs_down(struct snd_soc_codec *codec, unsigned int flags); |
| 259 | extern int arizona_dvfs_sysclk_ev(struct snd_soc_dapm_widget *w, |
| 260 | struct snd_kcontrol *kcontrol, int event); |
| 261 | extern void arizona_init_dvfs(struct arizona_priv *priv); |
| 262 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 263 | extern int arizona_init_fll(struct arizona *arizona, int id, int base, |
| 264 | int lock_irq, int ok_irq, struct arizona_fll *fll); |
Charles Keepax | ee929a9 | 2013-02-20 17:28:40 +0000 | [diff] [blame] | 265 | extern int arizona_set_fll_refclk(struct arizona_fll *fll, int source, |
| 266 | unsigned int Fref, unsigned int Fout); |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 267 | extern int arizona_set_fll(struct arizona_fll *fll, int source, |
| 268 | unsigned int Fref, unsigned int Fout); |
| 269 | |
Mark Brown | 56447e1 | 2013-01-10 14:45:58 +0000 | [diff] [blame] | 270 | extern int arizona_init_spk(struct snd_soc_codec *codec); |
Charles Keepax | b63144e | 2013-07-04 08:56:28 +0100 | [diff] [blame] | 271 | extern int arizona_init_gpio(struct snd_soc_codec *codec); |
Charles Keepax | b60f363 | 2014-06-10 18:41:02 +0100 | [diff] [blame] | 272 | extern int arizona_init_mono(struct snd_soc_codec *codec); |
Mark Brown | 56447e1 | 2013-01-10 14:45:58 +0000 | [diff] [blame] | 273 | |
Mark Brown | 5b2eec3 | 2012-07-04 17:32:05 +0100 | [diff] [blame] | 274 | extern int arizona_init_dai(struct arizona_priv *priv, int dai); |
| 275 | |
Mark Brown | bc9ab6d | 2013-01-04 19:31:00 +0000 | [diff] [blame] | 276 | int arizona_set_output_mode(struct snd_soc_codec *codec, int output, |
| 277 | bool diff); |
| 278 | |
Mark Brown | 07ed873 | 2012-06-18 21:08:44 +0100 | [diff] [blame] | 279 | #endif |