system/bt
リビジョン | 8178d51f809af0dc1c8931098589cb69fdd0a22d (tree) |
---|---|
日時 | 2016-10-10 20:05:11 |
作者 | Jaap Jan Meijer <jjmeijer88@gmai...> |
コミッター | Jaap Jan Meijer |
[FOR UPSTEAM] Fix Linux libbt-vendor build
@@ -408,6 +408,16 @@ static int bt_vendor_op(bt_vendor_opcode_t opcode, void *param) | ||
408 | 408 | |
409 | 409 | case BT_VND_OP_A2DP_OFFLOAD_STOP: |
410 | 410 | break; |
411 | + | |
412 | + case FM_VND_OP_POWER_CTRL: | |
413 | + break; | |
414 | + | |
415 | + case BT_VND_OP_FM_USERIAL_OPEN: | |
416 | + break; | |
417 | + | |
418 | + case BT_VND_OP_FM_USERIAL_CLOSE: | |
419 | + break; | |
420 | + | |
411 | 421 | } |
412 | 422 | |
413 | 423 | LOG_INFO(LOG_TAG, "%s op %d retval %d", __func__, opcode, retval); |
@@ -422,9 +432,15 @@ static void bt_vendor_cleanup(void) | ||
422 | 432 | bt_vendor_callbacks = NULL; |
423 | 433 | } |
424 | 434 | |
435 | +static void ssr_cleanup (int reason) | |
436 | +{ | |
437 | + LOG_INFO(LOG_TAG, "%s", __func__); | |
438 | +} | |
439 | + | |
425 | 440 | EXPORT_SYMBOL const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE = { |
426 | 441 | sizeof(bt_vendor_interface_t), |
427 | 442 | bt_vendor_init, |
428 | 443 | bt_vendor_op, |
429 | 444 | bt_vendor_cleanup, |
445 | + ssr_cleanup, | |
430 | 446 | }; |
@@ -23,8 +23,8 @@ | ||
23 | 23 | #include "base/thread_task_runner_handle.h" |
24 | 24 | |
25 | 25 | extern "C" { |
26 | +#include <inttypes.h> | |
26 | 27 | #include <sys/socket.h> |
27 | - | |
28 | 28 | #include "stack/include/hcidefs.h" |
29 | 29 | #include "osi/include/log.h" |
30 | 30 | } // extern "C" |
@@ -105,7 +105,6 @@ void HciTransport::OnFileCanWriteWithoutBlocking(int fd) { | ||
105 | 105 | CHECK(fd == GetVendorFd()); |
106 | 106 | if (!outbound_events_.empty()) { |
107 | 107 | base::TimeTicks current_time = base::TimeTicks::Now(); |
108 | - auto it = outbound_events_.begin(); | |
109 | 108 | // Check outbound events for events that can be sent, i.e. events with a |
110 | 109 | // timestamp before the current time. Stop sending events when |
111 | 110 | // |packet_stream_| fails writing. |
@@ -148,7 +147,7 @@ void HciTransport::PostDelayedEventResponse(std::unique_ptr<EventPacket> event, | ||
148 | 147 | PostEventResponse(std::move(event)); |
149 | 148 | } |
150 | 149 | |
151 | - LOG_INFO(LOG_TAG, "Posting event response with delay of %lld ms.", | |
150 | + LOG_INFO(LOG_TAG, "Posting event response with delay of %" PRId64 " ms.", | |
152 | 151 | delay.InMilliseconds()); |
153 | 152 | |
154 | 153 | AddEventToOutboundEvents( |