Re: [pulseaudio-discuss] Fwd: Re: Bluetooth Headset Problem #2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

See my answers at the bottom.

On Sun, 9 Oct 2011 22:53:38 +0300, Luiz Augusto von Dentz wrote:
Hi,

On Sun, Oct 9, 2011 at 5:13 PM, Krisztian Kocsis
<krisztian.kocsis@xxxxxxxxxxxxx> wrote:


-------- Original Message --------
Subject:        [pulseaudio-discuss] Fwd: Re: Bluetooth Headset Problem #2
Date:   Sat, 08 Oct 2011 15:52:11 +0200
From:   krisztian.kocsis@xxxxxxxxxxxxx
Reply-To:       General PulseAudio Discussion
<pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx>
To:     <pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx>



Sorry, here are the attachments.

-------- Original Message --------
Subject: Re: Bluetooth Headset Problem
Date: Sat, 08 Oct 2011 14:11:31 +0200
 From: krisztian.kocsis@xxxxxxxxxxxxx
To: Luiz Augusto von Dentz<luiz.dentz@xxxxxxxxx>

Hello!

I didn't help!

Here is who I test it:

- Load kernel (2.6.24.6) modules: bluetooth, hci_usb, l2cap, rfcomm,
sco
- Start bluez (4.96): bluetoothd -d -n (debug, foreground)
- Start simple-agent: simple-agent 0000
- Test device connection with: hcitool cc 00:07:A4:EE:8F:03 (already
paired)
- Start pulseaudio (0.9.23):
LD_LIBRARY_PATH=/afc/lib/pulse-0.9.23/modules /afc/bin/pulseaudio
--system --high-priority --disallow-exit --log-target=stderr
--use-pid-file --disable-shm -vvvvvvv
- Connect to headset: dbus-send --system --print-reply --dest=org.bluez
/org/bluez/2848/hci0/dev_00_07_A4_EE_8F_03 org.bluez.Headset.Connect
(dbus 1.4.14)
- Activate hsp profile: pactl set-card-profile 0 hsp
- Trying to play a WAV: paplay -p -v /afc/tmp/test.wav (hangs at Time:
0.000s)
- Trying to play an MP3 with mpg123 (1.13.3): mpg123 -vvvvv -o pulse
/afc/tmp/armin.mp3 (hangs at frame 6)

Did I miss some commands or actions which are required to play
something on a headset?
I'v attached the config files of bluez and pulseaudio and the logs
also.

What is the audio routing in this system, HCI or PCM directly in the
controller with or without a alsa device? Actually before you do check about that check how it works with a normal Linux distro and a dongle,
that uses HCI routing so the audio is sent/received via socket
interface. Embedded devices normally uses PCM routing which you need
check in the hardware documentation, currently you will need a alsa
device to be able to properly route passing it as argument to
module-device-bluetooth (iirc sco-sink/sco-source).

Again you need to be able to respond what routing settings you
controller uses, otherwise we won't be able to help you.

I tried both HCI and PCM but with the same result.
Note that alsa support is not compiled in because the alsa-lib is quite old (1.0.16). As I know the version of alsa-lib and the version of alsa in kernel must match. I'm trying to avoid using alsa (if it is possible) because of the previous reasons. This device is a cash register on buses but now we have to add some extra features to it. The company (who developed the original system) was provided a prebuilt firmware, kernel and toolchain.
Unfortunately they don't want to upgrade their working kernel.
This is why I'm trying to get a bluetooth headset working on this kernel.

Thanks for the quick reply!

BR,
Krisztian

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux