summaryrefslogtreecommitdiff
path: root/firmware/export/wm8758.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/wm8758.h')
-rw-r--r--firmware/export/wm8758.h8
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);
32extern int audiohw_set_lineout_vol(int vol_l, int vol_r); 32extern int audiohw_set_lineout_vol(int vol_l, int vol_r);
33extern int audiohw_set_mixer_vol(int channel1, int channel2); 33extern int audiohw_set_mixer_vol(int channel1, int channel2);
34extern void audiohw_set_bass(int value); 34extern void audiohw_set_bass(int value);
35extern void audiohw_set_bass_cutoff(int value);
35extern void audiohw_set_treble(int value); 36extern void audiohw_set_treble(int value);
37extern void audiohw_set_treble_cutoff(int value);
36extern void audiohw_set_nsorder(int order); 38extern void audiohw_set_nsorder(int order);
37extern void audiohw_set_sample_rate(int sampling_control); 39extern void audiohw_set_sample_rate(int sampling_control);
38 40
39extern 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