All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] can you use bluetooth alsa to let bt device use computer speakers as output?
@ 2007-02-14  7:16 John H.
  2007-02-14 15:56 ` Brad Midgley
  0 siblings, 1 reply; 5+ messages in thread
From: John H. @ 2007-02-14  7:16 UTC (permalink / raw)
  To: Bluez-devel

My moto Q can use a bluetooth headset for stereo music listening.  Can
I tell bluez to allow my speakers to act as such a headset?  If so,
how?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] can you use bluetooth alsa to let bt device use computer speakers as output?
  2007-02-14  7:16 [Bluez-devel] can you use bluetooth alsa to let bt device use computer speakers as output? John H.
@ 2007-02-14 15:56 ` Brad Midgley
  2007-02-15  8:30   ` John H.
  0 siblings, 1 reply; 5+ messages in thread
From: Brad Midgley @ 2007-02-14 15:56 UTC (permalink / raw)
  To: BlueZ development

John

> My moto Q can use a bluetooth headset for stereo music listening.  Can
> I tell bluez to allow my speakers to act as such a headset?  If so,
> how?

open http://bluetooth-alsa.sourceforge.net/build.html (see the legacy
drivers section and "the a2dp sink code" specifically)

brad

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] can you use bluetooth alsa to let bt device use computer speakers as output?
  2007-02-14 15:56 ` Brad Midgley
@ 2007-02-15  8:30   ` John H.
  2007-02-15 15:34     ` Brad Midgley
  0 siblings, 1 reply; 5+ messages in thread
From: John H. @ 2007-02-15  8:30 UTC (permalink / raw)
  To: BlueZ development

I am confused, I Can't use plugz and have to use btsco???

I don't even see these binaries after installing btsco, like a2play

Legacy Stereo (A2DP) Testing
Only developers should need to use this testing code. The A2DP plugin
work is mature enough to use directly.

A2DP provides a way to send stereo high-quality audio to some of the
newer headsets. On all the headsets I've seen so far, this is one-way
audio, so if you were expecting to get something like a gaming headset
(talking to other players, getting stereo sound back from the game),
you should wait for the next generation of headsets to get 2-way A2DP.

This code is found only in the "btsco" package.

To test stereo audio without installing the alsa plugin, you can run:

	mpg123 --au - file.mp3 | ./a2play 00:0D:3C:30:32:AD

Where you replace file.mp3 with a good mp3 file and bdaddr with the
address of your headset. You can send live audio from line-in etc
using a command like:

	./a2play -s -d -r 44100 00:0D:3C:30:32:AD /dev/dsp

Don't be surprised to get a delay. It's probably under 500ms but not
much under that.

The A2DP sink code receives a stream from another device. Run it with:

        hciconfig hci0 class 0x200404
	sdptool add A2SNK
	./a2recv

It will try to bind to the bluetooth adapter and send audio out to /dev/dsp.

On 2/14/07, Brad Midgley <bmidgley@xmission.com> wrote:
> John
>
> > My moto Q can use a bluetooth headset for stereo music listening.  Can
> > I tell bluez to allow my speakers to act as such a headset?  If so,
> > how?
>
> open http://bluetooth-alsa.sourceforge.net/build.html (see the legacy
> drivers section and "the a2dp sink code" specifically)
>
> brad
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] can you use bluetooth alsa to let bt device use computer speakers as output?
  2007-02-15  8:30   ` John H.
@ 2007-02-15 15:34     ` Brad Midgley
  2007-02-15 16:15       ` John H.
  0 siblings, 1 reply; 5+ messages in thread
From: Brad Midgley @ 2007-02-15 15:34 UTC (permalink / raw)
  To: BlueZ development

John

> I am confused, I Can't use plugz and have to use btsco???

I didn't carry forward all the junk in btsco when I created plugz, but
the a2dp sink maybe should be brought forward. It is relatively clean
and there is not an equivalent plugin for what it does.

> I don't even see these binaries after installing btsco, like a2play

make install doesn't install a2recv or a2play. the idea was that they
are developer test apps.

if you do play with a2recv, note that at least one a2dp source insists
we do a role switch before it will work and at least one other fails to
work right if we do. :(

clearly the hci_switch_role call should be a conditioned on a
command-line argument. for now you can run it as root and then as a
regular user since the user isn't allowed to do the switch.

Brad

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] can you use bluetooth alsa to let bt device use computer speakers as output?
  2007-02-15 15:34     ` Brad Midgley
@ 2007-02-15 16:15       ` John H.
  0 siblings, 0 replies; 5+ messages in thread
From: John H. @ 2007-02-15 16:15 UTC (permalink / raw)
  To: BlueZ development

so as of now, with just plugz, can i do what i was speaking of?

On 2/15/07, Brad Midgley <bmidgley@xmission.com> wrote:
> John
>
> > I am confused, I Can't use plugz and have to use btsco???
>
> I didn't carry forward all the junk in btsco when I created plugz, but
> the a2dp sink maybe should be brought forward. It is relatively clean
> and there is not an equivalent plugin for what it does.
>
> > I don't even see these binaries after installing btsco, like a2play
>
> make install doesn't install a2recv or a2play. the idea was that they
> are developer test apps.
>
> if you do play with a2recv, note that at least one a2dp source insists
> we do a role switch before it will work and at least one other fails to
> work right if we do. :(
>
> clearly the hci_switch_role call should be a conditioned on a
> command-line argument. for now you can run it as root and then as a
> regular user since the user isn't allowed to do the switch.
>
> Brad
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2007-02-15 16:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14  7:16 [Bluez-devel] can you use bluetooth alsa to let bt device use computer speakers as output? John H.
2007-02-14 15:56 ` Brad Midgley
2007-02-15  8:30   ` John H.
2007-02-15 15:34     ` Brad Midgley
2007-02-15 16:15       ` John H.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.