diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2012-04-30 17:51:05 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2012-04-30 17:51:05 -0400 |
commit | f5d9a45e3ffb1326dced431025cc10814ea4b7d8 (patch) | |
tree | c9c4a39455729731153eb8013dc0b187ef742057 /lib/rbcodec/dsp/dsp_misc.c | |
parent | 8f9e3b10a52979ad57736c1703f3578d496bf8df (diff) | |
download | rockbox-f5d9a45e3ffb1326dced431025cc10814ea4b7d8.tar.gz rockbox-f5d9a45e3ffb1326dced431025cc10814ea4b7d8.zip |
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/dsp/dsp_misc.c')
-rw-r--r-- | lib/rbcodec/dsp/dsp_misc.c | 12 |
1 files changed, 6 insertions, 6 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( | |||
138 | pga_enable_gain(PGA_REPLAYGAIN, gain != PGA_UNITY); | 138 | pga_enable_gain(PGA_REPLAYGAIN, gain != PGA_UNITY); |
139 | } | 139 | } |
140 | 140 | ||
141 | void dsp_replaygain_set_settings(const struct replaygain_settings *settings) | 141 | static void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains) |
142 | { | ||
143 | dsp_replaygain_update(settings, ¤t_gains); | ||
144 | } | ||
145 | |||
146 | void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains) | ||
147 | { | 142 | { |
148 | if (gains == NULL) | 143 | if (gains == NULL) |
149 | { | 144 | { |
@@ -155,6 +150,11 @@ void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains) | |||
155 | dsp_replaygain_update(¤t_settings, gains); | 150 | dsp_replaygain_update(¤t_settings, gains); |
156 | } | 151 | } |
157 | 152 | ||
153 | void dsp_replaygain_set_settings(const struct replaygain_settings *settings) | ||
154 | { | ||
155 | dsp_replaygain_update(settings, ¤t_gains); | ||
156 | } | ||
157 | |||
158 | 158 | ||
159 | /** Pitch Settings **/ | 159 | /** Pitch Settings **/ |
160 | 160 | ||