Skip to contentSkip to conversation

btsco: help with autoconf cleanup

Bluez-devel Brad Midgley 4 participants 9 messages Nov 11, 2004 – Nov 16, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi

Can someone tell me which of these files shouldn't be in our btsco cvs module?

acinclude.m4
aclocal.m4
config.status
configure
configure.in
Makefile
Makefile.am
Makefile.in
missing
mkinstalldirs

I know some projects even make you generate "configure" but I'm not sure I want to go that far.

btw, I added a sort of placeholder "a2play.c" to the project for sending preencoded audio to an a2dp player. I want to make sure our autoconf mess is cleaned up before putting it in the build.

Brad

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Brad,

Quoted 14 lines

Can someone tell me which of these files shouldn't be in our btsco cvs module?

acinclude.m4
aclocal.m4
config.status
configure
configure.in
Makefile
Makefile.am
Makefile.in
missing
mkinstalldirs

Quoted 2 lines

I know some projects even make you generate "configure" but I'm not sure I want to go that far.

look at the BlueZ libs and utils CVS repository. I spent quite some time to clean up this autoconf/automake mess. Basically what I do is:

	./bootstrap
	./configure
	make
	==> modify files, compile again, test etc.
	make maintainer-clean

This keeps your CVS repository clean.

Quoted 3 lines

btw, I added a sort of placeholder "a2play.c" to the project for sending preencoded audio to an a2dp player. I want to make sure our autoconf mess is cleaned up before putting it in the build.

This is great. Does it work for you already. Do you hear any sound?

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

#2 lore raw

Marcel,

Quoted 1 line

look at the BlueZ libs and utils CVS repository.

...

Quoted 1 line

This keeps your CVS repository clean.

ok, thanks.

Quoted 4 lines
Quoted 1 line

btw, I added a sort of placeholder "a2play.c" to the project for sending preencoded audio to an a2dp player. I want to make sure our autoconf mess is cleaned up before putting it in the build.

This is great. Does it work for you already. Do you hear any sound?

no, it's pretty early yet.

what do you suggest for packing bits together in a portable way before putting them on the wire? is there some code somewhere that you can point to that works in userspace?

brad

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

maintainer
#3 lore raw

Hi Brad,

Quoted 11 lines
Quoted 5 lines
Quoted 3 lines

btw, I added a sort of placeholder "a2play.c" to the project for sending preencoded audio to an a2dp player. I want to make sure our autoconf mess is cleaned up before putting it in the build.

This is great. Does it work for you already. Do you hear any sound?

no, it's pretty early yet.

what do you suggest for packing bits together in a portable way before putting them on the wire? is there some code somewhere that you can point to that works in userspace?

actually I don't understand this question. Please explain to me what do you wanna know.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

#4 lore raw

Marcel

Quoted 5 lines
Quoted 1 line

what do you suggest for packing bits together in a portable way before putting them on the wire? is there some code somewhere that you can point to that works in userspace?

actually I don't understand this question. Please explain to me what do you wanna know.

Yeah, I guess I just needed to read up more.

I'm going to be assembling parts of frames like the media packet header. I started looking at l2cap_build_cmd to see how you do it in kernel space. I see htobs() is the equivalent of __cpu_to_le16 for 16-bit values and I see the __attribute__ ((packed)) directives that result in a packed struct that can be copied byte for byte into the buffer. I think I'm good to go.

I'll probably be running the naming for some of the structures and members by you to see if they're ok to eventually go into the bluetooth headers.

Brad

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

maintainer
#5 lore raw

Hi Brad,

Quoted 16 lines
Quoted 6 lines
Quoted 3 lines

what do you suggest for packing bits together in a portable way before putting them on the wire? is there some code somewhere that you can point to that works in userspace?

actually I don't understand this question. Please explain to me what do you wanna know.

Yeah, I guess I just needed to read up more.

I'm going to be assembling parts of frames like the media packet header. I started looking at l2cap_build_cmd to see how you do it in kernel space. I see htobs() is the equivalent of __cpu_to_le16 for 16-bit values and I see the __attribute__ ((packed)) directives that result in a packed struct that can be copied byte for byte into the buffer. I think I'm good to go.

Quoted 3 lines

I'll probably be running the naming for some of the structures and members by you to see if they're ok to eventually go into the bluetooth headers.

please don't think about any kernel part at this time. It is not the time to do any kernel work. The l2cap_build_cmd() is by the way the wrong place to look at, because AVDTP is L2CAP payload.

If we get a program that can play pre-encoded SBC files on an A2DP headphone then this is a good start. This program should be in userspace first so we can learn through it. Remember that RFCOMM and HID were implemented both in userspace first, before we did the kernel version.

After this is working, we need a subband codec implementation for the ALSA library and then we should really start doing the kernel version of the AVDTP. I don't wanna scare you, but it must look like the RFCOMM one. It needs to do its own L2CAP connection setup.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

#6 lore raw
In reply to Brad Midgley
Quoted 16 lines · Brad Midgley

Hi

Can someone tell me which of these files shouldn't be in our btsco cvs module?

acinclude.m4
aclocal.m4
config.status
configure
configure.in
Makefile
Makefile.am
Makefile.in
missing
mkinstalldirs

Quoted 2 lines

I know some projects even make you generate "configure" but I'm not sure I want to go that far.

Since you ask for opinions... all but 'Makefile' should be printed out and ritually burned. Just write a proper Makefile. :)

Does btsco work only with headsets or should it also work with mobile phones?

Signature · 13 lines
dwmw2



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel
#7 lore raw

David

Quoted 2 lines

Does btsco work only with headsets or should it also work with mobile phones?

no, btsco doesn't but bluez could. I've added this answer and a link to our page at http://bluetooth-alsa.sourceforge.net/

brad

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

#8 lore raw

you might want to look at
http://www.soft.uni-linz.ac.at/_wiki/tiki-index.php?page=3DProjectBluezHa=
ndsfree
that should do what you are looking for...
simon

Quoted 12 lines · Brad Midgley

David

Quoted 2 lines

Does btsco work only with headsets or should it also work with mobile phones?

no, btsco doesn't but bluez could. I've added this answer and a link=20 to our page at http://bluetooth-alsa.sourceforge.net/

brad

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez=

-devel=20

Quoted 1 line

--=20
_______________________________________________________________________
Dr. Simon Vogl
Institut f=FCr Pervasive Computing, Johannes Kepler Universit=E4t Linz =20 Altenberger Stra=DFe 69, A-4040 Linz, Austria =20
=20
Tel: +43 732 2468-8517, Fax: +43 732 2468-8426 =20
mailto: [email protected], http://www.soft.uni-linz.ac.at/

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel