diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-06-03 05:51:14 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-06-03 05:51:14 -0400 |
commit | 8743dcd6639c28204ac03fb3e9db7932e3d85418 (patch) | |
tree | 53b80846cf6731ddb196d522ed2bbf0f76da8344 /sound/soc/codecs/rl6231.h | |
parent | efd4b76ef789541e7046e873b3546209352cdb59 (diff) | |
parent | e1d4d3c854f25cff6c6c139588570e124d5e8fa4 (diff) |
Merge tag 'asoc-v3.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Final updates for v3.16
A few more updates from the last week of development, nothing too
exciting. Highlights include:
- GPIO descriptor support for jacks
- More updates and fixes to the Freescale SSI, Intel and rsnd drivers.
- New drivers for Analog Devices ADAU1361, ADAU1381, ADAU1761 and
ADAU1781, and Realtek RT5677.
Diffstat (limited to 'sound/soc/codecs/rl6231.h')
-rw-r--r-- | sound/soc/codecs/rl6231.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sound/soc/codecs/rl6231.h b/sound/soc/codecs/rl6231.h new file mode 100644 index 000000000000..0f7b057ed736 --- /dev/null +++ b/sound/soc/codecs/rl6231.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * rl6231.h - RL6231 class device shared support | ||
3 | * | ||
4 | * Copyright 2014 Realtek Semiconductor Corp. | ||
5 | * | ||
6 | * Author: Oder Chiou <oder_chiou@realtek.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 __RL6231_H__ | ||
14 | #define __RL6231_H__ | ||
15 | |||
16 | #define RL6231_PLL_INP_MAX 40000000 | ||
17 | #define RL6231_PLL_INP_MIN 256000 | ||
18 | #define RL6231_PLL_N_MAX 0x1ff | ||
19 | #define RL6231_PLL_K_MAX 0x1f | ||
20 | #define RL6231_PLL_M_MAX 0xf | ||
21 | |||
22 | struct rl6231_pll_code { | ||
23 | bool m_bp; /* Indicates bypass m code or not. */ | ||
24 | int m_code; | ||
25 | int n_code; | ||
26 | int k_code; | ||
27 | }; | ||
28 | |||
29 | int rl6231_calc_dmic_clk(int rate); | ||
30 | int rl6231_pll_calc(const unsigned int freq_in, | ||
31 | const unsigned int freq_out, struct rl6231_pll_code *pll_code); | ||
32 | int rl6231_get_clk_info(int sclk, int rate); | ||
33 | |||
34 | #endif /* __RL6231_H__ */ | ||