* [PATCH] hfp: gateway_suspend_stream should trigger a state change
@ 2011-02-10 10:41 Daniel Wagner
2011-02-11 19:49 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Wagner @ 2011-02-10 10:41 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Daniel Wagner
From: Daniel Wagner <daniel.wagner@bmw-carit.de>
When gateway_suspend_stream is called it should change the
gateway state machine from PLAYING to CONNECTED.
---
audio/gateway.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/audio/gateway.c b/audio/gateway.c
index 43a4b02..ec0ec5d 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -707,4 +707,5 @@ void gateway_suspend_stream(struct audio_device *dev)
gw->sco = NULL;
gw->sco_start_cb = NULL;
gw->sco_start_cb_data = NULL;
+ change_state(dev, GATEWAY_STATE_CONNECTED);
}
--
1.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-11 19:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-10 10:41 [PATCH] hfp: gateway_suspend_stream should trigger a state change Daniel Wagner
2011-02-11 19:49 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox