summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/pitch_detector.c4
-rw-r--r--apps/recorder/pcm_record.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c
index 208b146c4e..36248a540d 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -1106,7 +1106,7 @@ void record_and_get_pitch(void)
1106 } 1106 }
1107 } 1107 }
1108 rb->pcm_close_recording(); 1108 rb->pcm_close_recording();
1109 rb->pcm_set_frequency(HW_SAMPR_DEFAULT); 1109 rb->pcm_set_frequency(REC_SAMPR_DEFAULT | SAMPR_TYPE_REC);
1110#ifdef HAVE_SCHEDULER_BOOSTCTRL 1110#ifdef HAVE_SCHEDULER_BOOSTCTRL
1111 rb->cancel_cpu_boost(); 1111 rb->cancel_cpu_boost();
1112#endif 1112#endif
@@ -1141,7 +1141,7 @@ void init_everything(void)
1141 sample_rate = rb->round_value_to_list32(9000, rb->rec_freq_sampr, 1141 sample_rate = rb->round_value_to_list32(9000, rb->rec_freq_sampr,
1142 REC_NUM_FREQ, false); 1142 REC_NUM_FREQ, false);
1143 sample_rate = rb->rec_freq_sampr[sample_rate]; 1143 sample_rate = rb->rec_freq_sampr[sample_rate];
1144 rb->pcm_set_frequency(sample_rate); 1144 rb->pcm_set_frequency(sample_rate | SAMPR_TYPE_REC);
1145 rb->pcm_init_recording(); 1145 rb->pcm_init_recording();
1146 1146
1147 /* GUI */ 1147 /* GUI */
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c
index 687a70664d..3217509707 100644
--- a/apps/recorder/pcm_record.c
+++ b/apps/recorder/pcm_record.c
@@ -288,8 +288,8 @@ static void pcm_rec_have_more(int status, void **start, size_t *size)
288 288
289static void reset_hardware(void) 289static void reset_hardware(void)
290{ 290{
291 /* reset pcm to defaults (playback only) */ 291 /* reset pcm to defaults */
292 pcm_set_frequency(HW_SAMPR_DEFAULT); 292 pcm_set_frequency(REC_SAMPR_DEFAULT | SAMPR_TYPE_REC);
293 audio_set_output_source(AUDIO_SRC_PLAYBACK); 293 audio_set_output_source(AUDIO_SRC_PLAYBACK);
294 pcm_apply_settings(); 294 pcm_apply_settings();
295} 295}
@@ -1216,7 +1216,7 @@ static void pcmrec_set_recording_options(
1216 /* round to HW playback rates for monitoring */ 1216 /* round to HW playback rates for monitoring */
1217 index = round_value_to_list32(sr, hw_freq_sampr, 1217 index = round_value_to_list32(sr, hw_freq_sampr,
1218 HW_NUM_FREQ, false); 1218 HW_NUM_FREQ, false);
1219 pcm_set_frequency(hw_freq_sampr[index]); 1219 pcm_set_frequency(hw_freq_sampr[index] | SAMPR_TYPE_REC);
1220 /* encoders with a limited number of rates do their own rounding */ 1220 /* encoders with a limited number of rates do their own rounding */
1221 } 1221 }
1222 else 1222 else
@@ -1224,7 +1224,7 @@ static void pcmrec_set_recording_options(
1224 { 1224 {
1225 /* set sample rate from frequency selection */ 1225 /* set sample rate from frequency selection */
1226 sample_rate = rec_freq_sampr[rec_frequency]; 1226 sample_rate = rec_freq_sampr[rec_frequency];
1227 pcm_set_frequency(sample_rate); 1227 pcm_set_frequency(sample_rate | SAMPR_TYPE_REC);
1228 } 1228 }
1229 1229
1230 /* set monitoring */ 1230 /* set monitoring */