blob: 2e0ca67a8df7ad8f83c83c822190ae09d9395acf [file] [log] [blame]
Mark Brown9e6e96a2010-01-29 17:47:12 +00001/*
2 * wm8994.h -- WM8994 Soc Audio driver
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#ifndef _WM8994_H
10#define _WM8994_H
11
12#include <sound/soc.h>
13
14extern struct snd_soc_codec_device soc_codec_dev_wm8994;
15extern struct snd_soc_dai wm8994_dai[];
16
17/* Sources for AIF1/2 SYSCLK - use with set_dai_sysclk() */
18#define WM8994_SYSCLK_MCLK1 1
19#define WM8994_SYSCLK_MCLK2 2
20#define WM8994_SYSCLK_FLL1 3
21#define WM8994_SYSCLK_FLL2 4
22
Mark Brown66b47fd2010-07-08 11:25:43 +090023/* OPCLK is also configured with set_dai_sysclk, specify division*10 as rate. */
24#define WM8994_SYSCLK_OPCLK 5
25
Mark Brown9e6e96a2010-01-29 17:47:12 +000026#define WM8994_FLL1 1
27#define WM8994_FLL2 2
28
Mark Brown136ff2a2010-04-20 12:56:18 +090029#define WM8994_FLL_SRC_MCLK1 1
30#define WM8994_FLL_SRC_MCLK2 2
31#define WM8994_FLL_SRC_LRCLK 3
32#define WM8994_FLL_SRC_BCLK 4
33
Mark Brown88766982010-03-29 20:57:12 +010034int wm8994_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack,
35 int micbias, int det, int shrt);
36
Mark Brown9e6e96a2010-01-29 17:47:12 +000037#endif