Commit graph

88 commits

Author SHA1 Message Date
David Henningsson
426daaf6bb alsa: add card ports and path probe cache
To be able to add ports to all profiles, we need to probe all
profiles at startup. To speed this up, we now have a cache of
probes paths which is owned by the profile set. Since paths
are now owned by the profile set, the path set must now have
a hashmap of paths instead of a linked list.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2011-12-01 21:49:17 +02:00
Lars R. Damerow
1e6eda8eda alsa: fixed_latency_range modarg for module-alsa-card 2011-11-03 21:31:48 +01:00
Tanu Kaskinen
12fe756993 alsa: Handle the "profile" modarg in module-alsa-card 2011-10-20 09:28:44 +05:30
Tanu Kaskinen
a88b1d5cd4 alsa: New modarg "paths_dir" for module-alsa-card
The new module argument can be used to provide a custom
directory for loading alsa path configuration files. This is
useful for testing: no need to be root to create test
configuration files.
2011-10-17 12:54:23 +05:30
Colin Guthrie
aa3142ab20 volume: Rename 'sync volume' to 'deferred volume'.
This just covers Lennart's concern over the terminology used.

The majority of this change is simply the following command:
 grep -rli sync[-_]volume . | xargs sed -i 's/sync_volume/deferred_volume/g;s/PA_SINK_SYNC_VOLUME/PA_SINK_DEFERRED_VOLUME/g;s/PA_SOURCE_SYNC_VOLUME/PA_SOURCE_DEFERRED_VOLUME/g;s/sync-volume/deferred-volume/g'

Some minor tweaks were added on top to tidy up formatting and
a couple of phrases were clarified too.
2011-09-13 21:15:49 +01:00
Colin Guthrie
db704130d6 alsa: Tidy up argument descriptions 2011-09-07 21:16:03 +01:00
Maarten Bosmans
b4e938e194 Move i18n.[ch] to src/pulsecore
The header is used in files troughout the tree and is not included in the public api,
so it belongs in pulsecore, not in pulse.
2011-08-11 13:23:42 +02:00
Tanu Kaskinen
973813485f alsa-card: Print the profile set configuration when loading the card. 2011-03-11 13:39:50 +02:00
Tanu Kaskinen
4842077a1e alsa-mixer: Add DecibelFix section to the profile set config file format.
This commit only implements the parser, the decibel fix data is not yet used
for anything.
2011-03-11 13:34:24 +02:00
Tanu Kaskinen
624152dac3 alsa-card: Add a new modarg "profile_set" for giving the card a custom profile set configuration file. 2011-02-25 15:44:57 +00:00
Jyri Sarha
1bea955829 alsa: Take syncronized HW volume infra into use for alsa-sink
Signed-off-by: Jyri Sarha <jyri.sarha@nokia.com>
Reviewed-by: Tanu Kaskinen <tanu.kaskinen@digia.com>
Reviewd-by: Colin Guthrie <cguthrie@mandriva.org>
2010-10-16 11:53:39 +01:00
Tanu Kaskinen
c277dc65a3 module-alsa-card: New argument: namereg_fail.
This is added so that module-udev-detect can load multiple module-alsa-card
instances with the same card name - forcing namereg_fail to false allows the
name registry to mangle the card names to be unique.
2010-08-24 17:58:35 +03:00
Lennart Poettering
8364b959b4 alsa: when probing for profiles configure buffer/period sizes since some broken drivers apparently need that 2009-09-09 23:56:51 +02:00
Lennart Poettering
348dcd6a31 alsa: unify alsa log handling and snd_config_update_free_global() handling in one place 2009-06-18 21:27:02 +02:00
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
1c4393acf0 modules: add {sink|source|card}_properties argument to all modules 2009-05-28 02:39:22 +02:00
Lennart Poettering
d2198c9ba1 alsa: fix wording, we are speaking of card profiles, not output profiles 2009-05-26 22:29:33 +02:00
Lennart Poettering
98a25c506e alsa: properly convert return values of snd_strerror() to utf8 2009-04-19 19:22:51 +02:00
Lennart Poettering
99dae9b1af don't try to unref reserve stuff if we don't use it 2009-03-20 14:47:36 +01:00
Lennart Poettering
f3de61edf6 fix device reservation for system mode 2009-03-03 22:27:05 +01:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Lennart Poettering
671b927955 add logic for initializing a useful icon name 2009-03-01 21:38:27 +01:00
Lennart Poettering
784ac5b0da get additional device data from udev 2009-03-01 21:38:22 +01:00
Lennart Poettering
8314858183 set reserve interface application device name 2009-02-24 11:29:35 +01:00
Lennart Poettering
c341010304 implement device reservation scheme 2009-02-24 06:13:39 +01:00
Lennart Poettering
1a45569b3e prefer profiles that match the default channel map 2009-02-21 16:36:48 +01:00
Lennart Poettering
9f813dd5b3 Make sure we actually call _() for translating profile names 2009-02-20 03:18:17 +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
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
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
b606c0940a rework logic how alsa sinks/sources/cards are named 2009-01-22 00:26:34 +01:00
Lennart Poettering
e8f93b125e make implementation of module-alsa-card complete 2009-01-21 02:02:30 +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
c06e43d7ff actually create pa_card object in module-alsa-card 2009-01-17 02:03:35 +01:00
Lennart Poettering
b4d80462bf add card profile prober 2009-01-16 23:33:15 +01:00