alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Fabrice DELENTE <delentef@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Bluetooth: alsa says connection refused?
Date: Fri, 17 Feb 2012 20:20:42 +0100	[thread overview]
Message-ID: <20120217192042.GA15631@smtp.free.fr> (raw)

Hello.

I have a bluetooth headset that I have successfully used with a cell
phone and an Android tablet, and that I could use in Ubuntu on a
friend's machine.

I'd like to use it with mplayer on my laptop (under Slackware 13.37).

I have the BT address, and the test-audio script in bluez-4.98/test
works (at least, I hear two beeps in the headphone, and hcitool con
shows

# hcitool con
Connections:
< ACL 00:18:91:D0:7A:24 handle 42 state 1 lm MASTER AUTH ENCRYPT

so I guess it is possible to connnect to the device. However, if I try
hcitool cc $HEADSET, the connection is closed immediately...)

I created an ~/.asoundrc with:

pcm.btheadset {
type plug
slave {
pcm {
type bluetooth
device "00:18:91:D0:7A:24"
profile "auto"
}
}
hint {
show on
description "BlueTooth Halterrego H.EAR 01 Headset"
}
}
ctl.btheadset {
type bluetooth
}

but when I try to use it with mplayer:

# mplayer -ao alsa:device=btheadset file.mp3

I get

bt_audio_service_open: connect() failed: Connection refused (111)
[AO_ALSA] Playback open error: Connection refused
Failed to initialize audio driver 'alsa:device=btheadset'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)

What did I miss? (I recompiled bluez with support for alsa and alsa
with support for bluetooth)

Thanks! 

-- 
F. Delente

                 reply	other threads:[~2012-02-17 19:20 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=20120217192042.GA15631@smtp.free.fr \
    --to=delentef@gmail.com \
    --cc=alsa-devel@alsa-project.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;
as well as URLs for NNTP newsgroup(s).