diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-13 21:32:59 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-20 13:57:09 -0500 |
commit | 0661784469c7e903528c1820f94a67c6de69a77f (patch) | |
tree | 616111a7ba5bbae9985d157ed3bebcc8317a4f25 /apps/menus/eq_menu.c | |
parent | b7603adc644a0bdf76f3045e69728ca863dc9791 (diff) | |
download | rockbox-0661784469c7e903528c1820f94a67c6de69a77f.tar.gz rockbox-0661784469c7e903528c1820f94a67c6de69a77f.zip |
make int_setting step & unit int16_t
since int_setting is the largest struct in the union of settings
saving 32 bytes adds up over every setting
frees ~200 bytes
Change-Id: Id4722262e40db3021c740e138fe7352be10e2c70
Diffstat (limited to 'apps/menus/eq_menu.c')
-rw-r--r-- | apps/menus/eq_menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c index a0b00644ec..fd9f484047 100644 --- a/apps/menus/eq_menu.c +++ b/apps/menus/eq_menu.c | |||
@@ -154,9 +154,9 @@ static int32_t get_dec_talkid(int value, int unit) | |||
154 | static const struct int_setting gain_int_setting = { | 154 | static const struct int_setting gain_int_setting = { |
155 | .option_callback = NULL, | 155 | .option_callback = NULL, |
156 | .unit = UNIT_DB, | 156 | .unit = UNIT_DB, |
157 | .step = EQ_GAIN_STEP, | ||
157 | .min = EQ_GAIN_MIN, | 158 | .min = EQ_GAIN_MIN, |
158 | .max = EQ_GAIN_MAX, | 159 | .max = EQ_GAIN_MAX, |
159 | .step = EQ_GAIN_STEP, | ||
160 | .formatter = db_format, | 160 | .formatter = db_format, |
161 | .get_talk_id = get_dec_talkid, | 161 | .get_talk_id = get_dec_talkid, |
162 | }; | 162 | }; |
@@ -164,9 +164,9 @@ static const struct int_setting gain_int_setting = { | |||
164 | static const struct int_setting q_int_setting = { | 164 | static const struct int_setting q_int_setting = { |
165 | .option_callback = NULL, | 165 | .option_callback = NULL, |
166 | .unit = UNIT_INT, | 166 | .unit = UNIT_INT, |
167 | .step = EQ_Q_STEP, | ||
167 | .min = EQ_Q_MIN, | 168 | .min = EQ_Q_MIN, |
168 | .max = EQ_Q_MAX, | 169 | .max = EQ_Q_MAX, |
169 | .step = EQ_Q_STEP, | ||
170 | .formatter = eq_q_format, | 170 | .formatter = eq_q_format, |
171 | .get_talk_id = get_dec_talkid, | 171 | .get_talk_id = get_dec_talkid, |
172 | }; | 172 | }; |
@@ -174,9 +174,9 @@ static const struct int_setting q_int_setting = { | |||
174 | static const struct int_setting cutoff_int_setting = { | 174 | static const struct int_setting cutoff_int_setting = { |
175 | .option_callback = NULL, | 175 | .option_callback = NULL, |
176 | .unit = UNIT_HERTZ, | 176 | .unit = UNIT_HERTZ, |
177 | .step = EQ_CUTOFF_STEP, | ||
177 | .min = EQ_CUTOFF_MIN, | 178 | .min = EQ_CUTOFF_MIN, |
178 | .max = EQ_CUTOFF_MAX, | 179 | .max = EQ_CUTOFF_MAX, |
179 | .step = EQ_CUTOFF_STEP, | ||
180 | .formatter = NULL, | 180 | .formatter = NULL, |
181 | .get_talk_id = NULL, | 181 | .get_talk_id = NULL, |
182 | }; | 182 | }; |