summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Include sys/filio.h if present; this makes use of FIONREAD on Solaris.Diego Elio 'Flameeyes' Pettenò2009-11-202-0/+8
| | | | | | FIONREAD on OpenSolaris is declared in sys/filio.h. The RTP modules already rely on the presence of FIONREAD, and check for the header, so this brings the pipe source and sink modules on par with them.
* Don't declare the variable l if FIONREAD is not defined.Diego Elio 'Flameeyes' Pettenò2009-11-202-2/+4
| | | | This avoids two warnings due to FIONREAD not being defined.
* Fix build on Solaris: pass the third parameter to pa_cloexec_open.Diego Elio 'Flameeyes' Pettenò2009-11-201-1/+1
|
* alsa: fix minor sampling rate deviations before adjusting the buffer sizeLennart Poettering2009-11-201-7/+9
|
* alsa: fix log output when the audio device refuses to give us again the same ↵Lennart Poettering2009-11-202-2/+2
| | | | period settings we had before
* pulse: ask for timing updates both *before* and *after* triggering a stream ↵Lennart Poettering2009-11-201-2/+36
| | | | state change so that in the STARTED/UNDERFLOW callbacks we accurate transport latency information
* pulse: delay smoother update only when unpausing, not when pausing, since we ↵Lennart Poettering2009-11-201-17/+19
| | | | don't want the timer to advance when we are supposedly already paused
* pulse: try to fix inaccuracy with uncork timing for streams that are created ↵Lennart Poettering2009-11-201-1/+16
| | | | in corked state
* daemon: complain if user passes too many argumentsLennart Poettering2009-11-201-0/+37
|
* rygel: fix itemCount property for sourcesLennart Poettering2009-11-181-11/+34
| | | | Fixes http://pulseaudio.org/ticket/721
* build-sys: Fix missing trailing slash in 14eaf2Colin Guthrie2009-11-161-1/+1
|
* build-sys: Make sure all alsa path config files are installedSjoerd Simons2009-11-151-39/+27
| | | | | While all alsa path configuration files were in EXTRA_DIST not all of them were in in alsapaths_DATA. Fixed by only defining the list in one place
* device-manager: Update docs version -> 0.9.20Colin Guthrie2009-11-111-12/+12
| | | | Third time is a charm... maybe.
* core: make cpuid code compile cleanly with 32bit PICLennart Poettering2009-11-111-2/+6
|
* core: adjust volume only when there is actually a memory blockLennart Poettering2009-11-111-5/+6
| | | | | | Fixes an assert that is hit in somne niche cases: https://bugzilla.redhat.com/show_bug.cgi?id=533482
* protocol: use the right sample rate for sourcesWim Taymans2009-11-101-1/+1
| | | | Use the correct sample rate for reporting about the timing.
* device-manager: Update docs version -> 0.9.20Colin Guthrie2009-11-091-12/+12
|
* jack: never try to autoconnect to MIDI portsLennart Poettering2009-11-052-2/+2
| | | | | | Original patch supplied by 'adi' http://pulseaudio.org/ticket/669
* lirc,mmkvd: added module parameters volume_limit, volume_stepVladimir Kokarev2009-11-052-10/+42
| | | | | | | | volume_limit sets maximum volume that can be set from the module default is PA_VOLUME_NORM*3/2 (150%) volume_step sets step in volume changing default is PA_VOLUME_NORM/20 values are of raw pa_volume_t type
* volume: add pa_cvolume_inc_clamp functionVladimir Kokarev2009-11-053-3/+12
| | | | | | added function to increase volume not exceeding specified limit simply changed PA_VOLUME_MAX to 'limit' in pa_cvolume_inc pa_cvolume_inc now calls pa_cvolume_inc_clamp with PA_VOLUME_MAX limit
* alsa: disable timer-based scheduling inside a VMLennart Poettering2009-11-054-8/+28
| | | | | | | | | | | | | | | In virtual machines sound card clocks and OS scheduling tend to become unreliable, adding various 'uneven' latencies. The adaptive algorithm that handles drop-outs does not handle it this well: in contrast to drop-outs on real machines that are evenly distributed, small and can easily be encountered via the adpative algorithms, drop-outs in VMs tend to happen abruptly, and massively, which is not easy to counter. This patch simply disables timer based scheduling in VMs reverting to classic IO based scheduling. This should help make PA perform better in VMs. https://bugzilla.redhat.com/show_bug.cgi?id=532775
* daemon: during startup say whether we run in a VMLennart Poettering2009-11-051-1/+2
|
* core-util: add call to detect if we are called from within a VMLennart Poettering2009-11-052-0/+92
|
* alsa: introduce more standard path namesLennart Poettering2009-11-051-10/+14
|
* alsa: cover 'Analog Output' controlLennart Poettering2009-11-041-0/+17
| | | | http://pulseaudio.org/ticket/702
* Merge remote branch 'phish3/master'Lennart Poettering2009-10-311-14/+22
|\
| * module-equalizer-sink:Jason Newton2009-10-291-4/+4
| | | | | | | | add premultipliar to sse2 dsp_logic implementation
| * module-equalizer-sink: try to limit buffering to mempool's max_block_size ↵Jason Newton2009-10-291-9/+18
| | | | | | | | and disable debug output
| * drop redundant alloc callJason Newton2009-10-291-1/+0
| |
* | alsa: create a seperate mixer path for Speaker elementsLennart Poettering2009-10-314-13/+107
| | | | | | | | | | | | | | On some cards line-out is independant of Sepaker and it is a good idea to cover that so that they can independantly be activated. https://bugzilla.redhat.com/show_bug.cgi?id=520884
* | alsa: leave other headphone control enabled if possibleLennart Poettering2009-10-315-4/+22
| |
* | alsa: lower priority for Headphone2 pathLennart Poettering2009-10-311-1/+1
| |
* | alsa: cover Input Source:AUX INLennart Poettering2009-10-311-0/+4
| | | | | | | | | | | | As seen on some HDA chips: https://bugzilla.redhat.com/attachment.cgi?id=359804
* | alsa: cover Headphone2 mixer elementLennart Poettering2009-10-314-2/+86
| | | | | | | | | | | | As seen on some drivers: https://bugzilla.redhat.com/show_bug.cgi?id=498612
* | alsa: cover 'Digital Input Source' elementLennart Poettering2009-10-311-0/+14
| | | | | | | | | | | | As used by some HDA devices: https://bugzilla.redhat.com/attachment.cgi?id=365290
* | alsa: cover Mic Jack Mode elementLennart Poettering2009-10-311-1/+12
| | | | | | | | | | | | As used by some HDA chips: https://bugzilla.redhat.com/attachment.cgi?id=366816
* | daemon: make sure pa has its own session and process group, but is not its ↵Lennart Poettering2009-10-313-20/+38
| | | | | | | | leader so that we cannot acquire a tty ever
* | bluetooth: do not hand out access to devices that are not fully configured yetLennart Poettering2009-10-311-2/+8
| |
* | daemon: realpath segfault fixDavid Yoder2009-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Lennart, Apparently I was debugging this at the same time as you. I can't figure out why my Fedora 11 install with glibc-2.10 has a glibc realpath that doesn't match the gnu documentation and returns null. But it does. Your commit aa8ce5bb9b159abb2ffb0f43996340566fc2e9c6 almost fixed my problem, but it needs a tweak. Thanks, David Yoder
* | Mac OS X: add semaphore implementationDaniel Mack2009-10-311-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Wed, Sep 16, 2009 at 11:57:04PM +0200, Lennart Poettering wrote: > On Wed, 16.09.09 15:15, Daniel Mack (daniel@caiaq.de) wrote: > > > + s = pa_xnew(pa_semaphore, 1); > > + MPCreateSemaphore(UINT_MAX, value, &(s->sema)); > > + pa_assert(s->sema != 0); > > Hmm, I'd prefer if the ret val of MPCreateSemaphore() would be checked > here. > > Also I find it a bit weird checking for s->sema, though not > initializing it to 0 in the beginning. If the call actually failed, > then the assert will check uninitialized memory. Also, comparing > pointers with 0 sucks. That should be NULL. > > Given that this can not realisitically fail, only in OOM or OOM-like > situations in which case we abort anyway it mght be enough just writing: > > pa_assert_se(MPCreateSemaphore(UINT_MAX, value, &s->sema) == 0); > > (Assuming that success is signalled by retval == 0 on MacOSX) > > > +void pa_semaphore_free(pa_semaphore *s) { > > + pa_assert(s); > > + MPDeleteSemaphore(s->sema); > > Same here. > > > + pa_xfree(s); > > +} > > + > > +void pa_semaphore_post(pa_semaphore *s) { > > + pa_assert(s); > > + MPSignalSemaphore(s->sema); > > And here. > > > +} > > + > > +void pa_semaphore_wait(pa_semaphore *s) { > > + pa_assert(s); > > + /* should probably check return value (-ve is error), noErr is ok. */ > > + MPWaitOnSemaphore(s->sema, kDurationForever); > > And here. Ok, done. See the patch below. Daniel >From 26df2fbae6d9215a3ae084876fb5f79e4d9cf4f0 Mon Sep 17 00:00:00 2001 From: Kim Lester <kim@dfusion.com.au> Date: Wed, 16 Sep 2009 09:23:39 +0800 Subject: [PATCH] Mac OS X: add semaphore implementation
* | Wrap clock_gettime and friendsDaniel Mack2009-10-311-6/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Wed, Sep 16, 2009 at 11:48:58PM +0200, Lennart Poettering wrote: > On Wed, 16.09.09 15:15, Daniel Mack (daniel@caiaq.de) wrote: > > > From: Kim Lester <kim@dfusion.com.au> > > > > OS X does not define clockid_t or clock_gettime() and friends. > > Add a wrapper to fix this. > > Hmpf. I am not particularly happy with this. This adds a lot of > unnecessary compat code. We don't actually need implementations of > clock_getres(). All we need is some kind of check whether system > timers are accurate or whether they are rounded up to scheduling > slices. On Linux we do that check with clock_getres(), but all the > information it returns is actually not intertesting at all. We just > check if this is below some trheshold, that's all. > > clock_settime() we don't use at all! We shouldn't carry compat code > for that. > > And clock_gettime we don't really need either. We need some kind of > accurate system timers (preferably monotonic), and on Linux we use > clock_gettime() for that. But we already have a fallback there for > gettimeofday(). > > Or in other words, the current APIs pa_rtclock_get(), > pa_rtclock_hrtimer() is supposed to be the abstract API that has > different backends on different systems. I'd very much prefer if any > MacOS specific code would simply be plugged in there instead of > creating various new abstraction interfaces! Ok - what about the version below? I don't particularily like the Daniel >From 9f0a051953ec354ccdb8aa44a9845c408b26ae0b Mon Sep 17 00:00:00 2001 From: Kim Lester <kim@dfusion.com.au> Date: Wed, 16 Sep 2009 14:40:01 +0800 Subject: [PATCH] Implement pa_rtclock_get() and pa_rtclock_hrtimer() for Darwin OS X does not define clockid_t or clock_gettime() and friends. Add wrappers to fix this. Based on a patch from Kim Lester <kim@dfusion.com.au>.
* | X11: attach X11 properties to Screen, not DisplayLeszek Koltunski2009-10-301-6/+14
| |
* | git: ignore kde related filesLennart Poettering2009-10-302-0/+2
| |
* | svolume: fix MMX errorWim Taymans2009-10-301-1/+6
| | | | | | | | | | We need to sign extend the lower part of the multiplication before adding it to the higher part. Makes -1 * 0xffff work again.
* | sink: simplify silence checksWim Taymans2009-10-301-12/+10
| |
* | daemon: don't crash if pa_realpath() failsLennart Poettering2009-10-301-10/+13
| |
* | socket-util: drop redundant castsLennart Poettering2009-10-301-12/+12
| |
* | socket-util: allocate at least sizeof(sockaddr_storage) spaceLennart Poettering2009-10-301-2/+2
| |
* | use pa_fopen_cloexec() where applicableLennart Poettering2009-10-3014-27/+27
| |
* | tdb: use O_CLOEXEC if availableLennart Poettering2009-10-301-9/+34
| |