OSDN Git Service

android/handsfree: Fix not initializing call state to idle
authorSzymon Janc <szymon.janc@tieto.com>
Sun, 16 Mar 2014 22:46:00 +0000 (23:46 +0100)
committerSzymon Janc <szymon.janc@tieto.com>
Sun, 16 Mar 2014 22:51:31 +0000 (23:51 +0100)
android/handsfree.c

index 2ab0c32..62bb1cf 100644 (file)
@@ -208,6 +208,8 @@ static void device_init(const bdaddr_t *bdaddr)
 {
        bacpy(&device.bdaddr, bdaddr);
 
+       device.setup_state = HAL_HANDSFREE_CALL_STATE_IDLE;
+
        memcpy(device.inds, inds_defaults, sizeof(device.inds));
 
        memcpy(device.codecs, codecs_defaults, sizeof(device.codecs));