diff options
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index 52a8d4e6e1..1c61c6630a 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c | |||
@@ -83,6 +83,14 @@ bool set_sound(const unsigned char * string, | |||
83 | else if (*unit == 'H') | 83 | else if (*unit == 'H') |
84 | talkunit = UNIT_HERTZ; | 84 | talkunit = UNIT_HERTZ; |
85 | if(!numdec) | 85 | if(!numdec) |
86 | #if CONFIG_CODEC == SWCODEC | ||
87 | /* We need to hijack this one and send it off to apps/dsp.c instead of | ||
88 | firmware/sound.c */ | ||
89 | if (setting == SOUND_STEREO_WIDTH) | ||
90 | return set_int(string, unit, talkunit, variable, &stereo_width_set, | ||
91 | steps, min, max, NULL ); | ||
92 | else | ||
93 | #endif | ||
86 | return set_int(string, unit, talkunit, variable, sound_callback, | 94 | return set_int(string, unit, talkunit, variable, sound_callback, |
87 | steps, min, max, NULL ); | 95 | steps, min, max, NULL ); |
88 | else | 96 | else |
@@ -375,8 +383,13 @@ static bool chanconf(void) | |||
375 | { STR(LANG_CHANNEL_RIGHT) }, | 383 | { STR(LANG_CHANNEL_RIGHT) }, |
376 | { STR(LANG_CHANNEL_KARAOKE) } | 384 | { STR(LANG_CHANNEL_KARAOKE) } |
377 | }; | 385 | }; |
386 | #if CONFIG_CODEC == SWCODEC | ||
387 | return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, | ||
388 | names, 6, channels_set); | ||
389 | #else | ||
378 | return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, | 390 | return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, |
379 | names, 6, sound_set_channels); | 391 | names, 6, sound_set_channels); |
392 | #endif | ||
380 | } | 393 | } |
381 | 394 | ||
382 | static bool stereo_width(void) | 395 | static bool stereo_width(void) |