| * This file is only included exactly once! |
| * The tables here are derived from the tas3004 datasheet, |
| * modulo typo corrections and some smoothing... |
| #define TAS3004_TREBLE_MIN 0 |
| #define TAS3004_TREBLE_MAX 72 |
| #define TAS3004_BASS_MIN 0 |
| #define TAS3004_BASS_MAX 72 |
| #define TAS3004_TREBLE_ZERO 36 |
| #define TAS3004_BASS_ZERO 36 |
| static u8 tas3004_treble_table[] = { |
| static inline u8 tas3004_treble(int idx) |
| return tas3004_treble_table[idx]; |
| /* I only save the difference here to the treble table |
| * so that the binary is smaller... |
| * I have also ignored completely differences of |
| static s8 tas3004_bass_diff_to_treble[] = { |
| static inline u8 tas3004_bass(int idx) |
| u8 result = tas3004_treble_table[idx]; |
| result += tas3004_bass_diff_to_treble[idx-50]; |