From a7fabf0741c91fb0a2c28b2d8357bcc4630300af Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Mon, 26 Feb 2007 00:41:26 +0000 Subject: 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 --- firmware/export/config-iaudiox5.h | 3 +++ firmware/export/sound.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'firmware/export') 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 #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); -- cgit v1.1