diff options
| author | Thom Johansen <thomj@rockbox.org> | 2007-02-26 00:41:26 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2007-02-26 00:41:26 +0000 |
| commit | a7fabf0741c91fb0a2c28b2d8357bcc4630300af (patch) | |
| tree | e1528a67f63933aa23ebb7b5d809e1ce7e60b589 /firmware/export | |
| parent | 1915c1099431294ca9c43bc11fb1bfa41bbd83cc (diff) | |
| download | rockbox-a7fabf0741c91fb0a2c28b2d8357bcc4630300af.zip rockbox-a7fabf0741c91fb0a2c28b2d8357bcc4630300af.tar.gz rockbox-a7fabf0741c91fb0a2c28b2d8357bcc4630300af.tar.bz2 rockbox-a7fabf0741c91fb0a2c28b2d8357bcc4630300af.tar.xz | |
Add software based bass/treble controls for targets which have no such functionality in hardware (currently only X5). They can also be used on any other SWCODEC target by adding #define HAVE_SW_TONE_CONTROLS in the relevant config-*.h file. Also remove some now unneeded zero checks when using get_replaygain_int(). Comments on sound quality are welcome as some parameters can still be fine-tuned.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12489 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/config-iaudiox5.h | 3 | ||||
| -rw-r--r-- | firmware/export/sound.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/config-iaudiox5.h b/firmware/export/config-iaudiox5.h index 6aeaab0..ba9e953 100644 --- a/firmware/export/config-iaudiox5.h +++ b/firmware/export/config-iaudiox5.h @@ -84,6 +84,9 @@ #define HAVE_TLV320 +/* TLV320 has no tone controls, so we use the software ones */ +#define HAVE_SW_TONE_CONTROLS + #ifndef SIMULATOR /* Define this if your LCD can set contrast */ diff --git a/firmware/export/sound.h b/firmware/export/sound.h index 2079a84..1923840 100644 --- a/firmware/export/sound.h +++ b/firmware/export/sound.h @@ -19,6 +19,7 @@ #ifndef SOUND_H #define SOUND_H +#include <inttypes.h> #ifdef HAVE_UDA1380 #include "uda1380.h" #elif defined(HAVE_WM8975) || defined(HAVE_WM8751) @@ -76,6 +77,7 @@ int sound_max(int setting); int sound_default(int setting); sound_set_type* sound_get_fn(int setting); +void sound_set_dsp_callback(int (*func)(int, intptr_t)); void sound_set_volume(int value); void sound_set_balance(int value); void sound_set_bass(int value); |