diff options
-rw-r--r-- | apps/recorder/recording.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 0d1ada73f6..8b52b7cac2 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -1068,6 +1068,11 @@ bool recording_screen(bool no_source) | |||
1068 | agc_preset_str[5] = str(LANG_AGC_VOICE); | 1068 | agc_preset_str[5] = str(LANG_AGC_VOICE); |
1069 | #endif /* HAVE_AGC */ | 1069 | #endif /* HAVE_AGC */ |
1070 | 1070 | ||
1071 | #ifdef HAVE_SPEAKER | ||
1072 | /* Disable speaker to prevent feedback */ | ||
1073 | audiohw_enable_speaker(false); | ||
1074 | #endif | ||
1075 | |||
1071 | #if CONFIG_CODEC == SWCODEC | 1076 | #if CONFIG_CODEC == SWCODEC |
1072 | audio_close_recording(); | 1077 | audio_close_recording(); |
1073 | #endif | 1078 | #endif |
@@ -1903,6 +1908,11 @@ rec_abort: | |||
1903 | audio_init_playback(); | 1908 | audio_init_playback(); |
1904 | #endif /* CONFIG_CODEC == SWCODEC */ | 1909 | #endif /* CONFIG_CODEC == SWCODEC */ |
1905 | 1910 | ||
1911 | #ifdef HAVE_SPEAKER | ||
1912 | /* Re-enable speaker */ | ||
1913 | audiohw_enable_speaker(global_settings.speaker_enabled); | ||
1914 | #endif | ||
1915 | |||
1906 | /* make sure the trigger is really turned off */ | 1916 | /* make sure the trigger is really turned off */ |
1907 | peak_meter_trigger(false); | 1917 | peak_meter_trigger(false); |
1908 | peak_meter_set_trigger_listener(NULL); | 1918 | peak_meter_set_trigger_listener(NULL); |