]> git.alsa-project.org Git - alsa-plugins.git/log
alsa-plugins.git
16 years agospeex - Add echo-cancelling option to speexdsp plugin
Takashi Iwai [Tue, 16 Jun 2009 06:04:22 +0000 (08:04 +0200)]
speex - Add echo-cancelling option to speexdsp plugin

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoAdd PCM rates query support for PCM rate plugins
Takashi Iwai [Tue, 2 Jun 2009 14:30:06 +0000 (16:30 +0200)]
Add PCM rates query support for PCM rate plugins

Follow the new PCM rate-plugin protocol to support the rate range
queries, etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoRelease v1.0.20 v1.0.20
Jaroslav Kysela [Wed, 6 May 2009 07:07:28 +0000 (09:07 +0200)]
Release v1.0.20

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoarcam_av: Refactor event callback to facilitate addition of "numid" optimisation
Peter Stokes [Mon, 2 Mar 2009 11:24:13 +0000 (12:24 +0100)]
arcam_av: Refactor event callback to facilitate addition of "numid" optimisation

Signed-off-by: Peter Stokes <linux@dadeos.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoarcam_av: Refactor control specifications to facilitate addition of "numid" optimisation
Peter Stokes [Mon, 23 Feb 2009 09:03:31 +0000 (10:03 +0100)]
arcam_av: Refactor control specifications to facilitate addition of "numid" optimisation

Signed-off-by: Peter Stokes <linux@dadeos.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoarcam_av: Remove incorrect usage of the static SHM ID variable
Peter Stokes [Mon, 23 Feb 2009 09:02:50 +0000 (10:02 +0100)]
arcam_av: Remove incorrect usage of the static SHM ID variable

Signed-off-by: Peter Stokes <linux@dadeos.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agooss: Add numid check in ctl plugin
Takashi Iwai [Tue, 17 Feb 2009 16:29:17 +0000 (17:29 +0100)]
oss: Add numid check in ctl plugin

Added the check of non-zero numid to optimize the look-up for the
element.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agopulse: Add numid check in ctl plugin
Takashi Iwai [Tue, 17 Feb 2009 16:28:13 +0000 (17:28 +0100)]
pulse: Add numid check in ctl plugin

Added the check of non-zero numid and optimize the look-up for the
element.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoClean up Makefile.am
Takashi Iwai [Thu, 22 Jan 2009 11:15:56 +0000 (12:15 +0100)]
Clean up Makefile.am

Avoid unnecessary substitution and use simply SUBDIRS += ...

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoAdd arcam-av plugin
Peter Stokes [Thu, 22 Jan 2009 11:09:44 +0000 (12:09 +0100)]
Add arcam-av plugin

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>
16 years agoAdd missing continue in config parser of pcm-upmix plugin (again)
Takashi Iwai [Wed, 21 Jan 2009 14:55:45 +0000 (15:55 +0100)]
Add missing continue in config parser of pcm-upmix plugin (again)

This change was reverted accidentally by the previous git-stash operation
on my local tree...

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoAdd Speex pre-processing plugin
Takashi Iwai [Wed, 21 Jan 2009 17:11:43 +0000 (18:11 +0100)]
Add Speex pre-processing plugin

Added Speex pre-processing filter plugin for denoise, AGC, etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoFix build of pph plugin with speex-1.2rc1
Takashi Iwai [Wed, 21 Jan 2009 15:53:36 +0000 (16:53 +0100)]
Fix build of pph plugin with speex-1.2rc1

The resampler code is moved to libspeexdsp instead of libspeex.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoAdd missing continue in config parser of pcm-upmix plugin
Takashi Iwai [Wed, 21 Jan 2009 14:55:45 +0000 (15:55 +0100)]
Add missing continue in config parser of pcm-upmix plugin

16 years agoAdd missing -lm to pph plugin
Takashi Iwai [Wed, 21 Jan 2009 08:36:57 +0000 (09:36 +0100)]
Add missing -lm to pph plugin

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoRelease v1.0.19 v1.0.19
Jaroslav Kysela [Mon, 19 Jan 2009 11:17:21 +0000 (12:17 +0100)]
Release v1.0.19

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoAdded m4/attributes.m4 to extra dist.
Jaroslav Kysela [Mon, 5 Jan 2009 12:55:05 +0000 (13:55 +0100)]
Added m4/attributes.m4 to extra dist.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoMark as static the functions not used outside their unit.
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 01:20:36 +0000 (02:20 +0100)]
Mark as static the functions not used outside their unit.

This allows the compiler to assume more about their interface, if at
all possible.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
16 years agoMake some static tables and strings constants.
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 01:11:44 +0000 (02:11 +0100)]
Make some static tables and strings constants.

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>
16 years ago[RFC] Don't use pow() for calculating a power of 2, use shift instead.
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 01:00:58 +0000 (02:00 +0100)]
[RFC] Don't use pow() for calculating a power of 2, use shift instead.

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>
16 years agoCleanup flags in maemo/Makefile.am
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 00:58:41 +0000 (01:58 +0100)]
Cleanup flags in maemo/Makefile.am

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>
16 years agoCheck for --no-undefined linker flag and use it.
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 00:54:21 +0000 (01:54 +0100)]
Check for --no-undefined linker flag and use it.

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>
16 years agoAdd the attributes.m4 macro file from xine/lscube.
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 00:52:40 +0000 (01:52 +0100)]
Add the attributes.m4 macro file from xine/lscube.

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>
16 years agoAllow opt-out from jack, pulseaudio and avcodec dependencies.
Diego 'Flameeyes' Pettenò [Thu, 13 Nov 2008 12:10:31 +0000 (13:10 +0100)]
Allow opt-out from jack, pulseaudio and avcodec dependencies.

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>
16 years agoRelease v1.0.18 v1.0.18
Jaroslav Kysela [Wed, 29 Oct 2008 12:42:13 +0000 (13:42 +0100)]
Release v1.0.18

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agopulse - Fix capture problem
Takashi Iwai [Wed, 15 Oct 2008 10:18:23 +0000 (12:18 +0200)]
pulse - Fix capture problem

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>
16 years agopulse - Fix destruction logic on failed construction
Lennart Poettering [Thu, 25 Sep 2008 19:03:01 +0000 (21:03 +0200)]
pulse - Fix destruction logic on failed construction

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>
16 years agopulse - Fix destruction order on failure
Lennart Poettering [Thu, 25 Sep 2008 19:02:32 +0000 (21:02 +0200)]
pulse - Fix destruction order on failure

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>
16 years agopulse - fix minor memory leak
Lennart Poettering [Thu, 25 Sep 2008 19:01:55 +0000 (21:01 +0200)]
pulse - fix minor memory leak

If we fail, we need to free the device string

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agopulse - Start PA event loop after we have created the context
Lennart Poettering [Thu, 25 Sep 2008 19:01:22 +0000 (21:01 +0200)]
pulse - Start PA event loop after we have created the context

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>
17 years agoRelease v1.0.18rc3 v1.0.18rc3
Jaroslav Kysela [Tue, 9 Sep 2008 16:55:55 +0000 (18:55 +0200)]
Release v1.0.18rc3

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoA bag of clean-ups for pcm_ctl.c
Lennart Poettering [Wed, 3 Sep 2008 18:15:40 +0000 (20:15 +0200)]
A bag of clean-ups for pcm_ctl.c

Use more error checking where appropriate, optimize a few things, split common
code into seperate functions.

17 years agoRemove our own poll handler implementation entirely
Lennart Poettering [Wed, 3 Sep 2008 18:13:48 +0000 (20:13 +0200)]
Remove our own poll handler implementation entirely

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

17 years agoDon't implement our own poll handlers, we can use the default ones
Lennart Poettering [Wed, 3 Sep 2008 18:12:36 +0000 (20:12 +0200)]
Don't implement our own poll handlers, we can use the default ones

As long as we have only a single fd to watch we can use the default poll
handler implementations. So let's do this.

17 years agoAdd const to our snd_pcm_ioplug_callback_t instances
Lennart Poettering [Wed, 3 Sep 2008 18:06:22 +0000 (20:06 +0200)]
Add const to our snd_pcm_ioplug_callback_t instances

The fields are constant so let's declare that they actually are.

17 years agoUse S32/FLOAT32 only where available in the PA libs
Lennart Poettering [Wed, 3 Sep 2008 18:04:26 +0000 (20:04 +0200)]
Use S32/FLOAT32 only where available in the PA libs

S32 samples are a recent addition to the PA API, so check if they are available
before actually using them.

17 years agoUse PA_STREAM_EARLY_REQUESTS if available
Lennart Poettering [Wed, 3 Sep 2008 17:59:12 +0000 (19:59 +0200)]
Use PA_STREAM_EARLY_REQUESTS if available

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)

17 years agoMake sure we always have a sensible channel mapping
Lennart Poettering [Wed, 3 Sep 2008 17:57:04 +0000 (19:57 +0200)]
Make sure we always have a sensible channel mapping

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.

17 years agoAdjust buffering metrics to match what PA internally uses
Lennart Poettering [Wed, 3 Sep 2008 16:18:48 +0000 (18:18 +0200)]
Adjust buffering metrics to match what PA internally uses

Follow more closely the buffering metrics PA uses internally. This avoids
clamping of the metricsin PA internally.

17 years agoSave a byte of memory
Lennart Poettering [Wed, 3 Sep 2008 00:59:49 +0000 (02:59 +0200)]
Save a byte of memory

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!

17 years agoSplit out O_NONBLOCK setting into seperate function
Lennart Poettering [Wed, 3 Sep 2008 00:58:35 +0000 (02:58 +0200)]
Split out O_NONBLOCK setting into seperate function

Since we set O_NONBLOCK more than once, make it a nice and correct function.

17 years agoA bag of minor clean-ups for pulse.c
Lennart Poettering [Wed, 3 Sep 2008 00:57:15 +0000 (02:57 +0200)]
A bag of minor clean-ups for pulse.c

Use more error checking where appropriate, optimize a few things.

17 years agoDrop our own implementation of the poll() callbacks
Lennart Poettering [Wed, 3 Sep 2008 00:53:10 +0000 (02:53 +0200)]
Drop our own implementation of the poll() callbacks

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.

17 years agoMake pulse_ext_callback const
Lennart Poettering [Wed, 3 Sep 2008 00:51:43 +0000 (02:51 +0200)]
Make pulse_ext_callback const

We can make our instance of snd_ctl_ext_callback_t const without any problems,
so let's do it.

17 years agoA bag of minor clean ups for ctl_pulse.c
Lennart Poettering [Wed, 3 Sep 2008 00:50:06 +0000 (02:50 +0200)]
A bag of minor clean ups for ctl_pulse.c

Use more error checking where applicable, optimize a few things, use PulseAudio
API functions for comparing pa_cvolume structures.

17 years agoRework hardware parameter selection
Lennart Poettering [Thu, 21 Aug 2008 23:13:41 +0000 (01:13 +0200)]
Rework hardware parameter selection

Follow more closely the real limits of PulseAudio's API.

17 years agoRemove fix for bug 0003470
Lennart Poettering [Thu, 21 Aug 2008 23:12:18 +0000 (01:12 +0200)]
Remove fix for bug 0003470

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.

17 years agoAdd more error checking
Lennart Poettering [Thu, 21 Aug 2008 23:11:10 +0000 (01:11 +0200)]
Add more error checking

Add a bit more error checking where necessary

17 years agoGet rid of pulse_poll_revents()
Lennart Poettering [Thu, 21 Aug 2008 22:08:53 +0000 (00:08 +0200)]
Get rid of pulse_poll_revents()

pulse_poll_revents() has no real purpose, so let's remove it.

17 years agoAdd trailing NUL character to snprintf output
Lennart Poettering [Thu, 21 Aug 2008 22:11:13 +0000 (00:11 +0200)]
Add trailing NUL character to snprintf output

snprintf doesn't necessarily append a trailing NUL to the strings it writes. So
let's do it explicitly.

17 years agoSupport S32 sample types
Lennart Poettering [Thu, 21 Aug 2008 22:06:27 +0000 (00:06 +0200)]
Support S32 sample types

PulseAudio has been supporting these for a while, so let's make use of them
here.

17 years agouse SNDERR instead of fprintf to print error messages
Lennart Poettering [Thu, 21 Aug 2008 22:05:47 +0000 (00:05 +0200)]
use SNDERR instead of fprintf to print error messages

We shouldn't spam on stderr unconditionally, so let's use ALSA subsystem for
printing errors.

17 years agoCall pa_context_disconnect() explicitly
Lennart Poettering [Thu, 21 Aug 2008 21:34:01 +0000 (23:34 +0200)]
Call pa_context_disconnect() explicitly

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.

17 years agoDon't modify the SIGPIPE handler
Lennart Poettering [Thu, 21 Aug 2008 21:32:13 +0000 (23:32 +0200)]
Don't modify the SIGPIPE handler

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.

17 years agoMake pulse_new() a proper C function
Lennart Poettering [Thu, 21 Aug 2008 21:30:23 +0000 (23:30 +0200)]
Make pulse_new() a proper C function

C functions taking no argument need a (void) as argument list. It's C++ where
() is allowed too.

17 years agoAdd Emacs-style /*-*- linux-c -*-*/ header comment
Lennart Poettering [Thu, 21 Aug 2008 21:20:15 +0000 (23:20 +0200)]
Add Emacs-style /*-*- linux-c -*-*/ header comment

As suggested in the kernel's CodingStyle document force Emacs into kernel-style
indenting to prevent future indenting chaos, at least for Emacs users.

17 years agoReindent to Linux kernel style
Lennart Poettering [Thu, 21 Aug 2008 21:16:08 +0000 (23:16 +0200)]
Reindent to Linux kernel style

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.

17 years agoFix build with recent ffmpeg
Takashi Iwai [Tue, 26 Aug 2008 15:06:43 +0000 (17:06 +0200)]
Fix build with recent ffmpeg

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>
17 years agoRelease v1.0.18rc2 v1.0.18rc2
Jaroslav Kysela [Tue, 19 Aug 2008 11:41:00 +0000 (13:41 +0200)]
Release v1.0.18rc2

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoAdd missing noinst_HEADERS to usb_stream/Makefile.am
Takashi Iwai [Mon, 18 Aug 2008 15:02:33 +0000 (17:02 +0200)]
Add missing noinst_HEADERS to usb_stream/Makefile.am

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoRelease v1.0.18rc1 v1.0.18rc1
Jaroslav Kysela [Fri, 15 Aug 2008 11:31:45 +0000 (13:31 +0200)]
Release v1.0.18rc1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoAdd patterns for garbage files to .gitignore
Takashi Iwai [Thu, 31 Jul 2008 15:03:40 +0000 (17:03 +0200)]
Add patterns for garbage files to .gitignore

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoAdd usb_stream PCM plugin
Karsten Wiese [Thu, 31 Jul 2008 15:01:29 +0000 (17:01 +0200)]
Add usb_stream PCM plugin

usb_stream PCM plugin is used together with snd-usb-us122l driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agosend both an uncork and a trigger in _start()
Lennart Poettering [Fri, 18 Jul 2008 19:45:47 +0000 (21:45 +0200)]
send both an uncork and a trigger in _start()

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>
17 years agopulse - Returns errors instead of assert()
Takashi Iwai [Wed, 16 Jul 2008 13:15:42 +0000 (15:15 +0200)]
pulse - Returns errors instead of assert()

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>
17 years agoRelease v1.0.17 v1.0.17
Jaroslav Kysela [Mon, 14 Jul 2008 08:57:59 +0000 (10:57 +0200)]
Release v1.0.17

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoFix invalid withval in configure script
Takashi Iwai [Fri, 27 Jun 2008 14:20:00 +0000 (16:20 +0200)]
Fix invalid withval in configure script

Should be enableval instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoRelease v1.0.17rc2 v1.0.17rc2
Jaroslav Kysela [Mon, 16 Jun 2008 07:40:44 +0000 (09:40 +0200)]
Release v1.0.17rc2

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoAdd more files to .gitignore
Takashi Iwai [Fri, 6 Jun 2008 13:57:08 +0000 (15:57 +0200)]
Add more files to .gitignore

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agopulse - Change to hook load_if_running
Sjoerd Simons [Tue, 13 May 2008 12:16:06 +0000 (14:16 +0200)]
pulse - Change to hook load_if_running

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>
17 years agoPulseaudio alsa configure hook
Sjoerd Simons [Wed, 30 Apr 2008 19:18:15 +0000 (21:18 +0200)]
Pulseaudio alsa configure hook

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>
17 years agoFix close in maemo callback
Takashi Iwai [Tue, 22 Apr 2008 17:34:03 +0000 (19:34 +0200)]
Fix close in maemo callback

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>
17 years agoImprove configure for maemo plugin
Takashi Iwai [Tue, 22 Apr 2008 17:31:15 +0000 (19:31 +0200)]
Improve configure for maemo plugin

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>
17 years agoVarious plugins don't support "hint" sections
Takashi Iwai [Tue, 22 Apr 2008 17:25:05 +0000 (19:25 +0200)]
Various plugins don't support "hint" sections

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>
17 years agopulse - Remove another assert
Takashi Iwai [Mon, 10 Mar 2008 12:09:59 +0000 (13:09 +0100)]
pulse - Remove another assert

Remove another assert that results in an unexpected crash.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agopulse - Fix useless assert
Takashi Iwai [Mon, 10 Mar 2008 12:00:44 +0000 (13:00 +0100)]
pulse - Fix useless assert

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>
17 years agohgcompile -> gitcompile change
Jaroslav Kysela [Tue, 3 Jun 2008 08:13:00 +0000 (10:13 +0200)]
hgcompile -> gitcompile change

17 years agoremoved .hg* files and renamed hgcompile to gitcompile
Jaroslav Kysela [Tue, 20 May 2008 11:40:41 +0000 (13:40 +0200)]
removed .hg* files and renamed hgcompile to gitcompile

17 years agoAdded tag v1.0.16 for changeset 0fc727fc959d
Jaroslav Kysela [Tue, 5 Feb 2008 09:08:10 +0000 (10:08 +0100)]
Added tag v1.0.16 for changeset 0fc727fc959d

17 years agorelease 1.0.16 v1.0.16
Jaroslav Kysela [Tue, 5 Feb 2008 09:08:10 +0000 (10:08 +0100)]
release 1.0.16
Patch-level: Merged

17 years agoAdded tag v1.0.16rc1 for changeset 8fee791a2fef
Jaroslav Kysela [Mon, 21 Jan 2008 09:42:47 +0000 (10:42 +0100)]
Added tag v1.0.16rc1 for changeset 8fee791a2fef

17 years agorelease 1.0.16rc1 v1.0.16rc1
Jaroslav Kysela [Mon, 21 Jan 2008 09:42:47 +0000 (10:42 +0100)]
release 1.0.16rc1
Patch-level: Merged

17 years agoPulseAudio plugin: report XRUN state back to application
Takashi Iwai [Fri, 14 Dec 2007 14:25:46 +0000 (15:25 +0100)]
PulseAudio plugin: report XRUN state back to application

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.)

17 years agoUse different buffer metrics in the PulseAudio plugin
Takashi Iwai [Mon, 26 Nov 2007 10:02:24 +0000 (11:02 +0100)]
Use different buffer metrics in the PulseAudio plugin

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>

17 years agopulse - Add minmax condition for period_bytes and periods
Takashi Iwai [Tue, 13 Nov 2007 15:21:22 +0000 (16:21 +0100)]
pulse - Add minmax condition for period_bytes and periods

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>

17 years agoFix wrong assert in pulse plugin
Takashi Iwai [Mon, 12 Nov 2007 11:33:31 +0000 (12:33 +0100)]
Fix wrong assert in pulse plugin

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>

17 years agoFix unexpected assert with pulse plugin
Takashi Iwai [Mon, 29 Oct 2007 10:07:01 +0000 (11:07 +0100)]
Fix unexpected assert with pulse plugin

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>

17 years agoAdded tag v1.0.15 for changeset 93d05f3418b2
Jaroslav Kysela [Mon, 15 Oct 2007 08:36:46 +0000 (10:36 +0200)]
Added tag v1.0.15 for changeset 93d05f3418b2

17 years agorelease 1.0.15 v1.0.15
Jaroslav Kysela [Mon, 15 Oct 2007 08:36:46 +0000 (10:36 +0200)]
release 1.0.15
Patch-level: Merged

18 years agoAdded tag v1.0.15rc1 for changeset 690ebe80ad89
Jaroslav Kysela [Thu, 30 Aug 2007 08:23:59 +0000 (10:23 +0200)]
Added tag v1.0.15rc1 for changeset 690ebe80ad89

18 years agorelease 1.0.15rc1 v1.0.15rc1
Jaroslav Kysela [Thu, 30 Aug 2007 08:23:59 +0000 (10:23 +0200)]
release 1.0.15rc1
Patch-level: Merged

18 years agoUpdate speex rate converter code
Takashi Iwai [Tue, 14 Aug 2007 14:21:52 +0000 (16:21 +0200)]
Update speex rate converter code

Take speex rate converter code from speex SVN tree, which includes the
fix for the noises with simple conversion (signed / unsigned mismatch).

18 years agoDisable direct sinc table
Takashi Iwai [Fri, 20 Jul 2007 12:40:53 +0000 (14:40 +0200)]
Disable direct sinc table

The direct sinc table can be noisy in some conditions (e.g. up-conversion
from 11025 to 44100Hz).  Disable it as a temporary solution for now.

18 years agoFix the pop noise with samplerate plugin
Takashi Iwai [Fri, 13 Jul 2007 17:06:08 +0000 (19:06 +0200)]
Fix the pop noise with samplerate plugin

A (temporary) fix for the pop noise at the beginning of playback
with samplerate plugin.

18 years agoAdd -no-undefined option to LDFLAGS
Takashi Iwai [Mon, 4 Jun 2007 13:23:44 +0000 (15:23 +0200)]
Add -no-undefined option to LDFLAGS

Added -no-undefined option to LDFLAGS to make linking sure.

18 years agoAdded tag v1.0.14 for changeset 213140a5ea7a
Jaroslav Kysela [Thu, 31 May 2007 06:55:31 +0000 (08:55 +0200)]
Added tag v1.0.14 for changeset 213140a5ea7a

18 years agorelease 1.0.14 v1.0.14
Jaroslav Kysela [Thu, 31 May 2007 06:55:31 +0000 (08:55 +0200)]
release 1.0.14
Patch-level: Merged

18 years agoEnable link with external libspeex
Takashi Iwai [Thu, 24 May 2007 13:28:22 +0000 (15:28 +0200)]
Enable link with external libspeex

- Add --with-speex configure option to specify the build of speex rate
  plugin.  As default, it's linked to external library.  If not available,
  defaults to builtin code.
- Show build conditions at the end of configure script
- Use AS_HELP_TEXT()

18 years agoFix segfault of a52 plugin
Takashi Iwai [Wed, 23 May 2007 09:53:04 +0000 (11:53 +0200)]
Fix segfault of a52 plugin

Added the missing call of avcodec_init() to avoid setfault of a52
plugin with the latest svn revision of ffmpeg.

From: Fabian van der Werf <fvanderwerf@gmail.com>

18 years agoFix plugindir config setting
Takashi Iwai [Mon, 7 May 2007 15:38:22 +0000 (17:38 +0200)]
Fix plugindir config setting

Fixed plugindir config setting when no option was given.
Also fixed an obvious typo.