summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/pcm_record.c8
1 files changed, 4 insertions, 4 deletions
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 */