diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/wm8758.c | 10 | ||||
-rw-r--r-- | firmware/export/wm8758.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/firmware/drivers/wm8758.c b/firmware/drivers/wm8758.c index 9d2a300e70..33960af9b4 100644 --- a/firmware/drivers/wm8758.c +++ b/firmware/drivers/wm8758.c | |||
@@ -286,14 +286,14 @@ void wmcodec_set_equalizer_band(int band, int freq, int bw, int gain) | |||
286 | eq |= 12 - gain; | 286 | eq |= 12 - gain; |
287 | 287 | ||
288 | if (band == 0) { | 288 | if (band == 0) { |
289 | wm8758_write(EQ0, eq | 0x100); /* Always apply EQ to the DAC path */ | 289 | wm8758_write(EQ1, eq | 0x100); /* Always apply EQ to the DAC path */ |
290 | } else if (band == 1) { | 290 | } else if (band == 1) { |
291 | wm8758_write(EQ1, eq); | ||
292 | } else if (band == 2) { | ||
293 | wm8758_write(EQ2, eq); | 291 | wm8758_write(EQ2, eq); |
294 | } else if (band == 3) { | 292 | } else if (band == 2) { |
295 | wm8758_write(EQ3, eq); | 293 | wm8758_write(EQ3, eq); |
296 | } else if (band == 4) { | 294 | } else if (band == 3) { |
297 | wm8758_write(EQ4, eq); | 295 | wm8758_write(EQ4, eq); |
296 | } else if (band == 4) { | ||
297 | wm8758_write(EQ5, eq); | ||
298 | } | 298 | } |
299 | } | 299 | } |
diff --git a/firmware/export/wm8758.h b/firmware/export/wm8758.h index 5630a93b1b..e0b66b614f 100644 --- a/firmware/export/wm8758.h +++ b/firmware/export/wm8758.h | |||
@@ -62,11 +62,11 @@ extern void wmcodec_set_equalizer_band(int band, int freq, int bw, int gain); | |||
62 | #define PLLK2 0x26 | 62 | #define PLLK2 0x26 |
63 | #define PLLK3 0x27 | 63 | #define PLLK3 0x27 |
64 | 64 | ||
65 | #define EQ0 0x12 | 65 | #define EQ1 0x12 |
66 | #define EQ1 0x13 | 66 | #define EQ2 0x13 |
67 | #define EQ2 0x14 | 67 | #define EQ3 0x14 |
68 | #define EQ3 0x15 | 68 | #define EQ4 0x15 |
69 | #define EQ4 0x16 | 69 | #define EQ5 0x16 |
70 | 70 | ||
71 | /* Register settings for the supported samplerates: */ | 71 | /* Register settings for the supported samplerates: */ |
72 | #define WM8758_8000HZ 0x4d | 72 | #define WM8758_8000HZ 0x4d |