Commit graph

1038 commits

Author SHA1 Message Date
Lennart Poettering
7891f964e4 module-stream-restore: don't fiddle with sinks/sources/streams that are not fully set up yet 2009-08-14 23:55:32 +02:00
Lennart Poettering
e8340345f6 alsa: enable ext. amplifier by default 2009-08-12 00:56:10 +02:00
Lennart Poettering
462cdf44b7 alsa: adjust priority bonus of mappings that match the configured default channel map
We need to make sure that having both input and output weighs more for
selecting the default profile than a channel map that matches the
default channel map has.

https://bugzilla.redhat.com/show_bug.cgi?id=496320
2009-08-12 00:53:38 +02:00
Lennart Poettering
d27e26dca0 volume-restore: forward module load return value of stream-restore back to caller 2009-08-11 23:19:28 +02:00
Lennart Poettering
c117febbe4 hal: replace subdevs= parameter by subdevices= parameter
Abbreviating tsched like this was bad enough, so let's not add another
option here.
2009-08-11 23:18:01 +02:00
Lennart Poettering
c904f97e2d hal: add stub module that loads module-udev-detect instead of module-hal-detect
This adds module-hal-detect-compat.c which when enabled will be compiled
into a module module-hal-detect which simply loads module-udev-detect.

The purpose of this is to allow easy upgrading without breaking
default.pa. Distributions are recommended to enable this to easy
upgrades from HAL versions of PA to udev versions.
2009-08-11 23:04:35 +02:00
Diego Elio 'Flameeyes' Pettenò
4c15115007 Split OSS support in output and wrapper.
Since Fedora does not enable OSS output support at all, but still uses
padsp, and in Gentoo we could also make use of padsp without OSS output
support, split the two things in two parameters, although they both check
for sys/soundcard.h once.
2009-08-08 01:53:15 +02:00
Lennart Poettering
7d4916379b ladspa/remap: make sure we process all requested rewinds unconditionally
In some situations a rewind request travelling downstream might be
optimized away on its way and an upstream rewind processing might never
come back. Hence, call _process_rewind() before each _render()just to
make sure we processed them all.
2009-08-07 23:58:45 +02:00
Lennart Poettering
51b3899348 core: save volume/mute changes coming from the hardware automatically
Volume changes coming from the lower layers are most likely changes
triggered by the user, so let's save them automatically.
2009-08-07 23:55:06 +02:00
Lennart Poettering
9b2534b6d0 alsa: properly treat ESTRPIPE as system suspend 2009-08-04 00:23:43 +02:00
Lubomir Rintel
34f31f666e Recover stream when it's suspended upon rewind
Error from snd_pcm_rewind() might mean we just woke up from suspend and
didn't have a chance to try to recover the stream since we didn't write
to it in between. Call try_recover() in such cases.

Note that for this to work kernel must return ESTRPIPE instead of EBADF
for rewind/forward attempts on suspended streams, so that
snd_pcm_recover() can recognize it should snd_pcm_resume() the stream.
This is not the case yet (2.6.31-rc5), patch is available.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
2009-08-03 22:47:15 +02:00
Lennart Poettering
e5c2256e36 pipe: replace PIPE_BUF macro pa pa_pipe_buf call
This should help portability to platforms that lack PIPE_BUF. Based on a
patch from Samuel Thibault.

See ticket #546
2009-08-01 01:59:58 +02:00
Lennart Poettering
0113e7282c hal: add option to initialize all subdevices of an OSS device
Patch from 'cmt', closes ticket #544
2009-07-31 23:13:21 +02:00
Lennart Poettering
39aa1cf94d alsa: revert to first set number of periods, then set buffer size
Apparently some ALSA drivers aren't happy with getting the buffer size
configured first followed the period size. So swap the order again and
document this for future reference so that we don't turn that around
again.
2009-07-31 02:07:24 +02:00
Lennart Poettering
c14f6c179f tunnel: don't assert on misaligned reads, closes #597 and rhbz #496310 2009-07-31 00:50:19 +02:00
Lennart Poettering
5efb07281d alsa: throw timing data away after device resume 2009-07-24 20:13:52 +02:00
Lennart Poettering
2bbdf631f8 udev: explain what happened when inotify_add_watch() returned ENOSPC, rhbz #513571 2009-07-24 13:58:22 +02:00
Lennart Poettering
18433c19b6 alsa: handle correctly if alsa returns us 0 or EAGAIN on snd_pcm_mmap_begin if we didn't call snd_pcm_avail immediately before 2009-07-24 13:45:59 +02:00
Lennart Poettering
c325b93c01 alsa: don't reset volume/mute when selecting path 2009-07-23 19:24:26 +02:00
Lennart Poettering
ac38c4d898 build-sys: add a couple of stub Makefiles 2009-07-23 18:49:28 +02:00
Lennart Poettering
1160cad9c3 alsa: control 'Speaker' element as well 2009-07-23 18:44:26 +02:00
Lennart Poettering
e3b0ce57e0 udev: don't fail if /dev/snd is not available right-away 2009-07-22 22:48:54 +02:00
Lennart Poettering
7e2afffb81 alsa: deal properly with IO functions asking us to write 0 bytes 2009-07-22 22:38:38 +02:00
Lennart Poettering
6fdd5846b2 stream-restore: mark volume changes from instant apply as saved ones 2009-07-01 21:11:19 +02:00
Marc-André Lureau
95d3faaac8 bluetooth: don't connect on unconnected profile 2009-07-01 21:00:42 +02:00
Marc-André Lureau
e93c6c36fe bluetooth: warn on EAGAIN after POLLOUT 2009-07-01 21:00:33 +02:00
Lennart Poettering
efdd3d054b reserve: update from upstream git repo 2009-07-01 20:20:36 +02:00
Lennart Poettering
5d4769b7dd alsa: fix a few comments 2009-07-01 20:20:06 +02:00
Lennart Poettering
cd70d7f5b0 bluetooth: don't busy loop when device is not writable but we want to write 2009-07-01 02:21:17 +02:00
Lennart Poettering
c3958aaa07 bluetooth: handle absence of bluez D-Bus service properly 2009-07-01 02:20:23 +02:00
Lennart Poettering
1104141d78 reserve: fix build without D-Bus 2009-06-30 21:13:09 +02:00
Colin Guthrie
a007d4740f combine: Do not set (and update) description if the user passed one in during load.
Note that this will not turn off auto-description setting if the user were to
update the proplist later, so such a change could be short lived.
2009-06-29 22:52:31 +01:00
Diego Elio 'Flameeyes' Pettenò
2266a39bd3 Remove the call for pa_rtpoll_install() in the Solaris module.
I hope this is enough, since the removal of the other pa_rtpoll_install()
calls deemed Linux good enough, but said nothing about Solaris, but since
the function is gone there is little more to do.
2009-06-29 17:41:27 +02:00
Diego Elio 'Flameeyes' Pettenò
24564afc43 Fix the moved rtclock.h header in the Solaris module. 2009-06-29 17:41:18 +02:00
Lennart Poettering
5b78752a04 intended-roles: drop quite a few unnecessary includes 2009-06-23 16:09:32 +02:00
Lennart Poettering
ef85558abd modules: pass properly initialized userdata pointers to various hooks 2009-06-23 04:25:45 +02:00
Lennart Poettering
b6d0b0e808 intended-roles: properly initialize split state 2009-06-23 04:23:26 +02:00
Lennart Poettering
b627d68721 intended-roles: fix symdef header inclusion 2009-06-23 03:35:34 +02:00
Lennart Poettering
fc33f7ee97 Merge most of elmarco/rtclock2
Merge commit 'e4d914c945'
2009-06-22 23:09:46 +02:00
Lennart Poettering
374efbded4 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2009-06-22 22:36:31 +02:00
Lennart Poettering
aa2570c2ba rescue: make sure module-rescue-streams is used only as last fallback 2009-06-22 22:36:23 +02:00
Lennart Poettering
60d36c7e74 module-stream-restore: recheck stream database on hotplug/unplug and potentially move streams 2009-06-22 22:35:55 +02:00
Lennart Poettering
27af46045b modules: add module-intended-roles that automatically puts streams marked with a role on devices that are intended for that role 2009-06-22 22:34:57 +02:00
Lennart Poettering
c4d90ea986 restore: change 'save' flag behaviour to reflect whether an entry shall and/or is in the on-disk databases 2009-06-22 22:33:09 +02:00
Marc-André Lureau
0955e3d45b Base mainloop on pa_rtclock_now()
Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Marc-André Lureau
125c528896 pulse: move pa_rtclock_now in pulsecommon 2009-06-20 17:29:08 +03:00
Lennart Poettering
32e2cd6d32 core: get rid of rt sig/timer handling since modern Linux' ppooll() is finally fixed for granularity 2009-06-19 21:00:06 +02:00
Marc-André Lureau
5dcdd5e358 perl -p -i -e 's/pa_rtclock_usec/pa_rtclock_now/g' find . -name '*.[ch]' 2009-06-19 19:04:04 +03:00
Lennart Poettering
6ad3855639 alsa: synthesize volume values more sensibly for channels that are not controllable in hw 2009-06-19 02:03:03 +02:00
Lennart Poettering
b1ea7c0d89 alsa: document alsa mixer path/profile sets a bit more 2009-06-19 01:55:59 +02:00