2006-08-23 16:55:19

by Frédéric DALLEAU

[permalink] [raw]
Subject: [Bluez-devel] Small patch to a2dpd

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


Attachments:
a2dpd.patch (20.24 kB)
(No filename) (373.00 B)
(No filename) (164.00 B)
Download all attachments

2006-08-30 14:45:06

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-devel] Small patch to a2dpd

Fr=E9d=E9ric

> Latest patch : Default daemon logfile is /dev/null. Try to open an l2cap
> socket with short timeout before doing sdp_connect that can last very
> long. Also a script called a2dpair that wrap hcitool and passkey-agent
> as an effort to simplify pairing and a2dpd setup :D
> What about Matthew's patches? I plan to move to getopt and cleanup
> indent and traces so having them integrated first would be better as
> there are new options.

I looked over Matthew's patches and applied them. I applied your "small
patch" which turns out to be bigger than it sounds :)

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 easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-24 08:44:31

by Frédéric DALLEAU

[permalink] [raw]
Subject: Re: [Bluez-devel] Small patch to a2dpd


>> What about Matthew's patches?
>> =

>
> Maybe I missed this. What are his changes?
>
> =

see
http://sourceforge.net/mailarchive/forum.php?thread_id=3D30260835&forum_id=
=3D1881
http://sourceforge.net/mailarchive/forum.php?thread_id=3D30262307&forum_id=
=3D1881
Fr=E9d=E9ric



-------------------------------------------------------------------------
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 easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-23 17:53:01

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-devel] Small patch to a2dpd

Fr=E9d=E9ric

> What about Matthew's patches?

Maybe I missed this. What are his changes?

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 easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-02 17:01:44

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-devel] Big patch to a2dpd

hey

> argh... another problem...
>
> when I just sent that last message via wifi while streaming with xmms,
> the audio turned choppy (works for 1s, silence for 1s, repeat) and it
> never started working again even after no wifi activity :(

whoops... not sure if this is better or worse.

what actually happened is my wifi stopped working during the a2dp
streaming. so the computer demand-dialed using my cellphone over
bluetooth and that's when the trouble started. so maybe it would have
recovered once the dun connection was closed.

my r35 is a combo hfp/hsp so it does like to be master and doesn't like
scatternetting. funny if you think about it... the network was a
fully-connected triangle between the three devices when the audio was
breaking up.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-02 16:08:41

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-devel] Big patch to a2dpd

argh... another problem...

when I just sent that last message via wifi while streaming with xmms,
the audio turned choppy (works for 1s, silence for 1s, repeat) and it
never started working again even after no wifi activity :(

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-02 16:05:35

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-devel] Big patch to a2dpd

Fr=E9d=E9ric

thanks for the continued work.

> This one is more than bigger!
> Reindent,
> Alsa output redirection,
> New on-the-fly in-play switch from bt to alsa and reverse
> Changing bdaddr in play too.
> More options described in sample.a2dprc

a few problems:

It only works if the bdaddr is specified in .asoundrc (the old way) as
well as in .a2dprc. Specifying it on the a2dpd command line does not
seem to help.

Audio only came out the left speaker using my itech r35 black set. (My
other sets are up at work)

How do you switch on the fly to wired audio?

> Wrote a doc : http://fdalleau.free.fr/a2dp_doc.pdf ideas welcome!

Could we contribute this stuff to a wiki? I actually have the feeling
that no one of us understands the whole picture. I have an account on
the ubuntu wiki but a better one for our purposes would have no
association with a specific distro...

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 easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-01 18:25:40

by Michael Frey

[permalink] [raw]
Subject: Re: [Bluez-devel] Big patch to a2dpd

Is there a way to have a2dpd use the alsa dmixer? And does anyone =

know how to change the default alsa device on the fly. I know you =

can change .asoundrc but any running applications need to be =

restarted in order to pick up the change. Is there a better way?

Michael

On Sep 1, 2006, at 8:57 AM, [email protected] wrote:

> Hi Fr=E9d=E9ric,
>
> Whoo some patch cant wait to give it a whirl..
>
> On the subject of your DOC nice work very concise
>
> You might like to add
> ------------------
> If you create an ~.asoundrc as follows
>
> pcm.a2dpd {
> type a2dpd
> }
>
> Then you can directly add the headphone device (pcm.a2dpd) to any =

> app that
> supports alsa plugins correctly, Without affecting the default =

> Gnome/X/KDE
> sounds
>
> Known working Apps
>
> Xmms
> alsaplayer
> VLC (you have to manualy add it to the conf file as the gui wont allow
> adding non visible plugins (bug)).
>
> cheers Andy
> --------------------------------------
> Hi Brad,
>>>
>>> I looked over Matthew's patches and applied them. I applied your =

>>> "small
>>> patch" which turns out to be bigger than it sounds :)
>>>
>> This one is more than bigger!
>> Reindent,
>> Alsa output redirection,
>> New on-the-fly in-play switch from bt to alsa and reverse
>> Changing bdaddr in play too.
>> More options described in sample.a2dprc
>>
>> I removed the line LIBS=3D from Makefile.am as suggested. This line was
>> making tons of compilation problems. As a2dpd finally links to =

>> alsa, it
>> is no longer needed.
>> Please give it a try before submitting (Matthew and RUI if you =

>> read that).
>>
>> Wrote a doc : http://fdalleau.free.fr/a2dp_doc.pdf ideas welcome!
>>
>> Fr=E9d=E9ric
>>
>>
>
>
>
> ---------------------------------------------------------------------- =

> ---
> 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642
> _______________________________________________
> Bluez-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------------------------
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 easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-01 12:57:36

by Andrew Waldram

[permalink] [raw]
Subject: Re: [Bluez-devel] Big patch to a2dpd

Hi Fr=E9d=E9ric,

Whoo some patch cant wait to give it a whirl..

On the subject of your DOC nice work very concise

You might like to add
------------------
If you create an ~.asoundrc as follows

pcm.a2dpd {
type a2dpd
}

Then you can directly add the headphone device (pcm.a2dpd) to any app that
supports alsa plugins correctly, Without affecting the default Gnome/X/KDE
sounds

Known working Apps

Xmms
alsaplayer
VLC (you have to manualy add it to the conf file as the gui wont allow
adding non visible plugins (bug)).

cheers Andy
--------------------------------------
Hi Brad,
>>
>> I looked over Matthew's patches and applied them. I applied your "small
>> patch" which turns out to be bigger than it sounds :)
>>
> This one is more than bigger!
> Reindent,
> Alsa output redirection,
> New on-the-fly in-play switch from bt to alsa and reverse
> Changing bdaddr in play too.
> More options described in sample.a2dprc
>
> I removed the line LIBS=3D from Makefile.am as suggested. This line was
> making tons of compilation problems. As a2dpd finally links to alsa, it
> is no longer needed.
> Please give it a try before submitting (Matthew and RUI if you read that).
>
> Wrote a doc : http://fdalleau.free.fr/a2dp_doc.pdf ideas welcome!
>
> Fr=E9d=E9ric
>
>



-------------------------------------------------------------------------
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 easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel