Commit graph

918 commits

Author SHA1 Message Date
Colin Guthrie
6e31178fd9 Fix the message processing for PA_SINK_MESSAGE_GET_LATENCY by returning rather than breaking and falling through. 2009-01-27 23:02:41 +00:00
Lennart Poettering
514661e36c don't make m-e-s hit an assert when the latency is queried 2009-01-27 23:58:34 +01:00
Lennart Poettering
0f664b7365 instead of making the volume relative our own, let' pa_sink_input_new() do it for us 2009-01-27 23:55:41 +01:00
Lennart Poettering
e439c18785 make m-p-e-s use pa_cvolume_set_balance() 2009-01-27 23:55:37 +01:00
Lennart Poettering
d1b754d998 only store volume/device information that has been flagged for saving, and store both relative and absolute volumes 2009-01-27 23:40:03 +01:00
Lennart Poettering
64b0543588 when changing volume, store whether it is worth remembering or no 2009-01-27 23:40:03 +01:00
Lennart Poettering
0ca16caff7 add new paramter ignore_dB= to alsa modules 2009-01-27 17:55:50 +01:00
Lennart Poettering
d5f46e824e move flat volume logic into the core. while doing so add n_volume_steps field to sinks/sources 2009-01-27 04:39:07 +01:00
Lennart Poettering
eca32235fb get rid of module-flat-volumes since we are moving this into the core 2009-01-27 04:29:25 +01:00
Lennart Poettering
07db64b9d3 remove redundant cast 2009-01-27 00:53:31 +01:00
Lennart Poettering
a365c8212d include a few HAL properties in our card/sink/source properties for ALSA devices 2009-01-24 01:25:11 +01:00
Lennart Poettering
54dad91f07 use pa_log_ratelimit() at a few places 2009-01-24 00:12:12 +01:00
Lennart Poettering
db27c6347e make module-alsa-card move streams between the old and new sink/source, allowing 'hot' switching between profiles 2009-01-23 22:40:32 +01:00
Lennart Poettering
29cb778dcc move sink input/source output move functions into two parts so that we can start the move, delete the original sink, create a new sink, finish the move; similar for source outputs 2009-01-23 22:38:30 +01:00
Lennart Poettering
967c17a190 teach module-rescue-streams and module-always-sink to not do anything if we are shutting down anyway 2009-01-23 22:30:02 +01:00
Diego E. 'Flameeyes' Pettenò
3e5d9fd37a Use #ifdef to avoid warning about undefined macro. 2009-01-22 23:38:58 +01:00
Jared D. McNeill
7c7133e09d NetBSD sometimes doesn't know SNDCTL_DSP_GETODELAY
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-22 02:24:04 +01:00
Jared D. McNeill
61075a78f7 NetBSD doesn't know ENOLINK
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-22 01:57:52 +01:00
Jared D. McNeill
75eeea65bd NetBSD needs to include sys/uio.h for some socket functions
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-22 01:37:38 +01:00
Lennart Poettering
bb23932e9a When resuming an OSS device ask for the very same fragment settings as we did the first time
In OSS it is only possible to request fragment sizes that are powers of
2. However actually selected fragment sizes may be arbitrary values.
This means that it is not always possible to request the same fragment
size after a suspend that was used before the suspend because we simply
cannot express it in the request. To work around that we should issue
the same request as we did the first time.
2009-01-22 01:15:49 +01:00
Lennart Poettering
3be4c31ee0 rework module-hal-detect and make it use module-alsa-card instead of module-alsa-sink/-source 2009-01-22 00:26:34 +01:00
Lennart Poettering
b2ef19acc5 include PA_SINK_INVALID_STATE in all switch/case statements to make gcc shut up 2009-01-22 00:26:34 +01:00
Lennart Poettering
4b2a682741 fix minor memleak in prober 2009-01-22 00:26:34 +01:00
Lennart Poettering
b606c0940a rework logic how alsa sinks/sources/cards are named 2009-01-22 00:26:34 +01:00
Lennart Poettering
1c84251ec5 fix segfault when in record-only mode 2009-01-22 00:26:34 +01:00
Lennart Poettering
8519f54a0e only reread volume if we actually have a good mixer. Closes #466 2009-01-22 00:26:29 +01:00
Lennart Poettering
40f2e21aa7 make gcc shut up a bit more 2009-01-22 00:19:04 +01:00
Lennart Poettering
bdfec1feba mark a few more ALSA dB values as 'valid' for valgrind 2009-01-22 00:16:28 +01:00
Lennart Poettering
13315a7e4c add a card profile restore module 2009-01-21 02:49:42 +01:00
Lennart Poettering
c512ebf4ab minor cleanups 2009-01-21 02:47:49 +01:00
Lennart Poettering
10e5c70286 don't restore mute/volume when already set 2009-01-21 02:47:26 +01:00
Lennart Poettering
e8f93b125e make implementation of module-alsa-card complete 2009-01-21 02:02:30 +01:00
Lennart Poettering
7ca0e00a2c fill in dev_id properly 2009-01-21 02:01:44 +01:00
Lennart Poettering
28f05e0435 remove leftover define 2009-01-21 01:59:59 +01:00
Lennart Poettering
16d200e369 add an API to create arbitrary alsa sinks/sources dynamically without having to load/unload modules 2009-01-21 00:23:18 +01:00
Lennart Poettering
b88b89a676 add new call pa_alsa_open_by_device_id_profile() 2009-01-20 21:37:30 +01:00
Lennart Poettering
04e9214065 export pa_channel_map_superset() 2009-01-20 21:37:23 +01:00
Lennart Poettering
7368a6e6be add priority logic to find best default profile 2009-01-20 20:35:18 +01:00
Lennart Poettering
b3a043fd31 always add 'disabled' profile 2009-01-20 20:34:46 +01:00
Lennart Poettering
67fcc76093 fix profile names to include input/output specifier 2009-01-20 03:23:32 +01:00
Lennart Poettering
f83111dd17 Merge commit 'vudentz/master' 2009-01-19 23:12:23 +01:00
Lennart Poettering
b987e5eeb8 fix bad free() 2009-01-19 22:02:40 +01:00
Luiz Augusto von Dentz
4460a5d5d5 Fix hsp rate and channels. 2009-01-19 10:19:53 -03:00
Lennart Poettering
c06e43d7ff actually create pa_card object in module-alsa-card 2009-01-17 02:03:35 +01:00
Lennart Poettering
c560aea4c9 Don't enumerate invalid profile 2009-01-17 02:01:37 +01:00
Lennart Poettering
f03a7e43db Split up pa_alsa_init_proplist into two seperate functions for the card and snd_pcm_t specific parts 2009-01-17 02:00:57 +01:00
Lennart Poettering
b4d80462bf add card profile prober 2009-01-16 23:33:15 +01:00
Lennart Poettering
b2b2eb1ee7 remvoe a bit of duplicate code 2009-01-16 22:01:45 +01:00
Lennart Poettering
4a13763797 Add support for 24bit samples encoded in the LSB of 32 bit words 2009-01-16 18:39:36 +01:00
Lennart Poettering
6dc76d1158 add support for 24bit packed samples 2009-01-16 03:15:39 +01:00