diff options
author | Peter Hsiang <cdefgab1288@gmail.com> | 2011-04-19 21:20:40 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-20 08:50:41 -0400 |
commit | dad31ec133adb20c8fd10bfd9379da3f08b8721e (patch) | |
tree | 826b285320ef8390196e79bfc7bba16e052be15f /include/sound | |
parent | dea8b6eef03afdec475b981fca8622c41f8de7e2 (diff) |
ASoC: Add EQ and filter to max98095 CODEC driver
This patch adds the equalizer and biquad filter controls.
Signed-off-by: Peter Hsiang <peter.hsiang@maxim-ic.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/max98095.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/sound/max98095.h b/include/sound/max98095.h index 3381765b503e..7513a42dd4aa 100644 --- a/include/sound/max98095.h +++ b/include/sound/max98095.h | |||
@@ -13,8 +13,36 @@ | |||
13 | #ifndef __SOUND_MAX98095_PDATA_H__ | 13 | #ifndef __SOUND_MAX98095_PDATA_H__ |
14 | #define __SOUND_MAX98095_PDATA_H__ | 14 | #define __SOUND_MAX98095_PDATA_H__ |
15 | 15 | ||
16 | /* Equalizer filter response configuration */ | ||
17 | struct max98095_eq_cfg { | ||
18 | const char *name; | ||
19 | unsigned int rate; | ||
20 | u16 band1[5]; | ||
21 | u16 band2[5]; | ||
22 | u16 band3[5]; | ||
23 | u16 band4[5]; | ||
24 | u16 band5[5]; | ||
25 | }; | ||
26 | |||
27 | /* Biquad filter response configuration */ | ||
28 | struct max98095_biquad_cfg { | ||
29 | const char *name; | ||
30 | unsigned int rate; | ||
31 | u16 band1[5]; | ||
32 | u16 band2[5]; | ||
33 | }; | ||
34 | |||
16 | /* codec platform data */ | 35 | /* codec platform data */ |
17 | struct max98095_pdata { | 36 | struct max98095_pdata { |
37 | |||
38 | /* Equalizers for DAI1 and DAI2 */ | ||
39 | struct max98095_eq_cfg *eq_cfg; | ||
40 | unsigned int eq_cfgcnt; | ||
41 | |||
42 | /* Biquad filter for DAI1 and DAI2 */ | ||
43 | struct max98095_biquad_cfg *bq_cfg; | ||
44 | unsigned int bq_cfgcnt; | ||
45 | |||
18 | /* Analog/digital microphone configuration: | 46 | /* Analog/digital microphone configuration: |
19 | * 0 = analog microphone input (normal setting) | 47 | * 0 = analog microphone input (normal setting) |
20 | * 1 = digital microphone input | 48 | * 1 = digital microphone input |