linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BlueZ for Android 4.4.3
@ 2015-02-10  1:51 Zheng Tao-B46827
  2015-02-11  8:16 ` Lukasz Rymanowski
  0 siblings, 1 reply; 10+ messages in thread
From: Zheng Tao-B46827 @ 2015-02-10  1:51 UTC (permalink / raw)
  To: linux-bluetooth

Hi, Peers

Thanks for your hard work that let us can experience BlueZ for Android. 
  But I am faced with a audio/a2dp problems that stick me many weeks.

I’m try to port Bluez to kitkat 4.4.3, and many common profiles, such as 
HIDP/FTP/GATT can function successfully. But the A2DP profile failed.

So, I try to debug it using haltest tool as follows(with USB Bluetooth 
Dongle):

1.bluetooth init

2.bluetooth enable

3.bluetooth get_profile_interface a2dp

4.bluetooth start_discovery

5.bluetooth create_bond xxxxxxxx

6.audio init

7.audio open_output_stream

Then it will prompts:

D/BlueZ   ( 1106): 
external/bluetooth/bluez/android/hal-audio.c:audio_open_output_stream()

D/BlueZ   ( 1106): 
external/bluetooth/bluez/android/hal-audio.c:ipc_open_stream_cmd()

E/BlueZ   ( 1106): audio: Invalid cmd socket passed to audio_ipc_cmd

E/BlueZ   ( 1106): audio: cannot open output stream

when I debug it , I found that

BlueZ   ( 1106): 
external/bluetooth/bluez/android/hal-audio.c:ipc_handler() Waiting for 
connection ...

And it seems that there is no audio socket to connect it.

I’m not familiar with Bluez stack details, can you give some advice? 
What should I do to enable audio/a2dp functionality and execute audio 
play command? Thanks.

----------------------------------------------

*Best Regards!*

Tony Zheng


^ permalink raw reply	[flat|nested] 10+ messages in thread
* BlueZ for Android 4.4.3
@ 2015-02-10  1:37 Zheng Tao-B46827
  0 siblings, 0 replies; 10+ messages in thread
From: Zheng Tao-B46827 @ 2015-02-10  1:37 UTC (permalink / raw)
  To: linux-bluetooth

Hi, Peers

Thanks for your hard work that let us can experience BlueZ for Android. 
  But I am faced with a audio/a2dp problems that stick me many weeks.

I’m try to port Bluez to kitkat 4.4.3, and many common profiles, such as 
HIDP/FTP/GATT can function successfully. But the A2DP profile failed.

So, I try to debug it using haltest tool as follows(with USB Bluetooth 
Dongle):

1.bluetooth init

2.bluetooth enable

3.bluetooth get_profile_interface a2dp

4.bluetooth start_discovery

5.bluetooth create_bond xxxxxxxx

6.audio init

7.audio open_output_stream

Then it will prompts:

D/BlueZ   ( 1106): 
external/bluetooth/bluez/android/hal-audio.c:audio_open_output_stream()

D/BlueZ   ( 1106): 
external/bluetooth/bluez/android/hal-audio.c:ipc_open_stream_cmd()

E/BlueZ   ( 1106): audio: Invalid cmd socket passed to audio_ipc_cmd

E/BlueZ   ( 1106): audio: cannot open output stream

when I debug it , I found that

BlueZ   ( 1106): 
external/bluetooth/bluez/android/hal-audio.c:ipc_handler() Waiting for 
connection ...

And it seems that there is no audio socket to connect it.

I’m not familiar with Bluez stack details, can you give some advice? 
What should I do to enable audio/a2dp functionality and execute audio 
play command? Thanks.

----------------------------------------------

*Best Regards!*

Tony Zheng


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-03-16 10:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10  1:51 BlueZ for Android 4.4.3 Zheng Tao-B46827
2015-02-11  8:16 ` Lukasz Rymanowski
2015-02-11  9:37   ` Zheng Tao-B46827
2015-02-11 11:41     ` Lukasz Rymanowski
2015-02-12  2:22       ` Zheng Tao-B46827
2015-02-13 16:02         ` Lukasz Rymanowski
2015-03-02  6:54           ` Zheng Tao-B46827
2015-03-04 11:43             ` Lukasz Rymanowski
     [not found]               ` <54FD4B0E.9010306@freescale.com>
2015-03-16 10:16                 ` Lukasz Rymanowski
  -- strict thread matches above, loose matches on Subject: below --
2015-02-10  1:37 Zheng Tao-B46827

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).