[Gta04-owner] current state of bluetooth headset support in QtMoKo

Sebastian Reinhardt snr at lmv-hartmannsdorf.de
Wed May 14 00:22:36 CEST 2014


Am 13.05.2014 12:16, schrieb Sebastian Reinhardt:
> Am 13.05.2014 09:18, schrieb Christ van Willegen:
>> On Tue, May 13, 2014 at 9:03 AM, Radek Polak <psonek2 at seznam.cz> wrote:
>>>> I discussed this a while back. Apparently, a kernel hack was needed on
>>>> the GTA02 to get BT audio working. AFAIK a BT headset can not be used
>>>> in QtMoko to do phone calls etc.
>>> A2DP should work on both GTA02 and GTA04. The kernel hack on GTA02 
>>> is only
>>> for phone calls. On GTA04 i never tried phone calls with bluetooth
>>> headset...
>> They don't work...
>>
>> Christ van Willegen
> Hi,
>
> Yes, unfortunately only the buttons are working! No voice/ sound routing.
>
OK, I googled a little bit (search for:"debian bluetooth headset howto 
bluez 4.99"):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663955#10
-----------snip------------------
Try addding following into [General] section of /etc/bluetooth/audio.conf

Disable=Media
Enable=Socket

-----------snap------------------

So I added this into "/etc/default/bluetooth" and paired my Sennheiser 
VMX400 headset and connect it with "handsfree -profile/ button" in 
QtMokos Bluetooth-GUI.
Now I am able to hear ringing and I can take/ end incoming calls by 
pressing headset button. But I can not hear any audio (no speaker/ micro).

The "hcitool con" shows:
-----------snip------------------
root at snrgta04:~# hcitool con
Connections:
         < eSCO xx:16:94:0C:70:xx handle 46 state 1 lm SLAVE
         < ACL xx:16:94:0C:70:xx handle 43 state 1 lm MASTER AUTH ENCRYPT
-----------snap------------------

If I try to play anything with "mplayer" or "aplay":

-----------snip------------------
mplayer /home/root/Documents/audio/x-wav/NIMClick.wav
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote 
control.

Playing /home/root/Documents/audio/x-wav/NIMClick.wav.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
Audio only file format detected.
Load subtitles in /home/root/Documents/audio/x-wav/
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 22050 Hz, 1 ch, s16le, 352.8 kbit/100.00% (ratio: 44100->44100)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM bluetooth
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 22050Hz Channels: Mono Format s16le
[AO SDL] using aalib audio driver.
[AO SDL] Unable to open audio: No available audio device
Failed to initialize audio driver 'sdl:aalib'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)

------------------------------------------
  aplay /home/root/Documents/audio/x-wav/NIMClick.wav
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM bluetooth
aplay: main:682: audio open error: No such file or directory

-----------snap------------------

I also tried this HowTo:

https://wiki.debian.org/Bluetooth/Alsa

I placed a ".asoundrc" in my homedir, but no luck.


And something seems to go wrong in disconnecting the headset:
---------------/var/log/messages-------------------------
May 14 00:16:11 snrgta04 kernel: [135603.268829] Modules linked in: 
ipt_REJECT iptable_filter ip_tables ip6t_REJECT xt_tcpudp 
ip6table_filter ip6_tables x_tables rfcomm bnep hci_uart bluetooth ipv6 
g_ether libcomposite hso itg3200(PC) ov9655 libertas_sdio omap3_isp 
libertas omap_iovmm v4l2_common cfg80211 videodev media
May 14 00:16:11 snrgta04 kernel: [135603.295562] CPU: 0    Tainted: 
P         C    (3.7.0-offmode-gta04 #596)
May 14 00:16:11 snrgta04 kernel: [135603.302703] PC is at 
detach_if_pending+0x18/0x74
May 14 00:16:11 snrgta04 kernel: [135603.307678] LR is at 
del_timer+0x38/0x74
May 14 00:16:11 snrgta04 kernel: [135603.311889] pc : [<c0037468>]    lr 
: [<c0037570>]    psr: 20000093
May 14 00:16:11 snrgta04 kernel: [135603.311889] sp : ddb1fed0  ip : 
001cbecc  fp : 00000000
May 14 00:16:11 snrgta04 kernel: [135603.324127] r10: 00000000  r9 : 
00000000  r8 : 00000067
May 14 00:16:11 snrgta04 kernel: [135603.329742] r7 : ddb1e000  r6 : 
dda93800  r5 : ddb269c0  r4 : de646508
May 14 00:16:11 snrgta04 kernel: [135603.336669] r3 : 001cbecc  r2 : 
00000001  r1 : 00000134  r0 : de646508
May 14 00:16:11 snrgta04 kernel: [135603.343627] Flags: nzCv  IRQs off  
FIQs on  Mode SVC_32  ISA ARM  Segment user
May 14 00:16:11 snrgta04 kernel: [135603.351318] Control: 10c5387d 
Table: 9dac8019  DAC: 00000015
May 14 00:16:11 snrgta04 kernel: [135603.455566] [<c0037468>] 
(detach_if_pending+0x18/0x74) from [<c0037570>] (del_timer+0x38/0x74)
May 14 00:16:11 snrgta04 kernel: [135603.464752] [<c0037570>] 
(del_timer+0x38/0x74) from [<c037ae94>] (sk_stop_timer+0x1c/0x40)
May 14 00:16:11 snrgta04 kernel: [135603.473815] [<c037ae94>] 
(sk_stop_timer+0x1c/0x40) from [<bf207428>] (sco_conn_del+0x4c/0x180 
[bluetooth])
May 14 00:16:11 snrgta04 kernel: [135603.484374] [<bf207428>] 
(sco_conn_del+0x4c/0x180 [bluetooth]) from [<bf1ec3d0>] 
(hci_conn_hash_flush+0x5c/0xa0 [bluetooth])
May 14 00:16:11 snrgta04 kernel: [135603.496459] [<bf1ec3d0>] 
(hci_conn_hash_flush+0x5c/0xa0 [bluetooth]) from [<bf1e81a0>] 
(hci_dev_do_close+0x128/0x2b4 [bluetooth])
May 14 00:16:11 snrgta04 kernel: [135603.509002] [<bf1e81a0>] 
(hci_dev_do_close+0x128/0x2b4 [bluetooth]) from [<bf1e833c>] 
(hci_rfkill_set_block+0x10/0x18 [bluetooth])
May 14 00:16:11 snrgta04 kernel: [135603.521545] [<bf1e833c>] 
(hci_rfkill_set_block+0x10/0x18 [bluetooth]) from [<c040403c>] 
(rfkill_set_block+0xc8/0x178)
May 14 00:16:11 snrgta04 kernel: [135603.532836] [<c040403c>] 
(rfkill_set_block+0xc8/0x178) from [<c0404220>] 
(rfkill_fop_write+0x134/0x170)
May 14 00:16:11 snrgta04 kernel: [135603.542816] [<c0404220>] 
(rfkill_fop_write+0x134/0x170) from [<c00aa20c>] (vfs_write+0xb0/0x178)
May 14 00:16:11 snrgta04 kernel: [135603.552185] [<c00aa20c>] 
(vfs_write+0xb0/0x178) from [<c00aa4e4>] (sys_write+0x3c/0x60)
May 14 00:16:11 snrgta04 kernel: [135603.560699] [<c00aa4e4>] 
(sys_write+0x3c/0x60) from [<c000d900>] (ret_fast_syscall+0x0/0x30)
May 14 00:16:11 snrgta04 kernel: [135603.576171] ---[ end trace 
c4b1b91565c99947 ]---
May 14 00:16:11 snrgta04 kernel: [135603.581146] note: rfkill[3335] 
exited with preempt_count 2
---------------/var/log/messages-------------------------

The QtMoko-GUI is showing the headset disconnected, but if I like to 
switch off bluetooth an warning message is shown, that a device is still 
connected.
"hcitool con" is still giving this output:
-----------snip------------------
  hcitool con
Connections:
         < ACL 00:16:94:0C:70:F2 handle 42 state 1 lm MASTER AUTH ENCRYPT
         < eSCO 00:16:94:0C:70:F2 handle 0 state 5 lm SLAVE
-----------snap------------------

And now? How did You get A2DP working, Radek?

-- 
Kind regards

Sebastian Reinhardt



More information about the Gta04-owner mailing list