Skip to content

Commit dad31ec

Browse files
Peter Hsiangbroonie
authored andcommitted
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>
1 parent dea8b6e commit dad31ec

3 files changed

Lines changed: 434 additions & 0 deletions

File tree

‎include/sound/max98095.h‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,36 @@
1313
#ifndef __SOUND_MAX98095_PDATA_H__
1414
#define __SOUND_MAX98095_PDATA_H__
1515

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+
1635
/* codec platform data */
1736
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+
1846
/* Analog/digital microphone configuration:
1947
* 0 = analog microphone input (normal setting)
2048
* 1 = digital microphone input

0 commit comments

Comments
 (0)