public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Guillaume Bedot <littletux@zarb.org>
To: Ekiga mailing list <ekiga-list@gnome.org>
Cc: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Using ekiga with bluetooth headset
Date: Fri, 20 Apr 2007 10:05:52 +0200	[thread overview]
Message-ID: <1177056352.4604.18.camel@littletux> (raw)

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

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.


[-- Attachment #2: pwlib-1.10.7-btheadset.patch --]
[-- Type: text/x-patch, Size: 903 bytes --]

--- 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);

[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

                 reply	other threads:[~2007-04-20  8:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1177056352.4604.18.camel@littletux \
    --to=littletux@zarb.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=ekiga-list@gnome.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox