diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-11-26 06:56:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-12-04 11:50:53 -0500 |
commit | a91eb199e4dc8a2ab3fb7a53f1a23ce82b29fc04 (patch) | |
tree | f0ef6ed46e0ed0e6408d2c21e5e7b294c76fbf88 /include/sound | |
parent | d033c36ae5cec22c893c710cd026fb732c4086b9 (diff) |
ASoC: Initial WM8904 CODEC driver
The WM8904 is a high performance ultra-low power stereo CODEC
optimised for portable audio applications, with features including
a class W amplifier, FLL with free running mode, Mobile ReTune and
ground referenced headphone and line outputs.
Support for some features, most particularly the digital microphone
interface, is not yet present.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/wm8904.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/include/sound/wm8904.h b/include/sound/wm8904.h new file mode 100644 index 000000000000..d66575a601be --- /dev/null +++ b/include/sound/wm8904.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | * Platform data for WM8904 | ||
3 | * | ||
4 | * Copyright 2009 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 it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #ifndef __MFD_WM8994_PDATA_H__ | ||
16 | #define __MFD_WM8994_PDATA_H__ | ||
17 | |||
18 | #define WM8904_DRC_REGS 4 | ||
19 | #define WM8904_EQ_REGS 25 | ||
20 | |||
21 | /** | ||
22 | * DRC configurations are specified with a label and a set of register | ||
23 | * values to write (the enable bits will be ignored). At runtime an | ||
24 | * enumerated control will be presented for each DRC block allowing | ||
25 | * the user to choose the configration to use. | ||
26 | * | ||
27 | * Configurations may be generated by hand or by using the DRC control | ||
28 | * panel provided by the WISCE - see http://www.wolfsonmicro.com/wisce/ | ||
29 | * for details. | ||
30 | */ | ||
31 | struct wm8904_drc_cfg { | ||
32 | const char *name; | ||
33 | u16 regs[WM8904_DRC_REGS]; | ||
34 | }; | ||
35 | |||
36 | /** | ||
37 | * ReTune Mobile configurations are specified with a label, sample | ||
38 | * rate and set of values to write (the enable bits will be ignored). | ||
39 | * | ||
40 | * Configurations are expected to be generated using the ReTune Mobile | ||
41 | * control panel in WISCE - see http://www.wolfsonmicro.com/wisce/ | ||
42 | */ | ||
43 | struct wm8904_retune_mobile_cfg { | ||
44 | const char *name; | ||
45 | unsigned int rate; | ||
46 | u16 regs[WM8904_EQ_REGS]; | ||
47 | }; | ||
48 | |||
49 | struct wm8904_pdata { | ||
50 | int num_drc_cfgs; | ||
51 | struct wm8904_drc_cfg *drc_cfgs; | ||
52 | |||
53 | int num_retune_mobile_cfgs; | ||
54 | struct wm8904_retune_mobile_cfg *retune_mobile_cfgs; | ||
55 | }; | ||
56 | |||
57 | #endif | ||