[pulseaudio-discuss] How to use "sco_sink" and "sco_source" in the bluetooth device module?

Lin, Mengdong mengdong.lin at intel.com
Sun Jun 12 04:59:40 PDT 2011


Could someone tell me how to use "sco_sink" and "sco_source" in the bluetooth device module?

Because of hardware restriction, our bluetooth driver cannot handle HSP data transport. We want use an ALSA device's sink and source for BT HSP transport. It seems that by passing parameters to initialize the Bluetooth discover and device module, a bluetooth device can use external "sco-sink" and "sco-source" for HSP data transport.

My questions:

-          I can set the ALSA sink & source as the "sco-sink" and "sco-source", right? If yes, how can I set "sco-source" and "sco-sink" names as the parameter to load Bluetooth discover module in the default script for my platform?


-          Since "sco-sink" and "sco-source" are not dynamically created, so I cannot routing inputs/outputs to them by hook the "SINK-PUT" or "SOURCE-PUT" event, right?


-          When can I move sink inputs or source outputs to the "sco-sink" and "sco-source"? Their state changes outside of the Bluetooth device. How are their state change synchronized with BT headset connection and disconnection? In BT device module,  I saw both "start_thread" and state change hook of "sco-sink" and "sco-source" call "sco_over_pcm_state_update" to setup data transport. So they can change to IDLE state at any time?


-          Is there any extra work for the Bluetooth device or the device providing actual "sco-sink" and "sco-source" to do?


-          Has the usage "sco-sink" and "sco-source" been verified on any platform?

Great thanks
Amanda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110612/e9f15ea1/attachment.html>


More information about the pulseaudio-discuss mailing list