1
0
Fork 0
forked from len0rd/rockbox

Rename HAVE_PITCHSCREEN to HAVE_PITCHCONTROL

Also move the definition to config.h

Change-Id: I36bb5020c5e06b2344292bc05e8c13ccc7a6a1ff
Reviewed-on: http://gerrit.rockbox.org/234
Reviewed-by: Nils Wallménius <nils@rockbox.org>
This commit is contained in:
Nils Wallménius 2012-05-08 16:34:26 +02:00
parent d26a35d10b
commit d29a11b7a8
98 changed files with 50 additions and 245 deletions

View file

@ -14,7 +14,7 @@ dsp/dsp_sample_output.c
dsp/eq.c
dsp/lin_resample.c
dsp/pga.c
# ifdef HAVE_PITCHSCREEN
# ifdef HAVE_PITCHCONTROL
dsp/tdspeed.c
# endif
# ifdef HAVE_SW_TONE_CONTROLS

View file

@ -158,7 +158,7 @@ void dsp_replaygain_set_settings(const struct replaygain_settings *settings)
/** Pitch Settings **/
#ifdef HAVE_PITCHSCREEN
#ifdef HAVE_PITCHCONTROL
static int32_t pitch_ratio = PITCH_SPEED_100;
static void dsp_pitch_update(struct dsp_config *dsp)
@ -183,7 +183,7 @@ void sound_set_pitch(int32_t percent)
struct sample_io_data *data = (void *)dsp;
dsp_configure(dsp, DSP_SWITCH_FREQUENCY, data->format.codec_frequency);
}
#endif /* HAVE_PITCHSCREEN */
#endif /* HAVE_PITCHCONTROL */
/* This is a null-processing stage that monitors as an enabled stage but never
* becomes active in processing samples. It only hooks messages. */
@ -208,7 +208,7 @@ static intptr_t misc_handler_configure(struct dsp_proc_entry *this,
break;
case DSP_RESET:
#ifdef HAVE_PITCHSCREEN
#ifdef HAVE_PITCHCONTROL
dsp_pitch_update(dsp);
#endif
value = (intptr_t)NULL; /* Default gains */
@ -216,7 +216,7 @@ static intptr_t misc_handler_configure(struct dsp_proc_entry *this,
dsp_replaygain_set_gains((void *)value);
break;
#ifdef HAVE_PITCHSCREEN
#ifdef HAVE_PITCHCONTROL
case DSP_SET_FREQUENCY:
dsp_pitch_update(dsp);
break;

View file

@ -54,10 +54,10 @@ struct dsp_replay_gains
void dsp_replaygain_set_settings(const struct replaygain_settings *settings);
#ifdef HAVE_PITCHSCREEN
#ifdef HAVE_PITCHCONTROL
void sound_set_pitch(int32_t ratio);
int32_t sound_get_pitch(void);
#endif /* HAVE_PITCHSCREEN */
#endif /* HAVE_PITCHCONTROL */
/* Callback for firmware layers to interface */
int dsp_callback(int msg, intptr_t param);

View file

@ -37,7 +37,7 @@
DSP_PROC_DB_START
DSP_PROC_DB_ITEM(MISC_HANDLER) /* misc stuff (null stage) */
DSP_PROC_DB_ITEM(PGA) /* pre-gain amp */
#ifdef HAVE_PITCHSCREEN
#ifdef HAVE_PITCHCONTROL
DSP_PROC_DB_ITEM(TIMESTRETCH) /* time-stretching */
#endif
DSP_PROC_DB_ITEM(RESAMPLE) /* resampler providing NATIVE_FREQUENCY */

View file

@ -28,7 +28,7 @@
#include "dsp_misc.h"
#include "eq.h"
#include "pga.h"
#ifdef HAVE_PITCHSCREEN
#ifdef HAVE_PITCHCONTROL
#include "tdspeed.h"
#endif
#ifdef HAVE_SW_TONE_CONTROLS

View file

@ -1,7 +1,7 @@
#ifndef RBCODECCONFIG_H_INCLUDED
#define RBCODECCONFIG_H_INCLUDED
#define HAVE_PITCHSCREEN
#define HAVE_PITCHCONTROL
//#define HAVE_SW_VOLUME_CONTROL
#define HAVE_SW_TONE_CONTROLS
#define HAVE_ALBUMART