summaryrefslogtreecommitdiff
path: root/lib/rbcodec
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-04-30 17:51:05 -0400
committerMichael Sevakis <jethead71@rockbox.org>2012-04-30 17:51:05 -0400
commitf5d9a45e3ffb1326dced431025cc10814ea4b7d8 (patch)
treec9c4a39455729731153eb8013dc0b187ef742057 /lib/rbcodec
parent8f9e3b10a52979ad57736c1703f3578d496bf8df (diff)
Should've had dsp_replaygain_set_gains as static for now...
...because currently gains are only set through dsp_configure. Change-Id: I2866473a82fdd5f41de4705b45928daa7e43f8eb
Diffstat (limited to 'lib/rbcodec')
-rw-r--r--lib/rbcodec/dsp/dsp_misc.c12
-rw-r--r--lib/rbcodec/dsp/dsp_misc.h1
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/rbcodec/dsp/dsp_misc.c b/lib/rbcodec/dsp/dsp_misc.c
index c871e5bd14..c87a1d528e 100644
--- a/lib/rbcodec/dsp/dsp_misc.c
+++ b/lib/rbcodec/dsp/dsp_misc.c
@@ -138,12 +138,7 @@ static void dsp_replaygain_update(
pga_enable_gain(PGA_REPLAYGAIN, gain != PGA_UNITY);
}
-void dsp_replaygain_set_settings(const struct replaygain_settings *settings)
-{
- dsp_replaygain_update(settings, &current_gains);
-}
-
-void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains)
+static void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains)
{
if (gains == NULL)
{
@@ -155,6 +150,11 @@ void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains)
dsp_replaygain_update(&current_settings, gains);
}
+void dsp_replaygain_set_settings(const struct replaygain_settings *settings)
+{
+ dsp_replaygain_update(settings, &current_gains);
+}
+
/** Pitch Settings **/
diff --git a/lib/rbcodec/dsp/dsp_misc.h b/lib/rbcodec/dsp/dsp_misc.h
index e0035457f5..1c84fd5a11 100644
--- a/lib/rbcodec/dsp/dsp_misc.h
+++ b/lib/rbcodec/dsp/dsp_misc.h
@@ -53,7 +53,6 @@ struct dsp_replay_gains
};
void dsp_replaygain_set_settings(const struct replaygain_settings *settings);
-void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains);
#ifdef HAVE_PITCHSCREEN
void sound_set_pitch(int32_t ratio);