Commit graph

1085 commits

Author SHA1 Message Date
Lennart Poettering
31575f7766 alsa: rework mixer logic
Completely rework mixer logic. This now allows controlling a full set of
elements from a single sink's volume slider/mute button.

This also introduces sink and source "ports" that can be used to choose
different input or output ports with the UI. (i.e. "mic"/"line-in" or
"speaker"/"headphones".

The mixer paths and device maps are now configered in external
configuration files and can be tweaked as necessary.
2009-06-17 03:45:14 +02:00
Lennart Poettering
e9c70ac41b pdispatch: fix s/recieve/receive/ typos 2009-06-17 03:18:14 +02:00
Lennart Poettering
1ec33f37d9 pstream: fix s/recieve/receive/ typos 2009-06-17 03:17:23 +02:00
Lennart Poettering
dddb4b02b3 gdbm: set default block size to 1K 2009-06-17 03:16:48 +02:00
Lennart Poettering
279e0d678e card: get rid of description field which is unused 2009-06-17 03:16:13 +02:00
Lennart Poettering
4f44fe86fb card: make sure to always hand failure code back in some calls 2009-06-17 03:15:56 +02:00
Lennart Poettering
325c01bdbc card: some modernizations 2009-06-17 03:15:36 +02:00
Lennart Poettering
0fa1ddf838 core-util: implement pa_maybe_prefix_path() 2009-06-17 03:13:59 +02:00
Lennart Poettering
7fa05bea7e core-util: implement pa_split_spaces_strv() 2009-06-17 03:13:32 +02:00
Lennart Poettering
c5dbf754b5 core-util: implement pa_xstrfreev() 2009-06-17 03:13:01 +02:00
Lennart Poettering
7de7b012fd conf-parse: implement .include directive 2009-06-17 03:11:47 +02:00
Lennart Poettering
77901e5e62 channelmap: define a couple of standard channel masks 2009-06-17 03:08:34 +02:00
Lennart Poettering
c6830bd9dc hashmap: implement pa_hashmap_last() 2009-06-17 03:02:34 +02:00
Lennart Poettering
a1d84e3935 hashmap: implement api to iterate a hashmap backwards 2009-06-17 03:02:19 +02:00
Lennart Poettering
277e8c5ce4 idxset: implement pa_idxset_copy() 2009-06-17 03:01:40 +02:00
Tanu Kaskinen
c8d819a5ad dbus-protocol: Connection handling for local connections. 2009-06-16 19:03:22 +03:00
Lennart Poettering
89e3adf8cd sample: fix build on BE archs 2009-06-08 18:22:19 +02:00
Lennart Poettering
f13bbd576f prop: introduce new PA_PROP_DEVICE_INTENDED_ROLES property 2009-06-08 16:58:45 +02:00
Lennart Poettering
e7a6d53118 core: replace tabs by spaces 2009-06-08 00:12:20 +02:00
Lennart Poettering
587fc2ab1c 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 00:02:15 +02:00
Jyri Sarha
8eaea3aa64 optimization: Optimized pa_sink_render_full.
This is finally the latest version of the patch.
2009-06-07 02:06:44 +02:00
Lennart Poettering
d1646f78af core: monitor sources need to inherit the suspend cause from their sinks 2009-06-06 15:32:45 +02:00
Lennart Poettering
69eab1e057 core: suppress suspending/resume when we are already in the right state 2009-06-06 15:31:46 +02:00
Lennart Poettering
496be212ad hashmap: introduce PA_HASHMAP_FOREACH macro 2009-06-06 15:30:24 +02:00
Lennart Poettering
00797b8b6e core: add a suspend cause flags field 2009-06-05 19:05:07 +02:00
Lennart Poettering
3e10f3f4e3 tdb: include signal.h before tdb.h for compat reasons 2009-06-04 23:50:43 +02:00
Lennart Poettering
c224aace42 modules: introduce PA_MODULE_DEPRECATED() macro for marking modules deprecated 2009-05-28 02:47:36 +02:00
Lennart Poettering
19d7ced40d modargs: introduce pa_modargs_get_proplist() 2009-05-27 23:18:17 +02:00
Lennart Poettering
5c10b84e0f sndfile: big rework of libsndfile interfacing code
This adds proper channel map handling when reading/writing audio files.
This allows surround .WAV files to be played with the right channel
setup automatically.

This also merges paplay into pacat and adds recording into formatted
files to pacat.
2009-05-26 00:05:28 +02:00
Lennart Poettering
759a9d0cc5 core-util: introduce pa_disable_sigpipe() 2009-05-26 00:02:29 +02:00
Lennart Poettering
ebce3185ef cli: allow easy repeating of commands with '/' 2009-05-25 23:56:38 +02:00
Lennart Poettering
e2aba1521a core-util: fall back to sysconf(_SC_OPEN_MAX) to find maximum file descriptor 2009-05-22 01:31:56 +02:00
Diego Elio 'Flameeyes' Pettenò
ff5b7fb222 Add missing headers' include to build on FreeBSD 7.1. 2009-05-15 23:42:43 +02:00
Diego Elio 'Flameeyes' Pettenò
d45c909ab3 When MAP_ANONYMOUS is missing, fallback to MAP_ANON.
While the latter is deprecated on modern systems like glibc-based ones,
FreeBSD (and probably others) still use it, so make sure it falls back if
the new one is missing.
2009-05-15 23:09:59 +02:00
Lennart Poettering
0921b1b4a3 shm: rework alignment when punching memory 2009-05-14 19:51:05 +02:00
Lennart Poettering
003e03d233 macro: include string.h because we need it for memset 2009-05-14 01:23:12 +02:00
Lennart Poettering
6df14e0161 database: add tdb backend 2009-05-14 01:22:49 +02:00
Lennart Poettering
46bceedc98 database: add gdbm backend 2009-05-14 01:22:36 +02:00
Lennart Poettering
c69ed91239 database: add abstracted database API 2009-05-14 01:21:56 +02:00
Lennart Poettering
28069ef0f7 core: automatically add icons for headsets/headphones/speakers for devices 2009-05-13 01:00:39 +02:00
Lennart Poettering
21ab720dd1 http: fix segfault on connection termination 2009-05-12 17:08:34 +02:00
Lennart Poettering
eb205646ae mime: drop additional whitespace from mime types 2009-05-11 19:56:13 +02:00
Jyri Sarha
35faedb6e8 core: Take samples from silence cache rather than write zeros
If the only stream to render from is muted take samples from the
silence cache. This should shrink memory/cache bandwidth. Again the
gain was not what I hoped for.
2009-05-09 00:06:47 +02:00
Jyri Sarha
d7b8947a5e core: optimize pa_sink_render_full()
I have used this fix for quite a while and I am pretty confident about
it. However, the performance gain was not what I expected.
2009-05-08 23:59:16 +02:00
Lennart Poettering
7f767e5fe6 core: liberalize 99a6a4 a bit
While flags should generally be initialized by passing them to
pa_{sink|source}_new() we make an exception for the volume related flags
which may be initilized afterwards, but before _put().
2009-05-08 02:16:10 +02:00
Lennart Poettering
8d9c26e3b6 core: cache requested latency only when we are running, not while we are still constructing 2009-05-08 02:04:48 +02:00
Lennart Poettering
99a6a4742f core: make sure we fix up flags/monitor flags already in pa_sink_new() instead of pa_sink_put() 2009-05-08 02:04:48 +02:00
Lennart Poettering
3766850c8b 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-05-08 02:04:48 +02:00
Lennart Poettering
92a6141888 macro: add macros for initializing memory 2009-05-08 02:04:33 +02:00
Lennart Poettering
e0f08219bb sconv: fix a few minor conversion issues 2009-05-01 04:22:08 +02:00