alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Help! Need to switch between normal speaker and BT headset dynamically
@ 2010-04-04 15:50 Pradeep Kumar Jilagam
  2010-04-04 19:36 ` Daniel Chen
  0 siblings, 1 reply; 6+ messages in thread
From: Pradeep Kumar Jilagam @ 2010-04-04 15:50 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Help! Need to switch between normal speaker and BT headset dynamically
@ 2010-04-06 11:37 ANISH KUMAR
  2010-04-06 14:30 ` Colin Guthrie
  0 siblings, 1 reply; 6+ messages in thread
From: ANISH KUMAR @ 2010-04-06 11:37 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org; +Cc: maniyar, gmane

As my question is related to the query what pradeep is asking and mark brown also suggested to me to use PA.
I have some additional questions regarding PA which i would like to clarify before starting:

1.Does PA have good resampler code if my hardware doesn't support resampling?

I have a system where we are using ALSA as the base and on top(application side) of it there is a thread running which 
is pumping data and this thread is started by java code.Combination of LINUX+JAVA.
This thread can perform these tasks:
1.Resampling for some rates.
2.Talking to PV framework to get the decoded PCM data and pumping audio data to alsa.
3.Routing support using asound.conf file.
Can i replace this thread with PA by writing some wrapper over PA??
What extra features PA is going to provide additionally if i start using PA other than what is listed above??As i know 
PA is kind of sound deamon which my thread is not.

Is there any good resampler code which i can use without any licensing problem  and which can be 
easily integrated???

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-06 14:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-04 15:50 Help! Need to switch between normal speaker and BT headset dynamically Pradeep Kumar Jilagam
2010-04-04 19:36 ` 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

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).