Linux bluetooth development
 help / color / mirror / Atom feed
From: Jon Barnett <jbarnett@pobox.com>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Ekiga pwlib patch for plugz operation
Date: Wed, 07 Mar 2007 11:42:23 -0500	[thread overview]
Message-ID: <1173285743.4194.10.camel@localhost> (raw)
In-Reply-To: <mailman.164002.1173227580.20110.bluez-devel@lists.sourceforge.net>


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

           reply	other threads:[~2007-03-07 16:42 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.164002.1173227580.20110.bluez-devel@lists.sourceforge.net>]

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=1173285743.4194.10.camel@localhost \
    --to=jbarnett@pobox.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /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