OBS User unknown 2008-01-23 22:31:09 +00:00 committed by Git OBS Bridge
parent 2cc6c74dbe
commit e589d1b062
11 changed files with 191 additions and 178 deletions

View File

@ -1,14 +0,0 @@
Increase cache size of esd
diff -urNad pulseaudio-0.9.5~/src/pulsecore/protocol-esound.c pulseaudio-0.9.5/src/pulsecore/protocol-esound.c
--- pulseaudio-0.9.5~/src/pulsecore/protocol-esound.c 2006-08-20 01:06:45.000000000 +0200
+++ pulseaudio-0.9.5/src/pulsecore/protocol-esound.c 2007-03-06 14:13:17.000000000 +0100
@@ -68,7 +68,7 @@
#define RECORD_BUFFER_SECONDS (5)
#define RECORD_BUFFER_FRAGMENTS (100)
-#define MAX_CACHE_SAMPLE_SIZE (1024000)
+#define MAX_CACHE_SAMPLE_SIZE (2048000)
#define SCACHE_PREFIX "esound."

View File

@ -1,20 +0,0 @@
--- pulseaudio-0.9.6/src/Makefile.in.orig 2007-05-27 22:59:32.000000000 +0200
+++ pulseaudio-0.9.6/src/Makefile.in 2007-05-29 11:30:19.000000000 +0200
@@ -5028,7 +5028,7 @@
suid: pulseaudio .libs/lt-pulseaudio
chown root $^
- chmod u+s $^
+# chmod u+s $^
esdcompat: daemon/esdcompat.in Makefile
sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
@@ -5052,7 +5052,7 @@
install-exec-hook:
chown root $(DESTDIR)$(bindir)/pulseaudio ; true
- chmod u+s $(DESTDIR)$(bindir)/pulseaudio
+# chmod u+s $(DESTDIR)$(bindir)/pulseaudio
ln -sf pacat $(DESTDIR)$(bindir)/parec
rm -f $(DESTDIR)$(modlibexecdir)/*.a
rm -f $(DESTDIR)$(libdir)/libpulsedsp.a

View File

@ -1,39 +0,0 @@
Index: /branches/lennart/src/pulsecore/protocol-esound.c
===================================================================
--- /branches/lennart/src/pulsecore/protocol-esound.c (revision 1884)
+++ /branches/lennart/src/pulsecore/protocol-esound.c (revision 1964)
@@ -949,5 +949,5 @@
if ((r = pa_iochannel_read(c->io, (uint8_t*) c->read_data + c->read_data_length, handler->data_length - c->read_data_length)) <= 0) {
- if (errno == EINTR || errno == EAGAIN)
+ if (r < 0 && (errno == EINTR || errno == EAGAIN))
return 0;
@@ -979,5 +979,5 @@
if (r <= 0) {
- if (errno == EINTR || errno == EAGAIN)
+ if (r < 0 && (errno == EINTR || errno == EAGAIN))
return 0;
@@ -1042,5 +1042,5 @@
if (r <= 0) {
- if (errno == EINTR || errno == EAGAIN)
+ if (r < 0 && (errno == EINTR || errno == EAGAIN))
return 0;
@@ -1073,5 +1073,5 @@
if ((r = pa_iochannel_write(c->io, (uint8_t*) c->write_data+c->write_data_index, c->write_data_length-c->write_data_index)) < 0) {
- if (errno == EINTR || errno == EAGAIN)
+ if (r < 0 && (errno == EINTR || errno == EAGAIN))
return 0;
@@ -1102,5 +1102,5 @@
if (r < 0) {
- if (errno == EINTR || errno == EAGAIN)
+ if (r < 0 && (errno == EINTR || errno == EAGAIN))
return 0;

View File

@ -1,64 +0,0 @@
--- src/tests/resampler-test.c-dist 2007-10-31 11:59:07.000000000 +0100
+++ src/tests/resampler-test.c 2007-10-31 12:02:38.000000000 +0100
@@ -37,9 +37,13 @@
#include <liboil/liboil.h>
static float swap_float(float a) {
- uint32_t *b = (uint32_t*) &a;
- *b = PA_UINT32_SWAP(*b);
- return a;
+ union {
+ uint32_t i;
+ float f;
+ } b;
+ b.f = a;
+ b.i = PA_UINT32_SWAP(b.i);
+ return b.f;
}
static void dump_block(const pa_sample_spec *ss, const pa_memchunk *chunk) {
--- src/pulsecore/sconv-s16le.c-dist 2007-10-31 11:58:56.000000000 +0100
+++ src/pulsecore/sconv-s16le.c 2007-10-31 12:02:59.000000000 +0100
@@ -95,16 +95,21 @@ void pa_sconv_s16le_from_float32ne(unsig
#endif
}
+union float32 {
+ uint32_t i;
+ float f;
+};
+
void pa_sconv_s16le_to_float32re(unsigned n, const int16_t *a, float *b) {
pa_assert(a);
pa_assert(b);
for (; n > 0; n--) {
int16_t s = *(a++);
- float k = ((float) INT16_FROM(s))/0x7FFF;
- uint32_t *j = (uint32_t*) &k;
- *j = PA_UINT32_SWAP(*j);
- *(b++) = k;
+ union float32 k;
+ k.f = ((float) INT16_FROM(s))/0x7FFF;
+ k.i = PA_UINT32_SWAP(k.i);
+ *(b++) = k.f;
}
}
@@ -114,11 +119,11 @@ void pa_sconv_s16le_from_float32re(unsig
for (; n > 0; n--) {
int16_t s;
- float v = *(a++);
- uint32_t *j = (uint32_t*) &v;
- *j = PA_UINT32_SWAP(*j);
- v = CLAMP(v, -1, 1);
- s = (int16_t) (v * 0x7FFF);
+ union float32 v;
+ v.f = *(a++);
+ v.i = PA_UINT32_SWAP(v.i);
+ v.f = CLAMP(v.f, -1, 1);
+ s = (int16_t) (v.f * 0x7FFF);
*(b++) = INT16_TO(s);
}
}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:858eeec3a64adebd111e4bafb65e8f0649a8d65bc6c587600468090acf13edc4
size 922586

View File

View File

@ -0,0 +1,11 @@
Index: /trunk/src/pulse/stream.c
===================================================================
--- /trunk/src/pulse/stream.c (revision 2067)
+++ /trunk/src/pulse/stream.c (revision 2074)
@@ -587,5 +587,5 @@
}
- if (s->context->version >= 12) {
+ if (s->context->version >= 12 && s->direction != PA_STREAM_UPLOAD) {
pa_sample_spec ss;
pa_channel_map cm;

View File

@ -0,0 +1,25 @@
From d91b6d26e698ad63761faf722850ad0cec52d4e4 Mon Sep 17 00:00:00 2001
From: CJ van den Berg <cj@vdbonline.com>
Date: Wed, 28 Nov 2007 22:26:14 +0100
Subject: [PATCH] Force module-tunnel to use protocol version 11
PulseAudio 0.9.8 uses protocol version 12, but module-tunnel does not
support the new opcodes in version 12 yet. This should prevent
module-tunnel reporting "protocol error" and unloading.
---
src/modules/module-tunnel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/modules/module-tunnel.c b/src/modules/module-tunnel.c
index 43a10ce..5ff0416 100644
--- a/src/modules/module-tunnel.c
+++ b/src/modules/module-tunnel.c
@@ -1145,7 +1145,7 @@ static void on_connection(pa_socket_client *sc, pa_iochannel *io, void *userdata
t = pa_tagstruct_new(NULL, 0);
pa_tagstruct_putu32(t, PA_COMMAND_AUTH);
pa_tagstruct_putu32(t, tag = u->ctag++);
- pa_tagstruct_putu32(t, PA_PROTOCOL_VERSION);
+ pa_tagstruct_putu32(t, 11);
pa_tagstruct_put_arbitrary(t, u->auth_cookie, sizeof(u->auth_cookie));
#ifdef HAVE_CREDS

3
pulseaudio-0.9.8.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab53542d24dfc9c027f00ecafba993dd83cd3e778379e5e90ffce3b1c97a673e
size 792565

View File

@ -1,4 +1,35 @@
-------------------------------------------------------------------
Wed Jan 23 17:34:29 CET 2008 - rodrigo@suse.de
- Reviewed changes from cyberorg@cyberorg.info submitted to
home:rodrigomoya:pulseaudio BS service.
-------------------------------------------------------------------
Thu Jan 10 00:01:00 IST 2008 - cyberorg@cyberorg.info
- Update to 0.9.8
* Man pages
* Make real-time priority and nice level configurable
* Support acquiring priviliges for high-priority and real-time scheduling
via PolicyKit
* Support S32 samples natively
* Rework ALSA surround sound configuration completely
* Automatic upmixing/downmixing
* Add a couple of new directives to libpulse: add flag to allow fixing the
sample specs to the ones that are native to the sink/source a stream is
connected to; Change the sample rate, buffering attributes during runtime;
allow notification on device suspend/resume and moving of streams between
devices
* Check process name when dealing with PID files
* Allow configuratin of RLIMIT_RTPRIO, RLIMIT_NICE
* Add bluetooth proximity module. Just pair your phone and have PA turn down
the volume when you leave with your phone and turn it up again if you come back.
- Enable bluetooth
- Enable Jack
- Add policykit
- Add many man pages
- Enable tcpd
-------------------------------------------------------------------
Wed Jan 9 20:19:57 CET 2008 - rodrigo@suse.de
- Renamed libs packages to follow shared lib policy

View File

@ -1,5 +1,5 @@
#
# spec file for package pulseaudio (Version 0.9.7)
# spec file for package pulseaudio (Version 0.9.8)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@ -13,21 +13,20 @@
Name: pulseaudio
%define drvver 0.9
Summary: A Networked Sound Server
Version: 0.9.7
Release: 17
Version: 0.9.8
Release: 1
License: GPL v2 or later; LGPL v2.1 or later
Group: System/Sound Daemons
Source: %{name}-%{version}.tar.bz2
Source1: default.pa
Url: http://pulseaudio.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: alsa-devel avahi-devel doxygen gconf2-devel glib2-devel hal-devel jack-devel libatomic-ops-devel liboil-devel libsamplerate-devel libsndfile-devel lirc-devel update-desktop-files xorg-x11-devel
BuildRequires: PolicyKit-devel alsa-devel avahi-devel bluez-libs doxygen gconf2-devel glib2-devel hal-devel jack-devel libatomic-ops-devel liboil-devel libsamplerate-devel libsndfile-devel lirc-devel tcpd-devel update-desktop-files xorg-x11-devel
Requires: libpulsecore4 = %{version}
PreReq: pwdutils
Patch1: pulseaudio-0.9.6-nochown.patch
Patch2: pulseaudio-0.9.7-eof-fix-r1964.patch
Patch3: pulseaudio-0.9.5-esd-max-samplesize.diff
Patch4: pulseaudio-0.9.7-type-punning.diff
Patch2: pulseaudio-0.9.8-fix-sample-upload.patch
Patch3: pulseaudio-0.9.8-unbreak-tunnels.patch
Patch4: pulseaudio-0.9.8-create-dot-pulse.patch
%description
pulseaudio is a networked sound server for Linux and other Unix like
@ -107,6 +106,44 @@ improved drop-in replacement for the Enlightened Sound Daemon (ESOUND).
Authors:
--------
Lennart Poettering
Pierre Ossman
%package module-jack
Summary: JACK support for the PulseAudio sound server
Group: System/Sound Daemons
Requires: %{name} = %{version}
%description module-jack
pulseaudio is a networked sound server for Linux and other Unix like
operating systems and Microsoft Windows. It is intended to be an
improved drop-in replacement for the Enlightened Sound Daemon (ESOUND).
This package includes support for Jack-based applications.
Authors:
--------
Lennart Poettering
Pierre Ossman
%package module-bluetooth
Summary: Bluetooth proximity support for the PulseAudio sound server
Group: System/Sound Daemons
Requires: %{name} = %{version}
%description module-bluetooth
pulseaudio is a networked sound server for Linux and other Unix like
operating systems and Microsoft Windows. It is intended to be an
improved drop-in replacement for the Enlightened Sound Daemon (ESOUND).
This package includes support for Bluetooth-based sound devices.
Authors:
--------
Lennart Poettering
@ -257,10 +294,9 @@ Authors:
%prep
%setup -q -T -b0
%patch1 -p1
%patch2 -p3
%patch2 -p2
%patch3 -p1
%patch4
%patch4 -p0
%build
%configure --disable-ltdl-install --disable-static --disable-rpath --with-system-user=pulse --with-system-group=pulse --with-realtime-group=pulse-rt --with-access-group=pulse-access
@ -350,7 +386,7 @@ groupadd -r pulse-access &>/dev/null || :
%{_libdir}/pulse-%{drvver}/modules/module-esound-compat-spawnpid.so
%{_libdir}/pulse-%{drvver}/modules/module-esound-protocol-tcp.so
%{_libdir}/pulse-%{drvver}/modules/module-esound-protocol-unix.so
#%{_libdir}/pulse-%{drvver}/modules/module-esound-sink.so
%{_libdir}/pulse-%{drvver}/modules/module-esound-sink.so
%{_libdir}/pulse-%{drvver}/modules/module-hal-detect.so
%{_libdir}/pulse-%{drvver}/modules/module-http-protocol-tcp.so
%{_libdir}/pulse-%{drvver}/modules/module-http-protocol-unix.so
@ -369,18 +405,24 @@ groupadd -r pulse-access &>/dev/null || :
%{_libdir}/pulse-%{drvver}/modules/module-simple-protocol-tcp.so
%{_libdir}/pulse-%{drvver}/modules/module-simple-protocol-unix.so
%{_libdir}/pulse-%{drvver}/modules/module-sine.so
#%{_libdir}/pulse-%{drvver}/modules/module-tunnel-sink.so
#%{_libdir}/pulse-%{drvver}/modules/module-tunnel-source.so
%{_libdir}/pulse-%{drvver}/modules/module-tunnel-sink.so
%{_libdir}/pulse-%{drvver}/modules/module-tunnel-source.so
%{_libdir}/pulse-%{drvver}/modules/module-volume-restore.so
%{_libdir}/pulse-%{drvver}/modules/module-suspend-on-idle.so
%{_libdir}/pulse-%{drvver}/modules/module-default-device-restore.so
%{_libdir}/pulse-%{drvver}/modules/module-ladspa-sink.so
%{_libdir}/pulse-%{drvver}/modules/module-remap-sink.so
%{_datadir}/PolicyKit/policy/PulseAudio.policy
%{_mandir}/man1/pulseaudio.1.gz
%{_mandir}/man5/default.pa.5.gz
%{_mandir}/man5/pulse-client.conf.5.gz
%{_mandir}/man5/pulse-daemon.conf.5.gz
%files esound-compat
%defattr(-,root,root)
%{_bindir}/esdcompat
%{_bindir}/esd
%{_mandir}/man1/esdcompat.1.gz
%files module-lirc
%defattr(-,root,root)
@ -399,10 +441,17 @@ groupadd -r pulse-access &>/dev/null || :
%defattr(-,root,root)
%{_libdir}/pulse-%{drvver}/modules/libavahi-wrap.so
%{_libdir}/pulse-%{drvver}/modules/module-zeroconf-publish.so
#%files module-jack
#%defattr(-,root,root)
#%{_libdir}/pulse-%{drvver}/modules/module-jack-sink.so
#%{_libdir}/pulse-%{drvver}/modules/module-jack-source.so
%{_libdir}/pulse-%{drvver}/modules/module-zeroconf-discover.so
%files module-jack
%defattr(-,root,root)
%{_libdir}/pulse-%{drvver}/modules/module-jack-sink.so
%{_libdir}/pulse-%{drvver}/modules/module-jack-source.so
%files module-bluetooth
%defattr(-,root,root)
%{_libdir}/pulse-%{drvver}/modules/module-bt-proximity.so
%{_libexecdir}/pulse/bt-proximity-helper
%files module-gconf
%defattr(-,root,root)
@ -452,9 +501,43 @@ groupadd -r pulse-access &>/dev/null || :
%{_bindir}/pax11publish
%{_bindir}/padsp
%{_bindir}/pasuspender
%{_mandir}/man1/pabrowse.1.gz
%{_mandir}/man1/pacat.1.gz
%{_mandir}/man1/pacmd.1.gz
%{_mandir}/man1/pactl.1.gz
%{_mandir}/man1/paplay.1.gz
%{_mandir}/man1/pasuspender.1.gz
%{_mandir}/man1/padsp.1.gz
%{_mandir}/man1/pax11publish.1.gz
%changelog
* Wed Jan 09 2008 - rodrigo@suse.de
* Wed Jan 23 2008 rodrigo@suse.de
- Reviewed changes from cyberorg@cyberorg.info submitted to
home:rodrigomoya:pulseaudio BS service.
* Thu Jan 10 2008 cyberorg@cyberorg.info
- Update to 0.9.8
* Man pages
* Make real-time priority and nice level configurable
* Support acquiring priviliges for high-priority and real-time scheduling
via PolicyKit
* Support S32 samples natively
* Rework ALSA surround sound configuration completely
* Automatic upmixing/downmixing
* Add a couple of new directives to libpulse: add flag to allow fixing the
sample specs to the ones that are native to the sink/source a stream is
connected to; Change the sample rate, buffering attributes during runtime;
allow notification on device suspend/resume and moving of streams between
devices
* Check process name when dealing with PID files
* Allow configuratin of RLIMIT_RTPRIO, RLIMIT_NICE
* Add bluetooth proximity module. Just pair your phone and have PA turn down
the volume when you leave with your phone and turn it up again if you come back.
- Enable bluetooth
- Enable Jack
- Add policykit
- Add many man pages
- Enable tcpd
* Wed Jan 09 2008 rodrigo@suse.de
- Renamed libs packages to follow shared lib policy
- Added better descriptions for subpackages
- Use tar.bz2 instead of tar.gz
@ -462,22 +545,22 @@ groupadd -r pulse-access &>/dev/null || :
- Use update-desktop-files for .desktop file
- PreRequire pwdutils for groupadd/del
- Moved libpulsedsp.so to libpusecore4 to avoid rpmlint errors
* Tue Jan 08 2008 - rodrigo@suse.de
* Tue Jan 08 2008 rodrigo@suse.de
- Don't remove users/groups on %%postun
* Tue Jan 08 2008 - rodrigo@suse.de
* Tue Jan 08 2008 rodrigo@suse.de
- Removed 'rm -rf $RPM_BUILD_ROOT' from %%install
* Mon Dec 24 2007 - rodrigo@suse.de
* Mon Dec 24 2007 rodrigo@suse.de
- Use /var/lib/pulseaudio as home dir for pulseaudio user.
* Tue Dec 11 2007 - rodrigo@suse.de
* Tue Dec 11 2007 rodrigo@suse.de
- Removed special permissions for pulseaudio binary to make it
buildable until the permissions thing is solved.
* Tue Dec 11 2007 - rodrigo@suse.de
* Tue Dec 11 2007 rodrigo@suse.de
- Merged with package from home:rodrigomoya:pulseaudio BS project.
* Thu Nov 22 2007 - cyberorg@cyberorg.info
* Thu Nov 22 2007 cyberorg@cyberorg.info
- Remove Provides and Obsoletes from esound compat package
* Wed Nov 21 2007 - cyberorg@cyberorg.info
* Wed Nov 21 2007 cyberorg@cyberorg.info
- Restructured spec file to build more subpackages, like in Fedora 8.
* Wed Oct 31 2007 - tiwai@suse.de
* Wed Oct 31 2007 tiwai@suse.de
- updated to version 0.9.7:
* New threaded lock-free (mostly at least) core
* New module for automatic discovery of zeroconf audio devices
@ -499,27 +582,27 @@ groupadd -r pulse-access &>/dev/null || :
* allow global configuration for fragment settings/sizes
* PA (if HAL is enabled) now ignores modem sound devices by default
* Lots of bug fixes and other improvements
* Thu Oct 11 2007 - sbrabec@suse.cz
* Thu Oct 11 2007 sbrabec@suse.cz
- Use binding specific avahi package.
* Tue Jun 19 2007 - tiwai@suse.de
* Tue Jun 19 2007 tiwai@suse.de
- fixed default.pa (typo of rtp.monitor).
* Tue Jun 12 2007 - tiwai@suse.de
* Tue Jun 12 2007 tiwai@suse.de
- disable flist-test that doesn't pass with ppc (libatomic-ops
problem)
* Fri Jun 08 2007 - tiwai@suse.de
* Fri Jun 08 2007 tiwai@suse.de
- updated to version 0.9.6:
* bugfixes, including previous patches
* use lock-free algorith with libatomic-ops
- add avahi-devel, xorg-x11-devel, glib2-devel and hal-devel to
buildrequires
- prefer Master volume to PCM volume
* Tue May 29 2007 - tiwai@suse.de
* Tue May 29 2007 tiwai@suse.de
- fix possible remote DoS (#260326)
- fix wrong endian conversion of float data
- add a workaround for firefox with LD_PRELOAD wrapper
- add the missing support of ioctls for JavaSound
- increase ESD max samplesize
* Tue Apr 24 2007 - tiwai@suse.de
* Tue Apr 24 2007 tiwai@suse.de
- disable static library, don't use ltdl install
- fix requires of devel package
- fix post and postun
@ -527,9 +610,9 @@ groupadd -r pulse-access &>/dev/null || :
- fix suspend/resume with alsa backend
- fix the frame size handling in alsa backend
- fix possible NULL dereference
* Mon Oct 16 2006 - schwab@suse.de
* Mon Oct 16 2006 schwab@suse.de
- Make sure config.rpath is present.
* Wed Sep 06 2006 - tiwai@suse.de
* Wed Sep 06 2006 tiwai@suse.de
- updated to version 0.9.5:
* add module-hal-detect module
* shared memory transfer method for local clients
@ -540,10 +623,10 @@ groupadd -r pulse-access &>/dev/null || :
* add new module module-gconf for reading additional configuration
* fix module-tunnel to work with the latest protocol
* miscellaneous fixes
* Thu Aug 17 2006 - tiwai@suse.de
* Thu Aug 17 2006 tiwai@suse.de
- move libpulsedsp.so to the main package from devel sub package
(#199735).
* Mon Jul 31 2006 - tiwai@suse.de
* Mon Jul 31 2006 tiwai@suse.de
- updated to version 0.9.4:
* support for system-wide pulseaudio daemon.
* add authentication by IP address range ACL (auth-ip-acl=)
@ -557,7 +640,7 @@ groupadd -r pulse-access &>/dev/null || :
* fix broken time event handling in GLIB
* Some valgrind/massif fixes
* Fix pkg-config files for AMD64
* Wed Jul 12 2006 - tiwai@suse.de
* Wed Jul 12 2006 tiwai@suse.de
- renamed from polypaudio to pulseaudio (the project name was
changed)
- update to version 0.9.2: