diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-25 21:32:43 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-25 21:33:00 +0200 |
commit | 1d164657cfacb49852950f697e3ecdabce8d9799 (patch) | |
tree | 6973d36ed1c8eb899fc804dba984c5209c20a313 /audio/headset.c | |
parent | 80541b6be466784326c9afb399afaabdc2333073 (diff) |
Don't use close_sco directly in headset_suspend_stream
Diffstat (limited to 'audio/headset.c')
-rw-r--r-- | audio/headset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c index ff4847bb..42db576b 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -2278,10 +2278,11 @@ unsigned int headset_suspend_stream(struct audio_device *dev, hs->dc_timer = 0; } - close_sco(dev); + headset_set_state(dev, HEADSET_STATE_CONNECTED); id = connect_cb_new(hs, HEADSET_STATE_CONNECTED, cb, user_data); g_idle_add((GSourceFunc) dummy_connect_complete, dev); + return id; } |