Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-24 Thread Tanu Kaskinen
On Wed, 2016-08-24 at 18:26 +0700, Hieu Le wrote:
> Thanks for your instruction.
> 
> Today, I tried to use hcidump to capture the Bluetooth events in two
> cases:
> 
> 1. Switch to headset_head_unit profile:
> < HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
> handle 1 voice setting 0x0060 ptype 0x0380
> > 
> > HCI Event: Command Status (0x0f) plen 4
> Setup Synchronous Connection (0x01|0x0028) status 0x1a ncmd 1
> Error: Unsupported Remote Feature / Unsupported LMP Feature
> < HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
> handle 1 voice setting 0x0060 ptype 0x0380
> > 
> > HCI Event: Command Status (0x0f) plen 4
> Setup Synchronous Connection (0x01|0x0028) status 0x1a ncmd 1
> Error: Unsupported Remote Feature / Unsupported LMP Feature
> < HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
> handle 1 voice setting 0x0060 ptype 0x03c8
> > 
> > HCI Event: Command Status (0x0f) plen 4
> Setup Synchronous Connection (0x01|0x0028) status 0x1a ncmd 1
> Error: Unsupported Remote Feature / Unsupported LMP Feature
> < HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
> handle 1 voice setting 0x0060 ptype 0x03c4
> > 
> > HCI Event: Command Status (0x0f) plen 4
> Setup Synchronous Connection (0x01|0x0028) status 0x00 ncmd 1
> > 
> > HCI Event: Synchronous Connect Complete (0x2c) plen 17
> status 0x00 handle 257 bdaddr 00:1F:81:34:08:22 type SCO
> Air mode: CVSD
> > 
> > HCI Event: Max Slots Change (0x1b) plen 3
> handle 1 slots 3
> < SCO data: handle 257 flags 0x00 dlen 48
> < SCO data: handle 257 flags 0x00 dlen 48
> > 
> > HCI Event: Max Slots Change (0x1b) plen 3
> handle 1 slots 1
> 
> 2. When using parecord to capture audio input from headset:
> However, in this case, hcidump captured nothing !!! It is very odd
> 
> 
> Do you have any suggestion or advice for this?

My only advice is to try asking the bluez developers. I have no idea
what is wrong. It looks to me that this is not a pulseaudio bug, but
without knowing the root cause, I can't be sure of that.

-- 
Tanu
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-24 Thread Hieu Le
Thanks for your instruction.

Today, I tried to use hcidump to capture the Bluetooth events in two cases:

1. Switch to headset_head_unit profile:
< HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
handle 1 voice setting 0x0060 ptype 0x0380
> HCI Event: Command Status (0x0f) plen 4
Setup Synchronous Connection (0x01|0x0028) status 0x1a ncmd 1
Error: Unsupported Remote Feature / Unsupported LMP Feature
< HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
handle 1 voice setting 0x0060 ptype 0x0380
> HCI Event: Command Status (0x0f) plen 4
Setup Synchronous Connection (0x01|0x0028) status 0x1a ncmd 1
Error: Unsupported Remote Feature / Unsupported LMP Feature
< HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
handle 1 voice setting 0x0060 ptype 0x03c8
> HCI Event: Command Status (0x0f) plen 4
Setup Synchronous Connection (0x01|0x0028) status 0x1a ncmd 1
Error: Unsupported Remote Feature / Unsupported LMP Feature
< HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
handle 1 voice setting 0x0060 ptype 0x03c4
> HCI Event: Command Status (0x0f) plen 4
Setup Synchronous Connection (0x01|0x0028) status 0x00 ncmd 1
> HCI Event: Synchronous Connect Complete (0x2c) plen 17
status 0x00 handle 257 bdaddr 00:1F:81:34:08:22 type SCO
Air mode: CVSD
> HCI Event: Max Slots Change (0x1b) plen 3
handle 1 slots 3
< SCO data: handle 257 flags 0x00 dlen 48
< SCO data: handle 257 flags 0x00 dlen 48
> HCI Event: Max Slots Change (0x1b) plen 3
handle 1 slots 1

2. When using parecord to capture audio input from headset:
However, in this case, hcidump captured nothing !!! It is very odd 

Do you have any suggestion or advice for this?

Thank you,
Hieu Le.

On Tue, Aug 23, 2016 at 8:04 PM, Tanu Kaskinen  wrote:

> On Tue, 2016-08-23 at 19:58 +0700, Hieu Le wrote:
> > Dear all,
> >
> > One strange thing I noticed when debugging this issue is even "pactl list
> > sinks|sources short" show Bluetooth's headset sinks|sources properly.
> > However, "arecord -L" shows only my internal microphone (missing
> > Bluetooth's headset).
> >
> > Am I missing something? Or the setup between Pulseaudio and ALSA is not
> up
> > correctly.
>
> arecord is an alsa tool, which will only show alsa devices. Alsa
> doesn't deal with bluetooth, so it's expected that bluetooth devices
> don't show up in arecord -L.
>
> --
> Tanu
> ___
> pulseaudio-discuss mailing list
> pulseaudio-discuss@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>



-- 
 Hieu Le ---
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-23 Thread Tanu Kaskinen
On Tue, 2016-08-23 at 19:58 +0700, Hieu Le wrote:
> Dear all,
> 
> One strange thing I noticed when debugging this issue is even "pactl list
> sinks|sources short" show Bluetooth's headset sinks|sources properly.
> However, "arecord -L" shows only my internal microphone (missing
> Bluetooth's headset).
> 
> Am I missing something? Or the setup between Pulseaudio and ALSA is not up
> correctly.

arecord is an alsa tool, which will only show alsa devices. Alsa
doesn't deal with bluetooth, so it's expected that bluetooth devices
don't show up in arecord -L.

-- 
Tanu
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-23 Thread Hieu Le
Dear all,

One strange thing I noticed when debugging this issue is even "pactl list
sinks|sources short" show Bluetooth's headset sinks|sources properly.
However, "arecord -L" shows only my internal microphone (missing
Bluetooth's headset).

Am I missing something? Or the setup between Pulseaudio and ALSA is not up
correctly.

Regards,
Hieu Le.

On Mon, Aug 22, 2016 at 4:08 PM, Hieu Le  wrote:

> Hello,
> Sorry to bring this up again. However, I cannot use pulseaudio 8.0 +
> bluez5.38 to record audio from my Bluetooth's microphone.
>
> - I followed the patch from link below to apply it on top of my embedded's
> board which is running 3.14 Linux kernel:
> https://lists.freedesktop.org/archives/pulseaudio-discuss/
> 2015-March/023305.html
>
> I can successfully switch to headset_head_unit (HSP) profile. Below is the
> output of sinks|sources and how I choose Bluetooth's microphone as the
> default audio source:
>
> # *pactl list sources short*
> *0   alsa_output.0.analog-stereo.monitor module-alsa-sink.c
>  s16le 2ch 44100Hz   IDLE*
> *1   alsa_input.0.analog-stereo  module-alsa-source.cs16le 2ch
> 44100Hz   IDLE*
> *2   bluez_sink.00_1F_81_34_08_22.monitormodule-bluez5-device.c
>  s16le 1ch 8000HzIDLE*
> *3   bluez_source.00_1F_81_34_08_22  module-bluez5-device.c  s16le 1ch
> 8000HzIDLE*
>
> # *pactl list sinks short*
> *0   alsa_output.0.analog-stereo module-alsa-sink.c  s16le 2ch
> 44100Hz   IDLE*
> *1   bluez_sink.00_1F_81_34_08_22module-bluez5-device.c  s16le 1ch
> 8000HzIDLE*
>
>
> *# pacmd set-default-source 3*
>
> Using parecord to capture audio from Bluetooth's microphone:
> # *parecord -v -r --channels=1 --file-format=wav
> --device=bluez_source.00_1F_81_34_08_22 mm.wav*
>
> *Opening a recording stream with sample specification 's16le 1ch 44100Hz'
> and channel map 'mono'.*
> *Connection established.*
> *Stream successfully created.*
> *Buffer metrics: maxlength=4194304, fragsize=176400*
> *Using sample spec 's16le 1ch 44100Hz', channel map 'mono'.*
> *Connected to device bluez_source.00_1F_81_34_08_22 (index: 3, suspended:
> no).*
> *Time: 0.026 sec; Latency: 25844 usec.*
>
> => In my case, the result is a mm.wav of zero bytes no matter how long I
> record.
>
> The output from pulseaudio's log is:
> *I: [pulseaudio] client.c: Created 10 "Native client (UNIX socket client)"*
> *D: [pulseaudio] protocol-native.c: Protocol version: remote 30, local 30
> I: [pulseaudio] protocol-native.c: Got credentials: uid=0 gid=0 success=1
> D: [pulseaudio] protocol-native.c: SHM possible: yes D: [pulseaudio]
> protocol-native.c: Negotiated SHM: yes D: [pulseaudio] srbchannel.c: SHM
> block is 4056 bytes, ringbuffer capacity is 2 * 2004 bytes D: [pulseaudio]
> protocol-native.c: Enabling srbchannel... D: [pulseaudio]
> module-augment-properties.c: Looking for .desktop file for parecord D:
> [pulseaudio] protocol-native.c: Client enabled srbchannel. D: [pulseaudio]
> module-stream-restore.c: Not restoring device for stream
> source-output-by-application-name:parecord, because already set D:
> [pulseaudio] module-intended-roles.c: Not setting device for stream mm.wav,
> because already set. D: [pulseaudio] source-output.c: Negotiated format:
> pcm, format.sample_format = "\"s16le\"" format.rate = "44100"
> format.channels = "1" format.channel_map = "\"mono\"" I: [pulseaudio]
> source-output.c: Trying to change sample rate I: [pulseaudio] resampler.c:
> Speex appears to be compiled with --enable-fixed-point. Switching to a
> fixed-point resampler because it should be faster. D: [pulseaudio]
> resampler.c: Resampler: D: [pulseaudio] resampler.c: rate 8000 -> 44100
> (method speex-fixed-1) D: [pulseaudio] resampler.c: format s16le -> s16le
> (intermediate s16le) D: [pulseaudio] resampler.c: channels 1 -> 1
> (resampling 1) I: [pulseaudio] speex.c: Choosing speex quality setting 1.
> D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432,
> tlength=0, base=2, prebuf=0, minreq=1 maxrewind=0 D: [pulseaudio]
> memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432,
> base=2, prebuf=0, minreq=2 maxrewind=0 I: [pulseaudio] source-output.c:
> Created output 3 "mm.wav" on bluez_source.00_1F_81_34_08_22 with sample
> spec s16le 1ch 44100Hz and channel map mono I: [pulseaudio]
> source-output.c: media.format = "WAV (Microsoft)" I: [pulseaudio]
> source-output.c: application.name  = "parecord" I:
> [pulseaudio] source-output.c: media.name  = "mm.wav" I:
> [pulseaudio] source-output.c: native-protocol.peer = "UNIX socket client"
> I: [pulseaudio] source-output.c: native-protocol.version = "30" I:
> [pulseaudio] source-output.c: application.process.id
>  = "1930" I: [pulseaudio] source-output.c:
> application.process.user = "root" I: [pulseaudio] source-output.c:
> application.process.host = "OpenWrt" I: [pulseaudio] source-output.c:
> appli

Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-23 Thread Hieu Le
Hello,
Sorry to bring this up again. However, I cannot use pulseaudio 8.0 +
bluez5.38 to record audio from my Bluetooth's microphone.

- I followed the patch from link below to apply it on top of my embedded's
board which is running 3.14 Linux kernel:
https://lists.freedesktop.org/archives/pulseaudio-discuss/2015-March/023305.html

I can successfully switch to headset_head_unit (HSP) profile. Below is the
output of sinks|sources and how I choose Bluetooth's microphone as the
default audio source:

# *pactl list sources short*
*0   alsa_output.0.analog-stereo.monitor module-alsa-sink.c
 s16le 2ch 44100Hz   IDLE*
*1   alsa_input.0.analog-stereo  module-alsa-source.cs16le 2ch
44100Hz   IDLE*
*2   bluez_sink.00_1F_81_34_08_22.monitormodule-bluez5-device.c
 s16le 1ch 8000HzIDLE*
*3   bluez_source.00_1F_81_34_08_22  module-bluez5-device.c  s16le 1ch
8000HzIDLE*

# *pactl list sinks short*
*0   alsa_output.0.analog-stereo module-alsa-sink.c  s16le 2ch
44100Hz   IDLE*
*1   bluez_sink.00_1F_81_34_08_22module-bluez5-device.c  s16le 1ch
8000HzIDLE*


*# pacmd set-default-source 3*

Using parecord to capture audio from Bluetooth's microphone:
# *parecord -v -r --channels=1 --file-format=wav
--device=bluez_source.00_1F_81_34_08_22 mm.wav*

*Opening a recording stream with sample specification 's16le 1ch 44100Hz'
and channel map 'mono'.*
*Connection established.*
*Stream successfully created.*
*Buffer metrics: maxlength=4194304, fragsize=176400*
*Using sample spec 's16le 1ch 44100Hz', channel map 'mono'.*
*Connected to device bluez_source.00_1F_81_34_08_22 (index: 3, suspended:
no).*
*Time: 0.026 sec; Latency: 25844 usec.*

=> In my case, the result is a mm.wav of zero bytes no matter how long I
record.

The output from pulseaudio's log is:
*I: [pulseaudio] client.c: Created 10 "Native client (UNIX socket client)"*
*D: [pulseaudio] protocol-native.c: Protocol version: remote 30, local 30
I: [pulseaudio] protocol-native.c: Got credentials: uid=0 gid=0 success=1
D: [pulseaudio] protocol-native.c: SHM possible: yes D: [pulseaudio]
protocol-native.c: Negotiated SHM: yes D: [pulseaudio] srbchannel.c: SHM
block is 4056 bytes, ringbuffer capacity is 2 * 2004 bytes D: [pulseaudio]
protocol-native.c: Enabling srbchannel... D: [pulseaudio]
module-augment-properties.c: Looking for .desktop file for parecord D:
[pulseaudio] protocol-native.c: Client enabled srbchannel. D: [pulseaudio]
module-stream-restore.c: Not restoring device for stream
source-output-by-application-name:parecord, because already set D:
[pulseaudio] module-intended-roles.c: Not setting device for stream mm.wav,
because already set. D: [pulseaudio] source-output.c: Negotiated format:
pcm, format.sample_format = "\"s16le\"" format.rate = "44100"
format.channels = "1" format.channel_map = "\"mono\"" I: [pulseaudio]
source-output.c: Trying to change sample rate I: [pulseaudio] resampler.c:
Speex appears to be compiled with --enable-fixed-point. Switching to a
fixed-point resampler because it should be faster. D: [pulseaudio]
resampler.c: Resampler: D: [pulseaudio] resampler.c: rate 8000 -> 44100
(method speex-fixed-1) D: [pulseaudio] resampler.c: format s16le -> s16le
(intermediate s16le) D: [pulseaudio] resampler.c: channels 1 -> 1
(resampling 1) I: [pulseaudio] speex.c: Choosing speex quality setting 1.
D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432,
tlength=0, base=2, prebuf=0, minreq=1 maxrewind=0 D: [pulseaudio]
memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432,
base=2, prebuf=0, minreq=2 maxrewind=0 I: [pulseaudio] source-output.c:
Created output 3 "mm.wav" on bluez_source.00_1F_81_34_08_22 with sample
spec s16le 1ch 44100Hz and channel map mono I: [pulseaudio]
source-output.c: media.format = "WAV (Microsoft)" I: [pulseaudio]
source-output.c: application.name  = "parecord" I:
[pulseaudio] source-output.c: media.name  = "mm.wav" I:
[pulseaudio] source-output.c: native-protocol.peer = "UNIX socket client"
I: [pulseaudio] source-output.c: native-protocol.version = "30" I:
[pulseaudio] source-output.c: application.process.id
 = "1930" I: [pulseaudio] source-output.c:
application.process.user = "root" I: [pulseaudio] source-output.c:
application.process.host = "OpenWrt" I: [pulseaudio] source-output.c:
application.process.binary = "parecord" I: [pulseaudio] source-output.c:
application.language = "C" I: [pulseaudio] source-output.c:
application.process.machine_id = "fbf61ebdc6bd1c95cd6a1de257baaee6" I:
[pulseaudio] source-output.c: module-stream-restore.id
 =
"source-output-by-application-name:parecord" D: [pulseaudio] memblockq.c:
memblockq requested: maxlength=4194304, tlength=0, base=2, prebuf=1,
minreq=0 maxrewind=0 D: [pulseaudio] memblockq.c: memblockq sanitized:
maxlength=4194304, tlength=4194304, base=2, prebuf=2, minreq=2

Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-21 Thread Hieu Le
Thanks for your information. Let me try to backport from 3.18.

Regards,
Hieu Le.

On Sat, Aug 20, 2016 at 7:32 PM, Tanu Kaskinen  wrote:

> On Sat, 2016-08-20 at 14:14 +0200, Georg Chini wrote:
> > On 20.08.2016 13:40, Tanu Kaskinen wrote:
> > >
> > > On Fri, 2016-08-19 at 13:57 +0700, Hieu Le wrote:
> > > >
> > > > I'm trying to get a SPK-ProHT Bluetooth speaker and headset working
> on an
> > > > embedded Linux board but when I failed to use pacmd set-card-profile
> to
> > > > choose headset_head_unit profile. Checking pulseaudio lof file, it
> seems
> > > > backend-native cannot connect to SCO socket. Sorry this is a very
> long mail
> > > > due to debug logs attached
> > > The problem seems to be that connect() fails with "Protocol not
> > > supported". This problem has been reported a few times, but I don't
> > > know how to fix it. It seems like missing functionality in the kernel,
> > > so my guess is that you're missing some bluetooth related driver. If
> > > you get it working somehow, please report back how you did it.
> > >
> > > The bluez mailing list might be able to help better.
> > >
> > Hi,
> >
> > I remember there was a kernel problem which prevented some
> > headsets from working. The bug was introduced in 3.12 and was
> > fixed in 3.18.
> > See also
> > https://lists.freedesktop.org/archives/pulseaudio-discuss/
> 2015-March/023298.html
>
> Thanks! I added this bit of information here:
> https://www.freedesktop.org/wiki/Software/PulseAudio/
> Documentation/User/Bluetooth/
>
> --
> Tanu
> ___
> pulseaudio-discuss mailing list
> pulseaudio-discuss@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>



-- 
 Hieu Le ---
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-20 Thread Tanu Kaskinen
On Sat, 2016-08-20 at 14:14 +0200, Georg Chini wrote:
> On 20.08.2016 13:40, Tanu Kaskinen wrote:
> > 
> > On Fri, 2016-08-19 at 13:57 +0700, Hieu Le wrote:
> > > 
> > > I'm trying to get a SPK-ProHT Bluetooth speaker and headset working on an
> > > embedded Linux board but when I failed to use pacmd set-card-profile to
> > > choose headset_head_unit profile. Checking pulseaudio lof file, it seems
> > > backend-native cannot connect to SCO socket. Sorry this is a very long 
> > > mail
> > > due to debug logs attached
> > The problem seems to be that connect() fails with "Protocol not
> > supported". This problem has been reported a few times, but I don't
> > know how to fix it. It seems like missing functionality in the kernel,
> > so my guess is that you're missing some bluetooth related driver. If
> > you get it working somehow, please report back how you did it.
> > 
> > The bluez mailing list might be able to help better.
> > 
> Hi,
> 
> I remember there was a kernel problem which prevented some
> headsets from working. The bug was introduced in 3.12 and was
> fixed in 3.18.
> See also
> https://lists.freedesktop.org/archives/pulseaudio-discuss/2015-March/023298.html

Thanks! I added this bit of information here:
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Bluetooth/

-- 
Tanu
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-20 Thread Georg Chini

On 20.08.2016 13:40, Tanu Kaskinen wrote:

On Fri, 2016-08-19 at 13:57 +0700, Hieu Le wrote:

I'm trying to get a SPK-ProHT Bluetooth speaker and headset working on an
embedded Linux board but when I failed to use pacmd set-card-profile to
choose headset_head_unit profile. Checking pulseaudio lof file, it seems
backend-native cannot connect to SCO socket. Sorry this is a very long mail
due to debug logs attached

The problem seems to be that connect() fails with "Protocol not
supported". This problem has been reported a few times, but I don't
know how to fix it. It seems like missing functionality in the kernel,
so my guess is that you're missing some bluetooth related driver. If
you get it working somehow, please report back how you did it.

The bluez mailing list might be able to help better.


Hi,

I remember there was a kernel problem which prevented some
headsets from working. The bug was introduced in 3.12 and was
fixed in 3.18.
See also
https://lists.freedesktop.org/archives/pulseaudio-discuss/2015-March/023298.html

Regards
 Georg
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-20 Thread Tanu Kaskinen
On Fri, 2016-08-19 at 13:57 +0700, Hieu Le wrote:
> I'm trying to get a SPK-ProHT Bluetooth speaker and headset working on an
> embedded Linux board but when I failed to use pacmd set-card-profile to
> choose headset_head_unit profile. Checking pulseaudio lof file, it seems
> backend-native cannot connect to SCO socket. Sorry this is a very long mail
> due to debug logs attached

The problem seems to be that connect() fails with "Protocol not
supported". This problem has been reported a few times, but I don't
know how to fix it. It seems like missing functionality in the kernel,
so my guess is that you're missing some bluetooth related driver. If
you get it working somehow, please report back how you did it.

The bluez mailing list might be able to help better.

-- 
Tanu
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Bluetooth Headset Problem with BlueZ-5.38 and Pulseaudio 8.0

2016-08-19 Thread Hieu Le
Hello,

I'm trying to get a SPK-ProHT Bluetooth speaker and headset working on an
embedded Linux board but when I failed to use pacmd set-card-profile to
choose headset_head_unit profile. Checking pulseaudio lof file, it seems
backend-native cannot connect to SCO socket. Sorry this is a very long mail
due to debug logs attached

Here is what I did:
1. Kernel 3.14.27

2. hciconfig
*hci0:   Type: BR/EDR  Bus: UART*
*BD Address: 7C:EC:79:C9:A3:1B  ACL MTU: 1021:6  SCO MTU: 180:4*
*Features page 0: 0xff 0xfe 0x2d 0xfe 0xdb 0xff 0x7b 0x87*
*<3-slot packets> <5-slot packets>   *
**
**
* *
*   *
*   *
**
*   *
*<3-slot EDR ACL> <5-slot EDR ACL>  *
*   *
*  <3-slot EDR eSCO> *
*   *
*  
 *
*   *
*Features page 1: 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00*

3. Start Bluetooth daemon:
*bluetoothd[1821]: Bluetooth daemon 5.38*
*bluetoothd[1821]: src/main.c:parse_config() parsing main.conf*
*bluetoothd[1821]: src/main.c:parse_config() Key file does not have key
'DiscoverableTimeout' in group 'General'*
*bluetoothd[1821]: src/main.c:parse_config() Key file does not have key
'PairableTimeout' in group 'General'*
*bluetoothd[1821]: src/main.c:parse_config() Key file does not have key
'AutoConnectTimeout' in group 'General'*
*bluetoothd[1821]: src/main.c:parse_config() Key file does not have key
'Name' in group 'General'*
*bluetoothd[1821]: src/main.c:parse_config() Key file does not have key
'Class' in group 'General'*
*bluetoothd[1821]: src/main.c:parse_config() Key file does not have key
'DeviceID' in group 'General'*
*bluetoothd[1821]: src/main.c:parse_config() Key file does not have key
'ReverseServiceDiscovery' in group 'General'*
*bluetoothd[1821]: src/adapter.c:adapter_init() sending read version
command*
*bluetoothd[1821]: Starting SDP server*
*bluetoothd[1821]: src/sdpd-service.c:register_device_id() Adding device id
record for 0002:1d6b:0246:0526*
*bluetoothd[1821]: src/plugin.c:plugin_init() Loading builtin plugins*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading hostname plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading wiimote plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading autopair plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading policy plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading neard plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading sap plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading a2dp plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading avrcp plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading network plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading input plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading hog plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading health plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading gap plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading scanparam plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading deviceinfo plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading alert plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading time plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading proximity plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading thermometer plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading heartrate plugin*
*bluetoothd[1821]: src/plugin.c:add_plugin() Loading cyclingspeed plugin*
*bluetoothd[1821]: src/plugin.c:plugin_init() Loading plugins
/usr/lib/bluetooth/plugins*
*bluetoothd[1821]: profiles/health/hdp.c:hdp_manager_start() Starting
Health manager*
*bluetoothd[1821]: profiles/input/suspend-none.c:suspend_init() *
*bluetoothd[1821]: profiles/network/manager.c:read_config()
/etc/bluetooth/network.conf: Key file does not have key 'DisableSecurity'
in group 'General'*
*bluetoothd[1821]: profiles/network/manager.c:read_config() Config options:
Security=true*
*bluetoothd[1821]: plugins/neard.c:neard_init() Setup neard plugin*
*bluetoothd[1821]: Failed to open RFKILL control device*
*bluetoothd[1821]: src/main.c:main() Entering main loop*
*bluetoothd[1821]: Bluetooth management interface 1.4 initialized*
*bluetoothd[1821]: src/adapter.c:read_version_complete() sending read
supported commands command*
*bluetoothd[1821]: src/adapter.c:read_version_complete() sending read index
list command*
*bluetoothd[1821]: src/adapter.c:read_commands_complete() Number of
commands: 42*
*bluetoothd[1821]: src/adapter.c:read_commands_complete() Number of events:
21*
*bluetoothd[1821]: src/adapter.c:read_index_list_complete() Number of
controllers: 1*
*bluetoothd[1821]: src/adapter.c:read_index_list_complete() Found index 0*
*bluetoothd[1821]: src/adapter.c:index_added() index 0*
*bluetoothd[1821]: src/adapter.c:btd_adapter_ne