Commit graph

2398 commits

Author SHA1 Message Date
Lennart Poettering
35ccb319e6 protocol-native: compare uint64_t variable with (uint64_t) -1 instead of (size_t) -1 for compat with 32bit archs 2009-09-01 23:55:15 +01:00
Lennart Poettering
81eeb0667e pacmd: handle multi word commands in argv[] properly 2009-09-01 23:55:09 +01:00
Lennart Poettering
05f239a74a memblock: rate limit 'Pool full' message 2009-09-01 23:54:47 +01:00
Diego Elio 'Flameeyes' Pettenò
a29c6f86e0 Add missing headers' include to build on FreeBSD 7.1. 2009-07-16 18:03:57 +01:00
Diego Elio 'Flameeyes' Pettenò
abf6dfbc62 Remove exploitable LD_BIND_NOW hack (CVE-2009-1894).
Instead of trying to re-execute pulseaudio itself with LD_BIND_NOW set,
just find the correct flag for the linker to request immediate bindings
(all ELF files support that option), and use that when linking the daemon.

Reduce the amount of compiled and executed code as well.
2009-07-16 17:56:00 +01:00
Lennart Poettering
dce6af5fef alsa: remove debug code 2009-06-08 22:31:51 +01:00
Lennart Poettering
2537374770 alsa: properly convert return values of snd_strerror() to utf8 2009-06-08 22:31:51 +01:00
Lennart Poettering
758aac63b9 sample: fix build on BE archs 2009-06-08 22:31:51 +01:00
Lennart Poettering
e4b4d05487 core: cache requested latency only when we are running, not while we are still constructing 2009-06-08 22:31:51 +01:00
Lennart Poettering
c2a3d91480 core: introduce pa_{sink,source}_set_fixed_latency()
This allows us to forward the fixed latency directly from the sink to
the monitor source withut having to wait for pa_sink_put().
2009-06-08 22:31:51 +01:00
Lennart Poettering
7e664dc56a rescue: make we don't end up in an endless loop when we can't move a sink input 2009-06-08 22:31:51 +01:00
Lennart Poettering
a8bcf9b843 alsa: be a bit more verbose when a hwparam call fails 2009-06-08 22:31:51 +01:00
Lennart Poettering
d622b22987 sconv: fix a few minor conversion issues 2009-06-08 22:31:51 +01:00
Lennart Poettering
9c467514c5 sample-util: properly allocate silence block for s24-32 formats 2009-06-08 22:31:51 +01:00
Lennart Poettering
a9c769c26a sample-util: fix iteration loop when adjusting volume of s24 samples 2009-06-08 22:31:51 +01:00
Lennart Poettering
26797456d3 sample: correctly pass s24-32 formats 2009-06-08 22:31:51 +01:00
Lennart Poettering
d7b3dbff6c rescue-streams: when one stream move fails try to continue with the remaining ones 2009-06-08 22:31:51 +01:00
Lennart Poettering
ad2d938651 idxset: add enumeration macro PA_IDXSET_FOREACH 2009-06-08 22:31:51 +01:00
Lennart Poettering
0660bc2dbd simple-protocol: don't hit an assert when we call connection_unlink() early 2009-06-08 22:31:50 +01:00
Lennart Poettering
14dd16ad13 oss: don't deadlock when we try to resume an OSS device that lacks a mixer 2009-06-08 22:31:50 +01:00
Lennart Poettering
9c09d6b31b mutex: when we fail to fill in mutex into static mutex ptr free it again 2009-06-08 22:31:50 +01:00
Lennart Poettering
a3dba1c2e1 log: print file name only when we have it 2009-06-08 22:31:50 +01:00
Lennart Poettering
88181bec95 endian: fix LE/BE order for 24 bit accessor functions 2009-06-08 22:31:50 +01:00
Lennart Poettering
d52262367a core: make sure soft mute status stays in sync with hw mute status
This should close rhbz #494851, mandriva bz #51234.

Probably the same as our own #572, launchpad #352732.
2009-06-08 22:31:50 +01:00
Lennart Poettering
56f457c10d conf: remove obsolete module-idle-time directive from default config file/man page 2009-06-08 22:31:50 +01:00
Lennart Poettering
fab8c8290d alsa: initialize buffer size before number of periods to improve compat with some backends 2009-06-08 22:31:50 +01:00
Lennart Poettering
5657be51e1 alsa: fix wording, we are speaking of card profiles, not output profiles 2009-06-08 22:31:50 +01:00
Lennart Poettering
a5fad31238 alsa: don't hit an assert when invalid module arguments are passed 2009-06-08 22:31:50 +01:00
Lennart Poettering
c7ec013261 util: if NULL is passed to pa_path_get_filename() just hand it through 2009-06-08 22:31:50 +01:00
Lennart Poettering
4f2a3cb601 alsa: allow configuration of fallback device strings in profiles
This has the benefit that we can properly support ALSA devices where
only the raw 'hw' device exists but no 'front' although it's a proper
2ch stereo device.
2009-06-08 22:31:49 +01:00
Lennart Poettering
ca9cd14659 add a few missing initializations 2009-04-14 01:23:07 +02:00
Lennart Poettering
40d71e1f49 explcitly ignore return values of some functions marked with gcc's warn_unused_result attribute 2009-04-14 01:22:42 +02:00
Lennart Poettering
a4cea4e469 core: when applying delay memblockq take monitored sink latency into account 2009-04-14 01:04:17 +02:00
Lennart Poettering
2d94c93957 pacat: add missing newline 2009-04-14 01:03:34 +02:00
Lennart Poettering
4ee4a55617 core: use pa_{source|sink}_get_latency_within_thread() at one more place 2009-04-14 01:03:10 +02:00
Lennart Poettering
fe8b10cc05 core: introduce new 'reference' volume for sinks
The reference volume is to be used as reference volume for stored stream
volumes. Previously if a new stream was created the relative volume was
taken relatively to the virtual device volume. Due to the flat volume
logic this could then be fed back to the virtual device volume.
Repeating the whole story over and over would result in a device volume
that would go lower, and lower and lower.

This patch introduces a 'reference' volume for each sink which stays
unmodified by stream volume changes even if flat volumes are used. It is
only modified if the sink volumes are modified directly by the user.

For further explanations see http://pulseaudio.org/wiki/InternalVolumes
2009-04-13 22:56:25 +02:00
Lennart Poettering
49dcf0940e alsa: include the alsa mixer control that is used in the property list 2009-04-13 22:56:25 +02:00
Lennart Poettering
6fd8fd18c2 alsa: store mixer controls to use in profile data
This allows us to easily use different mixer controls for analog and
spdif output.
2009-04-13 22:56:19 +02:00
Lennart Poettering
89f74cb858 alsa: when passing emptry mixer control name, force sw volume 2009-04-13 22:45:31 +02:00
Lennart Poettering
237a9e12f8 volume: increase dB range to -90dB
Increasing the volume range to -90dB has the benefit of corresponding
with a volume decrease from the full 16 bit signal to 0.

This also makes us a bit more like traditional stereos
2009-04-13 22:41:44 +02:00
Lennart Poettering
0ac038e591 client-conf-x11: unbreak autospawn due to stale X11 properties
If the X11 property data is from the same session than the client the
client may do autospawning in case the X11 property data is stale.

Closes #518.
2009-04-13 22:28:35 +02:00
Lennart Poettering
0aed5ea2e1 client-conf: when is set, disable autospawn setting 2009-04-13 22:25:43 +02:00
Lennart Poettering
4cc4cbd641 client-conf: make setting a default server independant from the autospawn setting 2009-04-13 22:25:09 +02:00
Lennart Poettering
20aba71d94 proplist-util: use pa_session_id() instead of accessing 7b816367b01393ed3e3e650047d78f6e-1239640487.203609-1061245823 directly 2009-04-13 22:23:18 +02:00
Lennart Poettering
43650de1ab client-conf: modernize a few things 2009-04-13 22:22:22 +02:00
Lennart Poettering
a36197c9d0 print session id when starting up 2009-04-13 22:21:26 +02:00
Lennart Poettering
1d8da03886 core-util: filter utf8 in pa_machine_id() 2009-04-13 22:21:08 +02:00
Lennart Poettering
1b4e5f197a core-util: add pa_session_id() 2009-04-13 22:20:48 +02:00
Lennart Poettering
17f1784cb7 cork-music-on-phone: make sure that we don't check the refcnt of pa_core when the daemon goes down 2009-04-13 05:12:11 +02:00
Lennart Poettering
62db10c952 lirc: fix logic behind mute buttons 2009-04-13 04:44:27 +02:00