[Ekiga-list] Using ekiga with bluetooth headset
- From: Guillaume Bedot <littletux zarb org>
- To: Ekiga mailing list <ekiga-list gnome org>
- Cc: bluez-devel lists sourceforge net
- Subject: [Ekiga-list] Using ekiga with bluetooth headset
- Date: Fri, 20 Apr 2007 10:05:52 +0200
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.
--- pwlib-1.10.7.orig/plugins/sound_alsa/sound_alsa.cxx 2007-04-19 18:07:46.000000000 +0200
+++ pwlib-1.10.7/plugins/sound_alsa/sound_alsa.cxx 2007-04-19 18:12:22.000000000 +0200
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]