diff options
Diffstat (limited to 'firmware/export/wm8758.h')
-rw-r--r-- | firmware/export/wm8758.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/export/wm8758.h b/firmware/export/wm8758.h index 6d3220a5fc..df60851550 100644 --- a/firmware/export/wm8758.h +++ b/firmware/export/wm8758.h | |||
@@ -32,12 +32,12 @@ extern int audiohw_set_master_vol(int vol_l, int vol_r); | |||
32 | extern int audiohw_set_lineout_vol(int vol_l, int vol_r); | 32 | extern int audiohw_set_lineout_vol(int vol_l, int vol_r); |
33 | extern int audiohw_set_mixer_vol(int channel1, int channel2); | 33 | extern int audiohw_set_mixer_vol(int channel1, int channel2); |
34 | extern void audiohw_set_bass(int value); | 34 | extern void audiohw_set_bass(int value); |
35 | extern void audiohw_set_bass_cutoff(int value); | ||
35 | extern void audiohw_set_treble(int value); | 36 | extern void audiohw_set_treble(int value); |
37 | extern void audiohw_set_treble_cutoff(int value); | ||
36 | extern void audiohw_set_nsorder(int order); | 38 | extern void audiohw_set_nsorder(int order); |
37 | extern void audiohw_set_sample_rate(int sampling_control); | 39 | extern void audiohw_set_sample_rate(int sampling_control); |
38 | 40 | ||
39 | extern void audiohw_set_equalizer_band(int band, int freq, int bw, int gain); | ||
40 | |||
41 | #define RESET 0x00 | 41 | #define RESET 0x00 |
42 | #define PWRMGMT1 0x01 | 42 | #define PWRMGMT1 0x01 |
43 | #define PWRMGMT2 0x02 | 43 | #define PWRMGMT2 0x02 |
@@ -70,6 +70,10 @@ extern void audiohw_set_equalizer_band(int band, int freq, int bw, int gain); | |||
70 | #define EQ3 0x14 | 70 | #define EQ3 0x14 |
71 | #define EQ4 0x15 | 71 | #define EQ4 0x15 |
72 | #define EQ5 0x16 | 72 | #define EQ5 0x16 |
73 | #define EQ_GAIN_MASK 0x001f | ||
74 | #define EQ_CUTOFF_MASK 0x0060 | ||
75 | #define EQ_GAIN_VALUE(x) (((-x) + 12) & 0x1f) | ||
76 | #define EQ_CUTOFF_VALUE(x) ((((x) - 1) & 0x03) << 5) | ||
73 | 77 | ||
74 | /* Register settings for the supported samplerates: */ | 78 | /* Register settings for the supported samplerates: */ |
75 | #define WM8758_8000HZ 0x4d | 79 | #define WM8758_8000HZ 0x4d |