diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2010-01-03 13:32:16 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2010-01-03 13:32:16 +0000 |
commit | 1bc9228ac74e4df52f677c98c0afda2c3ab58378 (patch) | |
tree | 92749d119b700456e5ac7244b66f6048d6fee1ce /apps/recorder/recording.c | |
parent | b75b3e7557916a3fcb4c9337790ccaff61f224c4 (diff) | |
download | rockbox-1bc9228ac74e4df52f677c98c0afda2c3ab58378.tar.gz rockbox-1bc9228ac74e4df52f677c98c0afda2c3ab58378.zip |
Disable speaker when recording to prevent feedback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24163 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-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); |