Commit graph

367 commits

Author SHA1 Message Date
Lennart Poettering
b1ea7c0d89 alsa: document alsa mixer path/profile sets a bit more 2009-06-19 01:55:59 +02:00
Lennart Poettering
b70b5edcfc alsa: add copyright blobs and comments to all mixer paths/profile sets 2009-06-19 01:30:24 +02:00
Lennart Poettering
11d2a7ee21 alsa: move udev rules file behind the other sound related rules 2009-06-18 23:03:28 +02:00
Lennart Poettering
0fd17c6cb9 alsa: document default profile set a bit better 2009-06-18 23:00:53 +02:00
Lennart Poettering
8a5f8f41f6 alsa: add profile set for Native Instruments 4 DJ 2009-06-18 22:58:58 +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
25e5197f6a alsa: merge mic boost into volume slider 2009-06-18 15:50:41 +02:00
Lennart Poettering
8fe50b0d7c alsa,core: include mapping name in description strings 2009-06-18 04:38:59 +02:00
Lennart Poettering
ca560ccc4a alsa: add profile set for Native Instruments Audio 8 DJ sound card 2009-06-18 03:58:05 +02:00
Lennart Poettering
60df970bd9 alsa: properly count mappings of manually defined profiles 2009-06-18 03:43:51 +02:00
Lennart Poettering
b5cea8d590 alsa: fix duplicate mapping detection 2009-06-18 03:43:22 +02:00
Lennart Poettering
34b48887ef alsa: when creating alsa sinks/sources include mapping name in device name to allow profiles mit multiple sinks or multiple sources 2009-06-18 03:42:39 +02:00
Lennart Poettering
334325efd7 alsa: allow placing device id in alsa device strings at arbitrary positions 2009-06-17 04:17:25 +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
1e8a374f2f alsa: fix bad memory access for devices that lack a mixer 2009-06-10 23:22:12 +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
Lennart Poettering
561c0af851 alsa: monitor device reservation status and resume automatically when device becomes unused 2009-06-05 19:05:42 +02:00
Lennart Poettering
00797b8b6e core: add a suspend cause flags field 2009-06-05 19:05:07 +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
0cb383717e alsa: be a bit more verbose when a hwparam call fails 2009-05-14 01:25:07 +02:00
Lennart Poettering
dfd6b61cd1 alsa: include mixer name in sink/source properties 2009-05-12 22:55:50 +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
4bffc7849f alsa: initialize buffer size before number of periods to improve compat with some backends 2009-05-01 04:16:17 +02:00
Lennart Poettering
4129f51194 alsa: don't hit an assert when invalid module arguments are passed 2009-05-01 04:11:30 +02:00
Lennart Poettering
d8710711fb 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-04-29 01:58:18 +02:00
Lennart Poettering
ad2a0ab40b alsa: remove debug code 2009-04-19 19:25:42 +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
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
d8de5d374e make sure we never overflow when calculating sleep time
Issue pointed out by Jaroslav Kysela
2009-04-13 03:40:46 +02:00
Lennart Poettering
991cb06134 set fixed latencies at more places where appropriate 2009-04-10 02:26:59 +02:00
Lennart Poettering
5388b44b9a alsa: when printing warning about bogus data from alsa include snd_pcm_dump() 2009-04-10 01:58:39 +02:00
Lennart Poettering
6ba3333030 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2009-04-05 03:05:51 +02:00
Lennart Poettering
d035f4a3f3 Modify smoothing code to make cubic interpolation optional and allow 'quick fixups' on resuming
The primary reason for this change is to allow time graphs that do not
go through the origin and hence smoothing starting from the origin is
not desired. This change will allow passing time data into the smoother
while paused and then abruptly use that data without smoothing using the
'quick fixup' flag when resuming.

Primary use case is allowing recording time graphs where the data
recorded originates from a time before the stream was created. The
resulting graft will be shifted and should not be smoothened to go
through the origin.
2009-04-05 02:26:02 +02:00
Lennart Poettering
77a1e3876b refuse to initialize on modem devices 2009-04-04 04:12:42 +02:00
Maarten Bosmans
8bcb9c6910 various spelling fixes 2009-04-04 02:27:13 +02:00
Lennart Poettering
143e1ba739 downgrade a few messages 2009-04-03 17:49:05 +02:00
Kyle Cronan
92ae5f1a74 Specifying ALSA mixer control
On Fri, Mar 27, 2009 at 7:21 AM, Lennart Poettering <lennart@poettering.net> wrote:

>> I tried installing the latest git sources on my Ubuntu Jaunty box but
>> it just broke sound in all my applications.  For my own purposes, I'm
>> going to need to start with the Ubuntu-patched 0.9.14.  However, if
>> you are willing to accept this patch I will forward port it so that it
>> applies to the latest sources.  It's a completely harmless change, so
>> why not apply it?
>
> Yes, I am happy to apply it. Could you please update it for current git?
>

Great.  An updated patch is attached.  For symmetry, I added this
option to the alsa source module as well.

The Ubuntu folks have customized pulse so much that it is difficult
for me to get this version working on my system.  For this patch I
have only made sure that it compiles.  But it does pretty much the
same thing as the one for 0.9.14, which is working great for me.

Thanks,
Kyle
2009-03-31 00:56:41 +02:00
Lennart Poettering
e3f15104cf don't enabled tsched on software ALSA devices 2009-03-30 18:00:23 +02:00
Lennart Poettering
4edb109239 use u->use_tsched everywhere 2009-03-25 16:17:45 +01:00
Lennart Poettering
0316dba9d1 set latency range only in tsched mode 2009-03-25 00:41:23 +01:00
Lennart Poettering
44ca897769 introduce new flag that marks sinks/sources which can adjust the latency dynamically 2009-03-25 00:30:54 +01:00
Lennart Poettering
2f9a784167 set request/rewind sizes only via accessor functions 2009-03-24 21:13:41 +01:00
Lennart Poettering
aa92ff408c simplify latency range by not allowing stored 'wildcard' ranges anymore 2009-03-24 21:06:57 +01: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
025107876c fix channel mapping for a52 devices. Closes #508 2009-03-20 14:15:18 +01:00
Lennart Poettering
869341729f various smaller cleanups 2009-03-04 02:55:34 +01:00