Closed
Bug 946240
Opened 11 years ago
Closed 11 years ago
[Bluetooth][gonk-kk] [bluedroid]Porting bluetooth module
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(blocking-b2g:1.4+, firefox28 wontfix, firefox29 fixed, b2g-v1.4 fixed)
People
(Reporter: seinlin, Assigned: shawnjohnjr)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 2 obsolete files)
Bluetooth module is complied failed in gonk-kk.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → shuang
Assignee | ||
Comment 1•11 years ago
|
||
I'm working on this.
Assignee | ||
Updated•11 years ago
|
Summary: [Bluetooth][gonk-kk] Porting bluetooth module → [Bluetooth][gonk-kk] [bluedroid]Porting bluetooth module
Assignee | ||
Comment 2•11 years ago
|
||
A few build errors:
BluetoothDeviceEventBinding.cpp:156:16: error: invalid use of incomplete type 'class mozilla::dom::BluetoothDeviceEvent'
../../dist/include/mozilla/dom/BluetoothDeviceEventBinding.h:17:7: error: forward declaration of 'class mozilla::dom::BluetoothDeviceEvent'
BluetoothDiscoveryStateChangedEventBinding.cpp:166:16: error: invalid use of incomplete type 'class mozilla::dom::BluetoothDiscoveryStateChangedEvent'
../../dist/include/mozilla/dom/BluetoothStatusChangedEventBinding.h:15:7: error: forward declaration of 'class mozilla::dom::BluetoothStatusChangedEvent'
They are all webidl related.
Assignee | ||
Comment 3•11 years ago
|
||
It looks like js/xpconnect/src/event_impl_gen.conf.in, MOZ_B2G_BT was not defined.
Assignee | ||
Comment 4•11 years ago
|
||
Build errors in AVRCP HAL, we need to add one callback in the front of callback btrc_remote_features_callback.
Since AVRCP HAL API changed in kitkat.
../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp:391:1: error: invalid conversion from 'void (*)()' to 'btrc_remote_features_callback {aka void (*)(bt_bdaddr_t*, btrc_remote_features_t)}' [-fpermissive]
../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp:391:1: error: invalid conversion from 'void (*)(btrc_player_attr_t)' to 'btrc_list_player_app_attr_callback {aka void (*)()}' [-fpermissive]
../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp:391:1: error: invalid conversion from 'void (*)(uint8_t, btrc_player_attr_t*) {aka void (*)(unsigned char, btrc_player_attr_t*)}' to 'btrc_list_player_app_values_callback {aka void (*)(btrc_player_attr_t)}' [-fpermissive]
../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp:391:1: error: invalid conversion from 'void (*)(uint8_t, uint8_t, uint8_t*) {aka void (*)(unsigned char, unsigned char, unsigned char*)}' to 'btrc_get_player_app_attrs_text_callback {aka void (*)(unsigned char, btrc_player_attr_t*)}' [-fpermissive]
../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp:391:1: error: invalid conversion from 'void (*)(btrc_player_settings_t*)' to 'btrc_get_player_app_values_text_callback {aka void (*)(unsigned char, unsigned char, unsigned char*)}' [-fpermissive]
../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp:391:1: error: invalid conversion from 'void (*)(uint8_t, btrc_media_attr_t*) {aka void (*)(unsigned char, btrc_media_attr_t*)}' to 'btrc_set_player_app_value_callback {aka void (*)(btrc_player_settings_t*)}' [-fpermissive]
../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp:391:1: error: invalid conversion from 'void (*)(btrc_event_id_t, uint32_t) {aka void (*)(btrc_event_id_t, unsigned int)}' to 'btrc_get_element_attr_callback {aka void (*)(unsigned char, btrc_media_attr_t*)}' [-fpermissive]
Assignee | ||
Comment 5•11 years ago
|
||
btrc_remote_features_callback was added in KitKat, which is the first callback function of btrc_callbacks_t. We need to add it, otherwise, signature of callback functions will not be matched.
Attachment #8350594 -
Flags: feedback?(echou)
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Shawn Huang [:shuang] [:shawnjohnjr] from comment #3)
> It looks like js/xpconnect/src/event_impl_gen.conf.in, MOZ_B2G_BT was not
> defined.
This was caused by changing configure.in after code generated. auto-gen files shall need to re-generate again.
After that, things are good.
So I think we only need attachment 8350594 [details] [diff] [review].
Assignee | ||
Comment 7•11 years ago
|
||
HFP/A2DP looks good on KitKat.
Assignee | ||
Updated•11 years ago
|
Hardware: x86_64 → ARM
Target Milestone: --- → 1.3 C2/1.4 S2(17jan)
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.4?
Assignee | ||
Comment 8•11 years ago
|
||
KitKat bluetooth HAL now added AVRCP 1.4 feature for AbsoluteVolume in HAL. We shall open another bug. For this bug, we just focus on functions that 1.3 version supported.
Comment 9•11 years ago
|
||
Comment on attachment 8350594 [details] [diff] [review]
avrcp-kitkat.patch
Review of attachment 8350594 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. This also reminds me that maybe we could use the same flag to exclude AVRCP 1.3 related code if Android 4.2.2 or previous version is used. Make sense?
Attachment #8350594 -
Flags: feedback?(echou) → feedback+
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #8351165 -
Flags: review?(echou)
Assignee | ||
Comment 11•11 years ago
|
||
(In reply to Shawn Huang [:shuang] [:shawnjohnjr] from comment #10)
> Created attachment 8351165 [details] [diff] [review]
> Bug 946240 - [Bluetooth][gonk-kk]Add flag to support different AVRCP profile
> version
This change would support JB 4.2.x, since JB 4.2 does not support AVRCP 1.3, based on Comment 9, in this patch, which fixes build break in JB 4.2. We have to do it since there are still a few BSPs only support Android 4.2.
Comment 12•11 years ago
|
||
Comment on attachment 8351165 [details] [diff] [review]
Bug 946240 - [Bluetooth][gonk-kk]Add flag to support different AVRCP profile version
Review of attachment 8351165 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Please make sure it compiles in all cases(ANDROID_VERSION < 17, = 17 and > 17). Thanks.
Attachment #8351165 -
Flags: review?(echou) → review+
Assignee | ||
Comment 13•11 years ago
|
||
Compiled on Android JB 4.3, Android JB 4.2 with bluedroid.
Assignee | ||
Updated•11 years ago
|
Attachment #8351165 -
Attachment is obsolete: true
Assignee | ||
Comment 15•11 years ago
|
||
Assignee | ||
Comment 16•11 years ago
|
||
Updated•11 years ago
|
blocking-b2g: 1.4? → 1.4+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 17•11 years ago
|
||
I also tried to build on different versions 4.2.2, 4.3, 4.4.
Updated•11 years ago
|
Attachment #8350594 -
Attachment is obsolete: true
Comment 18•11 years ago
|
||
Keywords: checkin-needed
Comment 19•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•