Commit graph

5340 commits

Author SHA1 Message Date
Tanu Kaskinen
021aa306aa dbusiface-core: Track sinks and sources using synchronous hooks instead of asynchronous subscription events.
Using the subscription events caused an assertion crash sometimes when a sink
was removed and a new sink was created (i.e. card profile change) and a stream
was moved from the removed sink to the new sink. The stream dbus object's
subscription callback got a change event before the core dbus object's
subscription callback got the sink remove/creation events. The stream's
subscription callback then queried the core for the object path of the new
sink, and since the core was not yet aware of the new sink, an assertion was
hit in pa_dbusiface_device_get_path().

Now that the core uses synchronous hooks to keep the sink and source lists up
to date, this particular problem can't occur anymore.
2010-08-10 15:19:50 +03:00
Lennart Poettering
1552abf628 udev: fix hex decoding 2010-07-19 01:27:22 +02:00
Pierre-Louis Bossart
f26c849efc alsa: add missing iec958 files from previous commit 2010-07-15 08:18:29 +01:00
Pierre-Louis Bossart
fb405765d9 alsa: fix mixer profiles, add passthrough config
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
2010-07-13 23:33:45 +01:00
Pierre-Louis Bossart
cb55b00ccd alsa: disable rewinds when using ALSA plugins
This is required to when playing on a52: device, rewind is broken
in those plugins.
Credits to Michael Rans <mcarans@yahoo.co.uk> for finding this
workaround, and Tanu Kaskinen <tanuk@iki.fi> for providing
valuable feedback.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
2010-07-13 22:10:39 +01:00
Colin Guthrie
3ede7e4c01 alsa: Fix assertion on mmap_write (triggered via a52 plugin) 2010-07-13 22:08:23 +01:00
Colin Guthrie
1415a295c2 Merge remote branch 'tanuk2/fixes' 2010-06-05 18:21:31 +01:00
Daniel Mack
3df6845101 modules/coreaudio: replace deprecated functions
All API calls are now consolidated in AudioObject* calls, the old model
has been deprecated in 10.6. Follow that change.
2010-05-15 16:08:16 +01:00
Tanu Kaskinen
22a8c4485b dbus: Stop polling every 10 seconds to check whether all clients are still alive.
Instead, watch for org.freedesktop.DBus.Disconnected signals.
2010-05-10 14:34:55 +03:00
Tanu Kaskinen
71ef5fe7e8 stream-restore: When changing restore entries with D-Bus, apply the changes immediately. 2010-05-10 14:33:54 +03:00
Tanu Kaskinen
5012dc8450 dbus: Fix slightly messed up assertions. 2010-05-10 14:33:16 +03:00
Tanu Kaskinen
63c24fa49a dbus: Use a struct as the hashmap items for listening_signals.
Previously we used libdbus's memory as keys in listening_signals, which caused
that the memory of the hashmap keys got overwritten, which led to that signals
weren't sent properly.
2010-05-10 14:29:30 +03:00
Tanu Kaskinen
c161115288 stream-restore: Fix segfaulting. The dbus entry callbacks expect a dbus_entry pointer instead of a userdata pointer. 2010-05-10 14:11:15 +03:00
Tanu Kaskinen
acaeb71cf8 dbus: Fix segfault when receiving a property access call that isn't permitted. 2010-05-10 14:10:09 +03:00
Tanu Kaskinen
ad7c8ebff5 dbus: Initialize properly the type field of new server structs. 2010-05-10 14:09:51 +03:00
Tanu Kaskinen
a976db7c49 dbus: Make it possible to allow remote connections from outside localhost. 2010-05-10 14:08:55 +03:00
Tanu Kaskinen
2dcf378741 cli: Increase the command maximum length from 1024 to 2048. 2010-05-10 14:08:04 +03:00
Tanu Kaskinen
7bc5cd7845 alsa: Fix log output to inform about positive base volumes correctly.
Positive base volume can happen, if the alsa volume range has been limited. For
example, in an embedded environment it may be known that the sound device is
capable of louder output than what the speakers can handle, so setting the max
volume below 0 dB makes sense.
2010-05-10 14:07:12 +03:00
Tanu Kaskinen
6a5f0ba431 alsa-mixer: Replace erroneous PA_ALSA_VOLUME_IGNORE with PA_ALSA_ENUMERATION_IGNORE.
This fix doesn't have any concrete effect, because the two constants have the
same value.
2010-05-10 14:05:25 +03:00
Tanu Kaskinen
77312d06c8 alsa-mixer: Use pa_xfree() instead of pa_xstrdup() for freeing a string. 2010-05-10 14:04:51 +03:00
Colin Guthrie
678f12d056 rtp: Fix bracketing in pa_rtp_recv.
The syntactically correct error meant that the timestamp was always
marked as found and only the first header was checked.

In the case where the timestamp was the first header, things
would have worked as expected.

Thanks to pino for reporting via bug refs #818
2010-05-08 14:21:52 +01:00
Jez Austin
74591da68b socket-client: properly handle asyncns failures
We fail to detect when people disable IPv6 in there kernels. This patch
makes sure we don't ignore this error condition.

http://pulseaudio.org/ticket/752
https://bugzilla.mozilla.org/show_bug.cgi?id=533470
http://bugs.freedesktop.org/show_bug.cgi?id=25742
2010-05-08 14:21:01 +01:00
Colin Guthrie
dfcaa9325c intended-roles: Do not pick monitor sources when doing automatic role-based device selection 2010-05-08 14:20:50 +01:00
Daniel T Chen
f7b262763a alsa: Handle 'Digital Mic' as an 'Input Source'
BugLink: https://launchpad.net/bugs/533877

Some laptops have 'Digital Mic' exposed as an 'Input Source', e.g., Dell
XPS 1330, so handle these, too.
2010-05-08 14:20:06 +01:00
Kees Cook
87fdbb544b core-util: ensure that we chmod only the dir we ourselves created 2010-05-08 14:19:08 +01:00
Lennart Poettering
abb05d610d tests: fix once test 2010-05-08 01:50:05 +02:00
Pierre-Louis Bossart
4df443bbe6 add rewind-safeguard parameter
Rewinding the ring buffer completely causes audible issues with DMAs.
Previous solution didn't work with tsched=0, and used tsched_watermark
for guardband, which isn't linked to hardware and could become really high
if underflows occurred.

Added separate parameter that can be tuned to hardware limitations and size
of DMA bursts.
2010-05-08 01:38:25 +02:00
David Henningsson
f081c152f3 jack: Prevent crash on jack server shutdown 2010-05-08 01:30:55 +02:00
Lennart Poettering
cdc2769162 thread: name all threads so that the names appear in /proc/$PID/task/$TID/comm 2010-05-07 23:58:59 +02:00
Colin Guthrie
5248a584a3 build-sys: Mention dbus support in the summary 2010-02-25 14:00:08 +00:00
Lennart Poettering
c6b9931bf1 virtual: when fixed block sizes are used the memblockq must have a silence block 2010-02-25 02:41:09 +01:00
Lennart Poettering
34bb996e69 virtual: document how to implement fixed block size filters 2010-02-25 02:26:03 +01:00
Lennart Poettering
87cc741d0e memblockq: implement new call pa_memblockq_peek_fixed_size() 2010-02-25 02:10:45 +01:00
Lennart Poettering
5030852c8e virtual: minor simplifications for the virtual sink 2010-02-25 00:39:56 +01:00
Lennart Poettering
066e626401 equalizer: various smaller cleanups for m-e-s 2010-02-25 00:39:06 +01:00
Lennart Poettering
616a8997b3 core: rework how stream volumes affect sink volumes 2010-02-23 18:41:18 +01:00
Lennart Poettering
d11cd33e3a alsa: don't make use of tsched related variables when tsched is disabled 2010-02-23 03:23:22 +01:00
Lennart Poettering
c970131094 esd,simple: use pa_memblockq_pop_missing()
We need to use pa_memblockq_pop_missing() for all request handling,
including the initial request, because otherwise the counters will be
stay off during the entire runtime.

This should fix:

https://bugzilla.redhat.com/show_bug.cgi?id=559467
2010-02-23 01:24:01 +01:00
Lennart Poettering
dbdc666fb6 various modernizations 2010-02-23 01:23:41 +01:00
Lennart Poettering
028aa734f8 iochannel: remove fd from poll() when we don't care from events
This should make it unlikely that we loop on SIGHUP indefinitely.

Also, this makes it possible for callbacks not to process all events and
still not busy loop.
2010-02-23 01:20:25 +01:00
Lennart Poettering
b5e30764c4 native: improve logging for buffer_attrs 2010-02-22 04:57:21 +01:00
Lennart Poettering
0555c2ec7c suspend-on-idle: resume audio device even for initially corked streams
We need to resume audio devices even for streams that are created in
corked stat, so that the latency ranges of the audio device are known
during the initial latency negotiation. If we don't the latency
negotiation will be based on placeholder data and changed later on which
clients do not expect.

This should fix issues with Skype.

https://bugzilla.redhat.com/show_bug.cgi?id=554929
2010-02-22 04:57:15 +01:00
Lennart Poettering
250aeceb4d alsa: reset max_rewind/max_request while suspending 2010-02-22 04:54:24 +01:00
Lennart Poettering
0b3d7c637c alsa-util: strip spaces from ALSA card/pcm names
http://pulseaudio.org/ticket/778
2010-02-21 22:00:49 +01:00
Lennart Poettering
0c7c9653b1 conf-parser: make use of pa_strip() wherever applicable 2010-02-21 22:00:16 +01:00
Lennart Poettering
f1af7a02d1 core-util: introduce generic function pa_strip() 2010-02-21 21:59:53 +01:00
Matthijs Kooijman
f8aceafb13 http: support HTTP HEAD
http://pulseaudio.org/ticket/781
2010-02-21 21:46:06 +01:00
Lennart Poettering
ebf2116810 i18n: run make update-po 2010-02-21 21:17:36 +01:00
Lennart Poettering
cde8044f28 i18n: update LINGUAS 2010-02-21 21:17:27 +01:00
Cheng-Chia Tseng
f7415e3ce9 l10n: Updates to Chinese (Taiwan) (zh_TW) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-21 21:17:27 +01:00