2007-03-07 16:42:23

by Jon Barnett

[permalink] [raw]
Subject: [Bluez-devel] Ekiga pwlib patch for plugz operation

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


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part
(No filename) (345.00 B)
(No filename) (164.00 B)
Download all attachments