summaryrefslogtreecommitdiffstats
path: root/audio_a2dp_hw/audio_a2dp_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio_a2dp_hw/audio_a2dp_hw.c')
-rw-r--r--audio_a2dp_hw/audio_a2dp_hw.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio_a2dp_hw/audio_a2dp_hw.c b/audio_a2dp_hw/audio_a2dp_hw.c
index 6bfec3c..fcbe718 100644
--- a/audio_a2dp_hw/audio_a2dp_hw.c
+++ b/audio_a2dp_hw/audio_a2dp_hw.c
@@ -640,9 +640,13 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
}
else
{
- /* only start stream if we were previously suspended */
+ /* Do not start the streaming automatically. If the phone was streaming
+ * prior to being suspended, the next out_write shall trigger the
+ * AVDTP start procedure */
if (out->state == AUDIO_A2DP_STATE_SUSPENDED)
- retval = start_audio_datapath(out);
+ out->state = AUDIO_A2DP_STATE_STANDBY;
+ /* Irrespective of the state, return 0 */
+ retval = 0;
}
}