public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: "Matuschka, Sebastian" <Sebastian.Matuschka@gcd-solutions.de>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: How can i configure bluez to transmit Voice over PCM
Date: Sun, 01 Feb 2009 17:52:05 +0100	[thread overview]
Message-ID: <1233507125.4809.2.camel@californication> (raw)
In-Reply-To: <49ED01FC03EE524BB7BB258E8F93BFF32F3DB5@bfl-exchange-1.BFL.local>

Hi Sebastian,

> i'm using bluez 3.36 on an embedded system with a CSR Chip connected.
> Communication via HCI over UART works well. I need to receive and send
> voice from/to a headset and therefore I want to send/get the voice as
> PCM to the CSR chip. The PCM pins of the CSR Chip are connected to the
> SSC pins of an avr32 microcontroller. The CSR chip is configured to use
> PCM as soon as the Host produces Clock, otherwise it tries to transmit
> voice per HCI which is too slow (only 115200 baudrate for a 8kHz PCM
> stream).
> In etc/bluetooth/audio.conf I have set SCORouting=PCM
> In etc/Bluetooth/asound.conf I have written the following:
> #####################
> pcm.headset {
> 	type bluetooth
> }
> ctl.headset {
> 	type bluetooth
> }
> #####################
> But bluez is still sending voice over HCI, which is ok because: How
> should it know where to transmit the PCM stream. I need a device but I
> am not sure what exactly is needed.
> Do I have to write a dummy soundcard driver which only sends and
> receives pcm over the ssc pins? I guess a pseudo UART device for SSC
> isn't enough because bluez needs an alsa device, correct?
> 
> For a quick and dirty solution: Is it possible to let bluez reduce the
> soundquality so it works over HCI any way?
> 
> Are my settings correct or have I missed something?

I would really advise you to start using 4.27 instead of a previous
major version that is not developed.

Also when using PCM for SCO then you need to use the D-Bus API for
headsets and not the ALSA plugin.

Regards

Marcel



  reply	other threads:[~2009-02-01 16:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-30 10:39 How can i configure bluez to transmit Voice over PCM Matuschka, Sebastian
2009-02-01 16:52 ` Marcel Holtmann [this message]
2009-02-02  7:31   ` Matuschka, Sebastian
2009-02-02  8:58     ` Marcel Holtmann
2009-02-02 16:23       ` Matuschka, Sebastian
2009-02-03  1:40         ` Yao Ye
2009-02-03  7:34           ` Matuschka, Sebastian
2009-02-03  7:56   ` Matuschka, Sebastian

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=1233507125.4809.2.camel@californication \
    --to=marcel@holtmann.org \
    --cc=Sebastian.Matuschka@gcd-solutions.de \
    --cc=linux-bluetooth@vger.kernel.org \
    /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