Commit graph

5190 commits

Author SHA1 Message Date
Lennart Poettering
fb55798a3e pacat: allow configuration of latency in msec 2010-02-09 22:44:30 +00:00
Lennart Poettering
544fa0b7db udev: use ID_MODEL_ENC instead of ID_MODEL if it is set
That way we should be able to make use of the nicer USB strings the USB
hw provides.

Fixes the issues pointed out in:

https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-January/006248.html
2010-02-09 22:44:00 +00:00
Lennart Poettering
4315f277bc alsa: cover bass boost mixer element
http://pulseaudio.org/ticket/740
2010-02-09 22:43:14 +00:00
Lennart Poettering
63ebd05464 udev: rework modem detection a bit
Check every single pcm device of a card whether it is a modem.
2010-02-09 22:34:10 +00:00
Daniel T. Chen
c2ab61c54d udev: handle sound cards with both modem and audio properly
http://pulseaudio.org/ticket/681
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/394500
2010-02-09 22:33:28 +00:00
Colin Guthrie
7b89c8531c alsa: Cover the 'Int Mic Boost' element.
This is not 100% ideal as we have not way to tie specific boosts to specific
inputs and this particular chipset (as noted in #772) appears to
support just that.

For the time being incorporate it into the normal boost logic.

See http://pulseaudio.org/ticket/772
2010-02-09 22:33:18 +00:00
Colin Guthrie
7f6531d3ce alsa: cover Input Source:Int Mic
As seen on some HDA chips (e.g. Fujitsu Siemens S6410)
Refs http://pulseaudio.org/ticket/772
2010-02-09 22:32:53 +00:00
Lennart Poettering
54025c96a7 cpu: check for CMOV flag before using this intsruction in assembly
http://pulseaudio.org/ticket/776
2010-02-09 22:32:39 +00:00
Lennart Poettering
c88e4680f0 alsa: ignore volume changes from the hw if we are not on the active console 2010-02-09 22:32:28 +00:00
Lennart Poettering
ce7bd05ca5 udev: make sure we get events only for sound devices 2010-02-09 22:32:14 +00:00
Lennart Poettering
f732c23d95 log: add an easy way to disable log rate limiting
Should help with debuggin bugs like:

https://bugzilla.redhat.com/show_bug.cgi?id=554405
2010-02-09 22:31:55 +00:00
Lennart Poettering
41ce7cbde9 bluetooth: fix invalid memory access
When an GetProperties() reply arrives after we already deleted the
device structure for it make sure we don't accidentaly touch the
invalidated object.

https://bugzilla.redhat.com/show_bug.cgi?id=543205
2010-02-09 22:31:40 +00:00
Lennart Poettering
7f7455b1be once: make once related variables volatile 2010-02-09 22:31:30 +00:00
Lennart Poettering
66ddeede9e udev: don't forget to unref devices we are not interested in
https://bugzilla.redhat.com/show_bug.cgi?id=552932
2010-02-09 22:31:18 +00:00
Lennart Poettering
9ac12b7048 client: verify connection state in pa_stream_connect_upload()
Make suer we check the connection state before going on, so that we can
rely that s->context->pstream is properly initialized.

https://bugzilla.redhat.com/show_bug.cgi?id=539500
2010-02-09 22:31:01 +00:00
Lennart Poettering
7ab9bea29d client: detect forking in sample cache API, too 2010-02-09 22:30:20 +00:00
Lennart Poettering
e8a2d12724 bluetooth: don't hit an assert if latency is queried for a stooped recording stream
https://bugzilla.redhat.com/show_bug.cgi?id=537422
2010-02-09 22:30:08 +00:00
Lennart Poettering
21250ff1a7 bluetooth: destruct stream only if it is not already destructed
https://bugzilla.redhat.com/show_bug.cgi?id=551842
2010-02-09 22:29:56 +00:00
Lennart Poettering
345547853b core: make sure we always return a valid memblock in sink_input_pop() callbacks
https://bugzilla.redhat.com/show_bug.cgi?id=553607
2010-02-09 22:29:38 +00:00
Lennart Poettering
699233fb47 native: fix request counter miscalculations
Do not subtract bytes the client sends us beyond what we requested from
our missing bytes counter.

This was mostly a thinko that caused servers asking for too little data
when the client initially sent more data than requested, because that
data sent too much was accounted for twice.

This commit fixes this miscalculation.

http://bugzilla.redhat.com/show_bug.cgi?id=534130
2010-02-09 22:29:20 +00:00
Lennart Poettering
66dbca1e06 dbus: remove filter functions only if they were actually set before
This fixes an assert when destructing modules that have not been fully
initialized.

https://bugzilla.redhat.com/show_bug.cgi?id=548525
2010-02-09 22:28:17 +00:00
Lennart Poettering
5e2a80c7e3 bump soname 2010-02-09 22:16:05 +00:00
Lennart Poettering
63abcc8330 build-sys: bump soname 2010-02-09 22:12:16 +00:00
Colin Guthrie
cd559553a0 core: Fix macro typo - PA_SINK_IS_LINKED -> PA_SINK_INPUT_IS_LINKED 2010-02-09 21:59:55 +00:00
Colin Guthrie
6fd2d08758 stream-restore: Clear the save_sink/save_source flags on apply_entry.
If the user specifically removes the device element from the stream
restore rule, we have to clear the save_sink/save_source flag of the
stream. This means that other stream routing systems
(e.g. module-device-manager) can take over routing for this
stream. In order to facilitate the reapplication of other routing
rules, we fire a stream change event. Arguably the stream itself
has not changed, but the rules governing its routing have, so
I feel this is justified.
2010-02-05 15:12:19 +00:00
Daniel Mack
2f86ba4fc2 osx: don't build the once-test binary on OS X
OS X lacks the barrier pthread APIs
2010-02-02 12:01:17 +01:00
Paul Menzel
57b0397823 client.conf.in: Typo. s/a/are/
This is the same typo as reported in [1] and fixed in [2] in `client.conf.in`.

I did `git grep "values a commented"` and did not get anymore hits.

[1] http://pulseaudio.org/ticket/783
[2] http://git.0pointer.de/?p=pulseaudio.git;a=commit;h=ea8927f1d47be101a1f64b2f87fd6e527ff76dbe
2010-02-02 09:02:21 +01:00
Paul Menzel
0ac13f17ba man pages: correct formatting/markup of options 2010-02-02 09:01:32 +01:00
Lennart Poettering
f250179b4e shm: explicitly mark shm seg for MAP_NORESERVE to request overcommiting no matter what 2010-02-02 09:01:04 +01:00
Paul Menzel
ea8927f1d4 Typo. s/a/are/
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2010-01-21 14:49:28 +00:00
Lennart Poettering
62bfb511f6 client: include dolby channel names in comments 2010-01-14 21:32:26 +01:00
Lennart Poettering
1bfa1c3b03 start: we don't need to check for $PULSE_SERVER anymore
pulseaudio --start does that internally anyway, so we can get rid of
this here.
2010-01-14 20:33:40 +01:00
Lennart Poettering
2465cfac61 native: when run in system mode, do not look for fallback port 2010-01-14 00:15:51 +01:00
Lennart Poettering
76089b11eb native: fallback to another port if the default port is taken
Unless the port number is explicitly configured we will now fallback to
a kernel picked port if the one we'd like by default we cannot get.

http://pulseaudio.org/ticket/773
2010-01-14 00:13:13 +01:00
Lennart Poettering
21cbcc1a8a client: introduce auto-connect-display= following the scheme of auto-connect-localhost=
Just connecting to a PA server just because X11's $DISPLAY is set might
be a security hole.
2010-01-13 22:15:52 +01:00
Lennart Poettering
3d6cc026e2 client: introduce auto-connect-localhost= option in client.conf
Partly fixes:

http://pulseaudio.org/ticket/773

Also fixes a security hole since listening on the default port is not
access controlled right now.
2010-01-13 22:08:59 +01:00
Lennart Poettering
4b1679e06d Merge remote branch 'tanuk/fixes' 2010-01-13 21:33:11 +01:00
Lennart Poettering
ba255bfc42 tests: add pa_once_xxx() test 2010-01-13 17:40:31 +01:00
Tanu Kaskinen
f1d1447e10 daemon: Don't autospawn if a server address is explicitly configured. 2010-01-09 12:43:05 +02:00
Tanu Kaskinen
25435bf373 sink-input: Replace a tab indentation with spaces. 2010-01-06 11:03:19 +02:00
Tanu Kaskinen
cc82553d7e idxset: Fix _get_by_data() comment. 2010-01-06 10:48:32 +02:00
huan zheng
aa9348441d core: volume ramping fix
Hi,
I found that volume ramping is inside PA now.
there's a minor fix here, it is a bug i found after the patch is submitted:

line 1781 of sink-input.c :
if ((i->thread_info.ramp_info.envelope_dying - nbytes) <= 0) {
need to be changed to
if ((i->thread_info.ramp_info.envelope_dying - (ssize_t) nbytes) <= 0) {

otherwise this argument will never be negative since nbytes is of type
size_t which is unsigned.
Please change it when you have time, sorry if bring any inconvenience.  :)
2010-01-06 00:22:23 +01:00
Lennart Poettering
6dfb1ee27e Merge remote branch 'zonque/topic/osx' 2010-01-05 22:52:57 +01:00
Daniel Mack
937c587e77 fix a number of warnings
most of them were due to missing #ifdefs or wrong printf format type for
[s]size_t.
2010-01-05 22:46:13 +01:00
Mads Kiilerich
6faf38313e headers: Some trivial fixes for some documentation typos
Note also the willneed/will_need inconsistency. I guess it could be nice to ASAP
choose one of them and introduce a backward compatibility hack for the other.

The issues was mostly found with:
for a in $(grep -r '^[ /]\*.*()' $(
	find -name '*.[ch]') |
	sed 's,^.* \([^ ]*\)().*$,\1,g' |
	sort |
	uniq |
	grep ^pa_)
do
	grep -rq "^.[^*].*\<$a(" $(find * -name '*.h') || echo $a
done
2010-01-05 21:27:33 +01:00
Pierre-Louis Bossart
0e47065fe5 Subject: rtpoll: better support for DEBUG_TIMING logs
On all the platforms I tested, PulseAudio is frequently awaken and
doesn't sleep for the duration specified for the poll timeout.
Sometimes wake-ups occur within milliseconds of the poll call for no
good reason; this seems to be related to ALSA issues (see my posts on
the ALSA mailing list on null poll events).
This patch enables a better log of requested sleep times v. actual
sleep times. Enable DEBUG_TIMING to see actual messages. Please let me
know if you see odd behaviors like the one below
- Pierre

E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 188 ms
E: rtpoll.c: Process time 0 ms; sleep time 48 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 139 ms
E: rtpoll.c: Process time 0 ms; sleep time 49 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 189 ms
E: rtpoll.c: Process time 0 ms; sleep time 0 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 189 ms
E: rtpoll.c: Process time 0 ms; sleep time 49 ms
2010-01-05 21:27:25 +01:00
chocolateboy
a282eadb88 Fix typo in log message: s/may no be/may not be/
Hi, Lennart.

Spotted another typo. Patch attached.

Best wishes,
chocolateboy.
2010-01-05 20:33:35 +01:00
David Kågedal
cb38d4eba1 alsa: add profile set for M-Audio FastTrack Pro USB 2010-01-05 20:14:11 +01:00
Daniel T Chen
d3c71c92ce udev: Use SOUND_CLASS instead of SOUND_FORM_FACTOR when checking for modem
The fact whether an ALSA card is a modem is stored in the SOUND_CLASS,
not the SOUND_FORM_FACTOR property. So read it from there.

Patch from Whoopie.
2010-01-05 20:00:22 +01:00
Daniel T Chen
c5fdbeab85 threaded-mainloop: Properly initialise m->n_waiting_for_accept to prevent deadlock
Compiler optimisations have been seen to initialise
m->n_waiting_for_accept to a positive non-zero value, so the while() in
pa_threaded_mainloop_signal() never proceeds. Fix this by properly
initializing m->n_waiting_for_accept in pa_threaded_mainloop_new().

Patch from Iain Bucław.

https://bugs.launchpad.net/bugs/502992
2010-01-05 19:57:16 +01:00