alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Pradeep Kumar Jilagam <pradeep.jilagam@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Help! Need to switch between normal speaker and BT headset dynamically
Date: Sun, 4 Apr 2010 21:20:23 +0530	[thread overview]
Message-ID: <x2vc731536d1004040850gedb4eee1rccf18941cf25aade@mail.gmail.com> (raw)

Hi,

I am trying to switch the ALSA audio output between default speaker and
BT(BlueTooth) headset.

For this, I have used the bluez stack for the BT headset scanning and
detection. After this, I have updated the .asoundrc file with the
corresponding details(like MAC address of the detected BT headset and the
device type as "pcm.bluetooth"). And finally, I used the aplay utility to
play the file.

This approach works fine but this needs restart of the playback session to
start routing on the BT headset. I am trying for a
solution(application/plugin) that can dynamically set the BT headset as the
default audio output device and start streaming to it automatically as soon
as the BT headset is detected in the middle of audio playback.

Is this possible to do and if yes, is there an ALSA application/plugin
already available for this?

Thanks,
Pradeep

             reply	other threads:[~2010-04-04 15:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-04 15:50 Pradeep Kumar Jilagam [this message]
2010-04-04 19:36 ` Help! Need to switch between normal speaker and BT headset dynamically Daniel Chen
2010-04-06  5:06   ` Pradeep Kumar Jilagam
2010-04-06  8:19     ` Colin Guthrie
  -- strict thread matches above, loose matches on Subject: below --
2010-04-06 11:37 ANISH KUMAR
2010-04-06 14:30 ` Colin Guthrie

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=x2vc731536d1004040850gedb4eee1rccf18941cf25aade@mail.gmail.com \
    --to=pradeep.jilagam@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).