Using ekiga with bluetooth headset
Hello,
I'm currently using ekiga with a USB bluetooth dongle (ASUS WL-BTD202) and a bluetooth headset (PROF PBH-6W).
It's quite tricky yet (patching kernel, pwlib, and compile several software from CVS...), but works. thanks to the devs :-)
Here is a simple update of the patch that can be found on plugz's cvs, to apply on pwlib 1.10.7 (and maybe some previous versions).
I'd like to enhance the patch with detecting the headset, but don't know how...
Should pwlib interact with headsetd to ask if a headset is currently connected ?
Best regards,
Guillaume B.
plugins/sound_alsa/sound_alsa.cxx +13 -2
@@ -284,6 +284,8 @@ devices += playback_devices.GetKeyAt (j); } + devices += "Bluetooth headset"; + return devices; }
@@ -330,6 +332,10 @@ real_device_name = "default"; card_nr = -2; } + else if(_device == "Bluetooth headset") { + real_device_name = "headset"; + card_nr = -3; + } else { if ((_dir == Recorder && capture_devices.IsEmpty ())
@@ -840,10 +846,15 @@ if (!os_handle) return FALSE; - if (card_nr == -2) + if (card_nr == -2) { card_name = "default"; - else + } + else if(card_nr == -3) { + card_name = "headset"; + } + else { card_name = "hw:" + PString (card_nr); + } //allocate simple id snd_mixer_selem_id_alloca (&sid);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel