public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Brad Midgley <bmidgley@xmission.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] a2dp from the ground up
Date: Wed, 11 Oct 2006 23:00:34 -0600	[thread overview]
Message-ID: <452DCBF2.9010806@xmission.com> (raw)

Hey

My notes I wrote up as I got the a2dp plugin running on a blank ubuntu
machine are here. I will be putting these in the new docs (and hopefully
the new docs can make the sco alsa plugin the place to start for sco)

Any idea why I had to change the pin helper before things would pair? Is
that a common problem?

=======================================================================

btsco from the ground up

get ubuntu/debian packages:

apt-get install build-essential libbluetooth2-dev automake autoconf cvs
libtoolize libasound2-dev xmms

get & install libsbc:

cvs -d:pserver:anonymous@sbc.cvs.sourceforge.net:/cvsroot/sbc login
cvs -d:pserver:anonymous@sbc.cvs.sourceforge.net:/cvsroot/sbc co sbc
cd sbc
./bootstrap
./configure --prefix=/usr
make
sudo make install

get btsco:
cvs -d:pserver:anonymous@btsco.cvs.sourceforge.net:/cvsroot/btsco login
cvs -d:pserver:anonymous@btsco.cvs.sourceforge.net:/cvsroot/btsco co btsco
./bootstrap
./configure --prefix=/usr --enable-alsaplugin
make
sudo make install

cp alsa-plugins/sample.a2dprc ~/.a2dprc

edit ~/.a2dprc to contain the address of your headset on the address= line.

create ~/.asoundrc with simply:

pcm.a2dpd {
        type a2dpd
}

run xmms, go to prefs (control-p), change output to alsa, click
configure, change device from
 default
to
 a2dpd
and click [use software volume control]

If this is a combo headset, just turn off the phone it's going to try to
connect with first! (You can tinker with multiple connections later but
keep it simple for starters)

Turn the headset on in pair mode.

Run a2dpd:
 a2dpd

and hit play in xmms. On the first connect, you should get a popup
asking for the pin. Then audio should start.

If your set can do AVRCP, it will be set up to do track
advance/pause/stop/play through xmms command-line control.

Troubleshooting

If you get all kinds of connection refused errors from a2dpd, you may
have to change pin_helper in /etc/bluetooth/hcid.conf:

pin_helper /usr/bin/bluez-pin;

and reboot or run
 /etc/init.d/bluez-utils restart

Brad

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

                 reply	other threads:[~2006-10-12  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=452DCBF2.9010806@xmission.com \
    --to=bmidgley@xmission.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /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