aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/commands.c b/src/commands.c
index 8b13be7..964cab7 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -527,7 +527,6 @@ static void reinit_tuner( commands_t *cmd )
tvtime_osd_set_channel_name( cmd->osd, station_get_current_channel_name( cmd->stationmgr ) );
}
tvtime_osd_set_norm( cmd->osd, videoinput_get_norm_name( videoinput_get_norm( cmd->vidin ) ) );
- tvtime_osd_set_audio_mode( cmd->osd, videoinput_get_audio_mode_name( cmd->vidin, videoinput_get_audio_mode( cmd->vidin ) ) );
tvtime_osd_set_freq_table( cmd->osd, station_get_current_band( cmd->stationmgr ) );
tvtime_osd_set_channel_number( cmd->osd, channel_display );
tvtime_osd_set_network_call( cmd->osd, station_get_current_network_call_letters( cmd->stationmgr ) );
@@ -1377,13 +1376,6 @@ commands_t *commands_new( config_t *cfg, videoinput_t *vidin,
_("Setup"), _("Input configuration"), _("Preferred audio mode") );
menu_set_text( menu, 0, string );
commands_add_menu( cmd, menu );
- if( cmd->vidin ) {
- reset_audio_mode_menu( commands_get_menu( cmd, "audiomode" ),
- videoinput_get_norm( cmd->vidin ) == VIDEOINPUT_NTSC,
- videoinput_get_audio_mode( cmd->vidin ) );
- } else {
- reset_audio_mode_menu( commands_get_menu( cmd, "audiomode" ), 0, 0 );
- }
menu = menu_new( "audioboost" );
snprintf( string, sizeof( string ), "%s - %s - %s",
@@ -2710,45 +2702,9 @@ void commands_handle( commands_t *cmd, int tvtime_cmd, const char *arg )
break;
case TVTIME_SET_AUDIO_MODE:
- if( cmd->vidin ) {
- if( !strcasecmp( arg, "mono" ) ) {
- videoinput_set_audio_mode( cmd->vidin, VIDEOINPUT_MONO );
- } else if( !strcasecmp( arg, "stereo" ) ) {
- videoinput_set_audio_mode( cmd->vidin, VIDEOINPUT_STEREO );
- } else if( !strcasecmp( arg, "sap" ) || !strcasecmp( arg, "lang1" ) ) {
- videoinput_set_audio_mode( cmd->vidin, VIDEOINPUT_LANG1 );
- } else {
- videoinput_set_audio_mode( cmd->vidin, VIDEOINPUT_LANG2 );
- }
- if( cmd->osd ) {
- if( !cmd->menuactive ) {
- osd_list_audio_modes( cmd->osd, videoinput_get_norm( cmd->vidin ) == VIDEOINPUT_NTSC,
- videoinput_get_audio_mode( cmd->vidin ) );
- }
- tvtime_osd_set_audio_mode( cmd->osd, videoinput_get_audio_mode_name( cmd->vidin, videoinput_get_audio_mode( cmd->vidin ) ) );
- tvtime_osd_show_info( cmd->osd );
- reset_audio_mode_menu( commands_get_menu( cmd, "audiomode" ),
- videoinput_get_norm( cmd->vidin ) == VIDEOINPUT_NTSC,
- videoinput_get_audio_mode( cmd->vidin ) );
- commands_refresh_menu( cmd );
- }
- }
break;
case TVTIME_TOGGLE_AUDIO_MODE:
- if( cmd->vidin ) {
- videoinput_set_audio_mode( cmd->vidin, videoinput_get_audio_mode( cmd->vidin ) << 1 );
- if( cmd->osd ) {
- osd_list_audio_modes( cmd->osd, videoinput_get_norm( cmd->vidin ) == VIDEOINPUT_NTSC,
- videoinput_get_audio_mode( cmd->vidin ) );
- tvtime_osd_set_audio_mode( cmd->osd, videoinput_get_audio_mode_name( cmd->vidin, videoinput_get_audio_mode( cmd->vidin ) ) );
- tvtime_osd_show_info( cmd->osd );
- reset_audio_mode_menu( commands_get_menu( cmd, "audiomode" ),
- videoinput_get_norm( cmd->vidin ) == VIDEOINPUT_NTSC,
- videoinput_get_audio_mode( cmd->vidin ) );
- commands_refresh_menu( cmd );
- }
- }
break;
case TVTIME_TOGGLE_DEINTERLACER:

Privacy Policy