From 344b9d09860af193a0a297438432339f4108c574 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 31 May 2013 04:13:39 -0400 Subject: Some corrections after 5857c44. Playback needs to receive a couple of settings-related messages even when not playing. Put the message reply back where it was when loading an encoder for recording. Change-Id: I8cc80f46e42a0afd119991d698510e1ebef38ead --- apps/recorder/pcm_record.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/recorder/pcm_record.c') diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c index a45dcc2d11..3b3211afab 100644 --- a/apps/recorder/pcm_record.c +++ b/apps/recorder/pcm_record.c @@ -1191,7 +1191,6 @@ static void pcmrec_close(void) /* PCMREC_OPTIONS */ static void pcmrec_set_recording_options( - struct event_queue *q, struct audio_recording_options *options) { /* stop everything */ @@ -1237,9 +1236,10 @@ static void pcmrec_set_recording_options( /* apply hardware setting to start monitoring now */ pcm_apply_settings(); + queue_reply(&audio_queue, 0); /* Release sender */ + if (codec_load(-1, enc_config.afmt | CODEC_TYPE_ENCODER)) { - queue_reply(q, true); /* run immediately */ codec_go(); @@ -1487,7 +1487,7 @@ void audio_recording_handler(struct queue_event *ev) return; /* no more recording */ case Q_AUDIO_RECORDING_OPTIONS: - pcmrec_set_recording_options(&audio_queue, + pcmrec_set_recording_options( (struct audio_recording_options *)ev->data); break; -- cgit v1.2.3