system/bt
修訂 | 12008bdb1984ac4f727a7ce58cb95844cbae629f (tree) |
---|---|
時間 | 2016-09-15 23:28:39 |
作者 | Linux Build Service Account <lnxbuild@loca...> |
Commiter | Gerrit - the friendly Code Review server |
Merge "Split A2p: Fix for stream failure in remote initiated connection" into bt.lnx.2.1-dev
@@ -2055,6 +2055,11 @@ static void btif_media_thread_handle_cmd(fixed_queue_t *queue, UNUSED_ATTR void | ||
2055 | 2055 | case BTIF_MEDIA_STOP_VS_CMD: |
2056 | 2056 | if (btif_media_cb.tx_started && !btif_media_cb.tx_stop_initiated) |
2057 | 2057 | btif_media_send_vendor_stop(); |
2058 | + else if(btif_media_cb.tx_start_initiated && !btif_media_cb.tx_started) | |
2059 | + { | |
2060 | + APPL_TRACE_IMP("Suspend Req when VSC exchange in progress,reset VSC"); | |
2061 | + btif_media_send_reset_vendor_state(); | |
2062 | + } | |
2058 | 2063 | else |
2059 | 2064 | APPL_TRACE_IMP("ignore VS stop request"); |
2060 | 2065 | break; |
@@ -2096,8 +2101,14 @@ static void btif_media_thread_handle_cmd(fixed_queue_t *queue, UNUSED_ATTR void | ||
2096 | 2101 | #if (BTA_AV_CO_CP_SCMS_T == TRUE) |
2097 | 2102 | btif_media_send_vendor_scmst_hdr(); |
2098 | 2103 | #else |
2099 | - if (!btif_media_cb.vs_configs_exchanged) | |
2104 | + if (!btif_media_cb.vs_configs_exchanged && | |
2105 | + btif_media_cb.tx_start_initiated) | |
2100 | 2106 | btif_media_cb.vs_configs_exchanged = TRUE; |
2107 | + else | |
2108 | + { | |
2109 | + APPL_TRACE_ERROR("Dont send start,stream suspended") | |
2110 | + break; | |
2111 | + } | |
2101 | 2112 | btif_media_send_vendor_start(); |
2102 | 2113 | #endif |
2103 | 2114 | break; |
@@ -2121,8 +2132,14 @@ static void btif_media_thread_handle_cmd(fixed_queue_t *queue, UNUSED_ATTR void | ||
2121 | 2132 | break; |
2122 | 2133 | #if (BTA_AV_CO_CP_SCMS_T == TRUE) |
2123 | 2134 | case BTIF_MEDIA_VS_A2DP_SET_SCMST_HDR_SUCCESS: |
2124 | - if (!btif_media_cb.vs_configs_exchanged) | |
2135 | + if (!btif_media_cb.vs_configs_exchanged && | |
2136 | + btif_media_cb.tx_start_initiated) | |
2125 | 2137 | btif_media_cb.vs_configs_exchanged = TRUE; |
2138 | + else | |
2139 | + { | |
2140 | + APPL_TRACE_ERROR("Dont send start,stream suspended") | |
2141 | + break; | |
2142 | + } | |
2126 | 2143 | btif_media_send_vendor_start(); |
2127 | 2144 | break; |
2128 | 2145 | #endif |