summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Adjust buffering metrics to match what PA internally usesLennart Poettering2008-09-031-4/+4
| | | | | Follow more closely the buffering metrics PA uses internally. This avoids clamping of the metricsin PA internally.
* Save a byte of memoryLennart Poettering2008-09-031-1/+2
| | | | | | | Since we only need a single char, we should allocate only a single char, instead of a string of two bytes. Woah! We're saving memory, baby!
* Split out O_NONBLOCK setting into seperate functionLennart Poettering2008-09-031-2/+14
| | | | Since we set O_NONBLOCK more than once, make it a nice and correct function.
* A bag of minor clean-ups for pulse.cLennart Poettering2008-09-031-22/+60
| | | | Use more error checking where appropriate, optimize a few things.
* Drop our own implementation of the poll() callbacksLennart Poettering2008-09-031-43/+2
| | | | | The ctl extension interfaces support poll() via a single file descriptor anyway, so let's use it instead of rolling our own poll support callbacks.
* Make pulse_ext_callback constLennart Poettering2008-09-031-1/+1
| | | | | We can make our instance of snd_ctl_ext_callback_t const without any problems, so let's do it.
* A bag of minor clean ups for ctl_pulse.cLennart Poettering2008-09-031-43/+71
| | | | | Use more error checking where applicable, optimize a few things, use PulseAudio API functions for comparing pa_cvolume structures.
* Rework hardware parameter selectionLennart Poettering2008-09-031-5/+5
| | | | Follow more closely the real limits of PulseAudio's API.
* Remove fix for bug 0003470Lennart Poettering2008-09-031-12/+0
| | | | | This fix is completely broken (introduces new segfaults) and the assert is tries to fix is superfluous anyway, so let's just remove this altogether.
* Add more error checkingLennart Poettering2008-09-031-12/+32
| | | | Add a bit more error checking where necessary
* Get rid of pulse_poll_revents()Lennart Poettering2008-09-034-20/+1
| | | | pulse_poll_revents() has no real purpose, so let's remove it.
* Add trailing NUL character to snprintf outputLennart Poettering2008-09-031-0/+1
| | | | | snprintf doesn't necessarily append a trailing NUL to the strings it writes. So let's do it explicitly.
* Support S32 sample typesLennart Poettering2008-09-031-1/+9
| | | | | PulseAudio has been supporting these for a while, so let's make use of them here.
* use SNDERR instead of fprintf to print error messagesLennart Poettering2008-09-032-4/+3
| | | | | We shouldn't spam on stderr unconditionally, so let's use ALSA subsystem for printing errors.
* Call pa_context_disconnect() explicitlyLennart Poettering2008-09-031-0/+1
| | | | | | | | Make sure the pa_context is disconnected when we unref it. This is also done implicitly when the last reference to the pa_context is dropped, but that might be later then expected in case someone else took a reference on our object. To make sure that the pa_context will than not make any call into our code, disconnect it explicitly.
* Don't modify the SIGPIPE handlerLennart Poettering2008-09-031-2/+0
| | | | | | Since quite a while (2 years or so) PulsAudio doesn't require SIGPIPE anymore to be set to SIG_IGN. Since resetting this was incredibly ugly in the first place it is now time to get rid of this.
* Make pulse_new() a proper C functionLennart Poettering2008-09-032-2/+2
| | | | | C functions taking no argument need a (void) as argument list. It's C++ where () is allowed too.
* Add Emacs-style /*-*- linux-c -*-*/ header commentLennart Poettering2008-09-035-0/+10
| | | | | As suggested in the kernel's CodingStyle document force Emacs into kernel-style indenting to prevent future indenting chaos, at least for Emacs users.
* Reindent to Linux kernel styleLennart Poettering2008-09-035-1149/+1252
| | | | | | | The PulseAudio plugin was horrible mix-up of different indenting styles even in the same files. Indenting by 4, by 2, by 8 characters, sometimes with tabs, sometimes with spaces. To fix this chaos I ran all files through "indent -kr -i8". Hopefully future patches will follow kernel style indenting too.
* Fix build with recent ffmpegTakashi Iwai2008-08-265-18/+35
| | | | | | | | Add a check of pkgconfig libavcodec in configure script. Since the header file was moved to <libavcodec/*>, its location has to be checked in configure, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.18rc2v1.0.18rc2Jaroslav Kysela2008-08-191-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Add missing noinst_HEADERS to usb_stream/Makefile.amTakashi Iwai2008-08-181-0/+2
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.18rc1v1.0.18rc1Jaroslav Kysela2008-08-151-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Add patterns for garbage files to .gitignoreTakashi Iwai2008-07-311-0/+3
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add usb_stream PCM pluginKarsten Wiese2008-07-315-1/+607
| | | | | | usb_stream PCM plugin is used together with snd-usb-us122l driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* send both an uncork and a trigger in _start()Lennart Poettering2008-07-201-6/+15
| | | | | | | | | | | | | | Heya! Here's a patch for alsa-plugins: When playing very short streams, the pulse plugin needs call pa_stream_trigger() in snd_pcm_start() to make sure the stream is actually started, in addition to uncorking the stream. Lennart Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse - Returns errors instead of assert()Takashi Iwai2008-07-161-4/+16
| | | | | | | | | | | Some sanity checks in pcm_pulse.c with assert() causes the program to abort unexpectedly when the pulseaudio daemon is dead. This is suboptimal. Examples: https://bugzilla.novell.com/show_bug.cgi?id=409532 Now fixed to return an error instead. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.17v1.0.17Jaroslav Kysela2008-07-141-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Fix invalid withval in configure scriptTakashi Iwai2008-06-271-2/+2
| | | | | | Should be enableval instead. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.17rc2v1.0.17rc2Jaroslav Kysela2008-06-161-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Add more files to .gitignoreTakashi Iwai2008-06-061-0/+2
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse - Change to hook load_if_runningSjoerd Simons2008-06-061-8/+11
| | | | | | | | | | | | | | | | | Unfortunately some more testing revealed some issues with it, specifically if pulse is running your complete config is replaced the bits in the on_pulse_is_running directive. Which might not be what one actually wants :) I couldn't find a proper solution for this. So i've changed the code to optionally load config files. Just like the load hook does. Actually i just optionally call the snd_config_hook_load function, but that's not actually in the alsa API.... Also it now decides pulse is running as soon as the authorizing step begins (just after the actually connection is setup), which should save some round-trips and overhead. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Pulseaudio alsa configure hookSjoerd Simons2008-06-062-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The attached patch extends the alsa pulse plugin set with a alsa configuration hook. Allowing one to specify some configuration parameters that only come into effect when pulseaudio is running. For example a configution file like: @hooks [ { func on_pulse_is_running pcm.!default { type pulse } ctl.!default { type pulse } } ] will redirect the default alsa pcm and ctl to pulse iff pulse is running. (Assuming you defined the hook function correctly ofcourse) This is usefull for distributions that don't want to force their users to switch completely to pulseaudio, but have things a bit more dynamic :) The solutions isn't optimal though. It will mean that every program loading accessing alsa will try to make an (extra) connection to pulse to decide what to do. But i think it's the best we can do for now (or at least that i can do with my minimal knowledge of alsa). A nicer solution would be a way to always specify the pulse plugin as default and have a sort of fallback for when that fails. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix close in maemo callbackTakashi Iwai2008-06-061-1/+1
| | | | | | | | | ALSA bug#3035: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3035 Use dbus_connection_unref() instead of the deprecated dbus_connection_close(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Improve configure for maemo pluginTakashi Iwai2008-06-062-11/+22
| | | | | | | | | | | ALSA bug#3860: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3860 The Maemo DSP plugin checks for D-Bus in configure.in and then makes a bold assumption that this means it should use a proprietary resource manager available only on a specific proprietary platform. Attaching a patch to add --enable-maemo-resource-manager configure flag that enables the resource manager if set and if D-Bus is present. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Various plugins don't support "hint" sectionsTakashi Iwai2008-06-0610-10/+10
| | | | | | | | | Ignore hint sections defined by hand. Those are heplful to get listed in various places, such as aplay -L ALSA bug#3834: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3834 Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse - Remove another assertTakashi Iwai2008-06-061-2/+3
| | | | | | Remove another assert that results in an unexpected crash. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse - Fix useless assertTakashi Iwai2008-06-061-2/+4
| | | | | | | | | If stream connection failes, don't assume that stream is connected upon closing. ALSA bug#3831: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3831 Signed-off-by: Takashi Iwai <tiwai@suse.de>
* hgcompile -> gitcompile changeJaroslav Kysela2008-06-031-1/+1
|
* removed .hg* files and renamed hgcompile to gitcompileJaroslav Kysela2008-05-203-29/+1
|
* Added tag v1.0.16 for changeset 0fc727fc959dJaroslav Kysela2008-02-051-0/+1
|
* release 1.0.16v1.0.16Jaroslav Kysela2008-02-051-1/+1
| | | | Patch-level: Merged
* Added tag v1.0.16rc1 for changeset 8fee791a2fefJaroslav Kysela2008-01-211-0/+1
|
* release 1.0.16rc1v1.0.16rc1Jaroslav Kysela2008-01-211-1/+1
| | | | Patch-level: Merged
* PulseAudio plugin: report XRUN state back to applicationTakashi Iwai2007-12-141-1/+22
| | | | | | | | | | | From: Lennart Poettering <mznyfn@0pointer.de> It adds support to report back XRUN to the application if one happens. This is required to make some applications work on top of the pulse plugin. One being XMMS, which checks if a song finished to play by waiting for an XRUN (yes, I don't argue that XMMS shouldn't do that, but nonetheless it is a good thing if XRUNs are reported properly.)
* Use different buffer metrics in the PulseAudio pluginTakashi Iwai2007-11-261-3/+3
| | | | | | | | | | | | | | | | It increases the "pre-buffering level" (i.e. start threshold) to the full buffer size minus one period. This makes PA work a little bit more like normal audio devices, and makes a few drop outs go away for software which uses very small period sizes. It also increases the initial maximum buffer size, which allows a small overcommit. That's not really an issue, but cleaner nonetheless so I smuggled it into this patch. Also reported in the ALSA BTS: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3578 From: Lennart Poettering <mznyfn@0pointer.de>
* pulse - Add minmax condition for period_bytes and periodsTakashi Iwai2007-11-131-0/+7
| | | | | | | Added the minmax conditions for period_bytes and periods to pulse plugin. This fixes ALSA bug#2601. Patch from Mike Gorse <mgorse@mgorse.dhs.org>
* Fix wrong assert in pulse pluginTakashi Iwai2007-11-121-2/+10
| | | | | | assert(!pcm->stream) shouldn't be checked when the PCM state is SETUP, too (ALSA bug#3470). The original patch by Mike Gorse <mgorse@mgorse.dhs.org>
* Fix unexpected assert with pulse pluginTakashi Iwai2007-10-291-2/+5
| | | | | | | | | | This patch fixes the unexpected assert call at calling snd_pcm_hw_params in PREPARED state. Since multiple hw_params calls are allowed, the pulse plugin shouldn't call assert. Handled in ALSA bug#3470. From: Sean McNamara <smcnam@gmail.com>
* Added tag v1.0.15 for changeset 93d05f3418b2Jaroslav Kysela2007-10-151-0/+1
|