summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* arcam_av: Refactor control specifications to facilitate addition of "numid" ↵Peter Stokes2009-02-231-101/+91
| | | | | | | optimisation Signed-off-by: Peter Stokes <linux@dadeos.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* arcam_av: Remove incorrect usage of the static SHM ID variablePeter Stokes2009-02-231-38/+20
| | | | | Signed-off-by: Peter Stokes <linux@dadeos.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* oss: Add numid check in ctl pluginTakashi Iwai2009-02-171-1/+15
| | | | | | | Added the check of non-zero numid to optimize the look-up for the element. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse: Add numid check in ctl pluginTakashi Iwai2009-02-171-0/+5
| | | | | | | Added the check of non-zero numid and optimize the look-up for the element. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Clean up Makefile.amTakashi Iwai2009-01-221-9/+8
| | | | | | Avoid unnecessary substitution and use simply SUBDIRS += ... Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add arcam-av pluginPeter Stokes2009-01-228-2/+1884
| | | | | | | Added arcam-av control plugin (type "arcam_av") for accessing Arcam AV amplifier via ALSA mixer interface. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add missing continue in config parser of pcm-upmix plugin (again)Takashi Iwai2009-01-221-0/+1
| | | | | | | This change was reverted accidentally by the previous git-stash operation on my local tree... Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add Speex pre-processing pluginTakashi Iwai2009-01-216-3/+358
| | | | | | Added Speex pre-processing filter plugin for denoise, AGC, etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix build of pph plugin with speex-1.2rc1Takashi Iwai2009-01-213-10/+12
| | | | | | The resampler code is moved to libspeexdsp instead of libspeex. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add missing continue in config parser of pcm-upmix pluginTakashi Iwai2009-01-211-0/+1
|
* Add missing -lm to pph pluginTakashi Iwai2009-01-211-0/+1
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.19Jaroslav Kysela2009-01-191-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Added m4/attributes.m4 to extra dist.Jaroslav Kysela2009-01-051-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Mark as static the functions not used outside their unit.Diego E. 'Flameeyes' Pettenò2008-11-214-7/+7
| | | | | | | This allows the compiler to assume more about their interface, if at all possible. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Make some static tables and strings constants.Diego E. 'Flameeyes' Pettenò2008-11-215-18/+18
| | | | | | | | | | | By doing this we move them from the .data section to .rodata setion, or from .data.rel to .data.rel.ro. The .rodata section is mapped directly from the on-disk file, which is always a save, while .data.rel.ro is mapped directly when using prelink, which is a save in a lot of cases. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* [RFC] Don't use pow() for calculating a power of 2, use shift instead.Diego E. 'Flameeyes' Pettenò2008-11-212-3/+3
| | | | | | | This assumes that the power2 argument is in the 0-32 range, so this need to be carefully checked. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Cleanup flags in maemo/Makefile.amDiego E. 'Flameeyes' Pettenò2008-11-211-4/+4
| | | | | | | | | Pass libraries on LIBADD rather than LDFLAGS, don't link to libdl since it's unneeded, no need to pass -shared since libtool's -module takes care of that, the same goes for -fPIC -DPIC (which might not even be the right option). Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Check for --no-undefined linker flag and use it.Diego E. 'Flameeyes' Pettenò2008-11-2111-10/+12
| | | | | | | This adds extra safety that the built libraries will have all the correct dependencies linked in. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Add the attributes.m4 macro file from xine/lscube.Diego E. 'Flameeyes' Pettenò2008-11-214-0/+318
| | | | | | | | This is a shared macro file that is currently maintained in both xine and lscube repositories and contains a series of utility macros to check compiler and linker features. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Allow opt-out from jack, pulseaudio and avcodec dependencies.Diego 'Flameeyes' Pettenò2008-11-131-5/+26
| | | | | | | | | | | | Without this patch the jack, pulseaudio and avcodec discovery was "automagic", without a way for the user to disable the relative plugins if the dependencies are installed but the plugin is unwanted. This patch does not change the default behaviour but allows to opt-out from the plugins by passing the relative --without option at ./configure time. Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Release v1.0.18Jaroslav Kysela2008-10-291-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* pulse - Fix capture problemTakashi Iwai2008-10-151-7/+4
| | | | | | | | In pulse_start(), pa_stream_trigger() may return NULL for the capture stream, and this caused -EIO error. Allow now pa_stream_trigger() returning NULL. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse - Fix destruction logic on failed constructionLennart Poettering2008-09-261-0/+6
| | | | | | | We need to stop the main loop first, then free the context and finally free the mainloop. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse - Fix destruction order on failureLennart Poettering2008-09-261-5/+2
| | | | | | | | If we failure we should make sure the event loop thread is not running and hence not accessing our source/sink strings before we free those strings. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse - fix minor memory leakLennart Poettering2008-09-261-0/+1
| | | | | | If we fail, we need to free the device string Signed-off-by: Takashi Iwai <tiwai@suse.de>
* pulse - Start PA event loop after we have created the contextLennart Poettering2008-09-261-3/+3
| | | | | | | | We shouldn't be passing the main loop object to the pa_context while that loop is running and not locked. Push the main loop startup after we created the main loop. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Release v1.0.18rc3Jaroslav Kysela2008-09-091-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* A bag of clean-ups for pcm_ctl.cLennart Poettering2008-09-031-95/+184
| | | | | Use more error checking where appropriate, optimize a few things, split common code into seperate functions.
* Remove our own poll handler implementation entirelyLennart Poettering2008-09-032-27/+0
| | | | | Neither pcm_pulse.c nor ctl_pulse.c is using our poll handler implementation anymore, so let's get rid of the common parts previously used by them, too
* Don't implement our own poll handlers, we can use the default onesLennart Poettering2008-09-031-43/+3
| | | | | As long as we have only a single fd to watch we can use the default poll handler implementations. So let's do this.
* Add const to our snd_pcm_ioplug_callback_t instancesLennart Poettering2008-09-031-2/+2
| | | | The fields are constant so let's declare that they actually are.
* Use S32/FLOAT32 only where available in the PA libsLennart Poettering2008-09-031-0/+8
| | | | | S32 samples are a recent addition to the PA API, so check if they are available before actually using them.
* Use PA_STREAM_EARLY_REQUESTS if availableLennart Poettering2008-09-031-3/+10
| | | | | | | | | | | Use PA_STREAM_EARLY_REQUESTS if PA knows it. PA >= 0.9.12 learned this flag which will make the buffering more similar to traditional fragment/period-based scheduling. Instead of delaying buffer fillup until the latest moment possible this will cause fillups much earlier. This is useful for compatibility for broken ALSA clients that don't care about 'readability' of the ALSA fd but instead schedule audio via usleep() or a similar call. (One exampler being mplayer)
* Make sure we always have a sensible channel mappingLennart Poettering2008-09-031-12/+13
| | | | | If PA doesn't know a default channel map for the specified number of channels, synthesize one by extending a known one with a smaller channel number.
* 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.