linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: krisztian.kocsis@optimaster.eu
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: <linux-bluetooth@vger.kernel.org>
Subject: Re: [pulseaudio-discuss] Fwd: Re: Bluetooth Headset Problem #2
Date: Mon, 10 Oct 2011 09:11:25 +0200	[thread overview]
Message-ID: <26396cb9b2920713388bd1dcf6fa23f9@optimaster.eu> (raw)
In-Reply-To: <CABBYNZ+UU_ADSYscvzr2g5n+u55JF0qf5ksxEs_hn7s3B+-8ZA@mail.gmail.com>

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@optimaster.eu> wrote:
>>
>>
>> -------- Original Message --------
>> Subject:        [pulseaudio-discuss] Fwd: Re: Bluetooth Headset 
>> Problem #2
>> Date:   Sat, 08 Oct 2011 15:52:11 +0200
>> From:   krisztian.kocsis@optimaster.eu
>> Reply-To:       General PulseAudio Discussion
>> <pulseaudio-discuss@lists.freedesktop.org>
>> To:     <pulseaudio-discuss@lists.freedesktop.org>
>>
>>
>>
>> Sorry, here are the attachments.
>>
>> -------- Original Message --------
>> Subject: Re: Bluetooth Headset Problem
>> Date: Sat, 08 Oct 2011 14:11:31 +0200
>>  From: krisztian.kocsis@optimaster.eu
>> To: Luiz Augusto von Dentz<luiz.dentz@gmail.com>
>>
>> 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


      reply	other threads:[~2011-10-10  7:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bf39f3bbabbfb3881523f71163d1359b@optimaster.eu>
2011-10-09 14:13 ` Fwd: [pulseaudio-discuss] Fwd: Re: Bluetooth Headset Problem #2 Krisztian Kocsis
2011-10-09 19:53   ` Luiz Augusto von Dentz
2011-10-10  7:11     ` krisztian.kocsis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26396cb9b2920713388bd1dcf6fa23f9@optimaster.eu \
    --to=krisztian.kocsis@optimaster.eu \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).