All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Ekiga pwlib patch for plugz operation
       [not found] <mailman.164002.1173227580.20110.bluez-devel@lists.sourceforge.net>
@ 2007-03-07 16:42 ` Jon Barnett
  0 siblings, 0 replies; only message in thread
From: Jon Barnett @ 2007-03-07 16:42 UTC (permalink / raw)
  To: bluez-devel


[-- Attachment #1.1: Type: text/plain, Size: 1389 bytes --]

Version 1.10.4 of pwlib has some slight changes in the sound_alsa.cxx
code so the old plugz patch doesn't work any more. I think the new patch should
look something like this.

===================================================================================
--- plugins/sound_alsa/sound_alsa.cxx.old       2007-02-04 16:21:32.000000000 -0500
+++ plugins/sound_alsa/sound_alsa.cxx   2007-03-07 11:17:06.000000000 -0500
@@ -284,6 +284,8 @@
     for (PINDEX j = 0 ; j < playback_devices.GetSize () ; j++) 
       devices += playback_devices.GetKeyAt (j);
   }
+
+  devices += "Bluetooth headset";
   
   return devices;
 }
@@ -331,6 +333,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 ())
@@ -841,10 +847,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);
===================================================================================

Submitted for consideration.

Cheers,

JonB

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 345 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-07 16:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.164002.1173227580.20110.bluez-devel@lists.sourceforge.net>
2007-03-07 16:42 ` [Bluez-devel] Ekiga pwlib patch for plugz operation Jon Barnett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.