Skip to contentSkip to conversation

alsa-lib plugin for bluetooth

PATCH Brad Midgley 2 participants 2 messages Nov 29, 2004

lore
Share & tools
lore
#0 lore raw

Hi

I am working on the bluetooth-alsa project.

I want to try moving our code out of kernel space and I've looked at the jack plugin. It's a little confusing.

Is there a blow-by-blow somewhere to explain how to get asound configured and running with the jack plugin?

To start with, I will create a plugin that consumes writes and produces a square wave when it's read. I'll start working on the bluetooth stuff once I'm happy with that.

Does the card,dev,subdev device description map well to bluetooth? Would it be bluetooth-adapter,headset,service or something like that?

I've been digging in the api docs and I've attached my first patch. :)

Brad

src/pcm/pcm.c 2004-11-29 14:25:31.000000000 -0700 renamed from src/pcm/pcm.c 2004-05-04 09:13:23.000000000 -0600 +1 -1
diff -u alsa-lib-1.0.6-orig/src/pcm/pcm.c alsa-lib-1.0.6/src/pcm/pcm.c
@@ -206,7 +206,7 @@
 
 The full list of formats present the #snd_pcm_format_t type.
 The 24-bit linear samples uses 32-bit physical space, but the sample is
-stored in low three bits. Some hardware does not support processing of full
+stored in low three bytes. Some hardware does not support processing of full
 range, thus you may get the significant bits for linear samples via
 #snd_pcm_hw_params_get_sbits() function. The example: ICE1712
 chips support 32-bit sample processing, but low byte is ignored (playback)
#1 lore raw

Hi Brad,

Quoted 2 lines

Does the card,dev,subdev device description map well to bluetooth? Would it be bluetooth-adapter,headset,service or something like that?

you can define a PCM in your local .asoundrc and then let it be handled by an externel library extension like this:

	pcm.headphone {
	        type a2dp
	        bdaddr "00:0B:0D:50:12:10"
	}

This requires a dynamic library called libasound_module_pcm_a2dp.so under /usr/lib/alsa-lib/.

The problem is that it is impossible to create a library extension outside the ALSA source tree. The reason is mostly a missing include or the dependencies on pcm_local.h.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/