OSDN Git Service

android-x86/external-alsa-lib.git
16 years agofix return value of snd_pcm_rewind()/snd_pcm_forward() to return how much actually...
Lennart Poettering [Fri, 18 Jul 2008 19:24:38 +0000 (21:24 +0200)]
fix return value of snd_pcm_rewind()/snd_pcm_forward() to return how much actually has been rewound, instead of what actually could have rewound

Make snd_pcm_plugin_rewind()/_forward() actually return how much has
been rewound/forwarded instead of how much could have been
rewounded/forwarded. This makes the code actually do what the
documentation of snd_pcm_rewind() suggests.

Signed-off-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agofix type of internally used sframes variable, to avoid unnecessary casts
Lennart Poettering [Fri, 18 Jul 2008 19:22:50 +0000 (21:22 +0200)]
fix type of internally used sframes variable, to avoid unnecessary casts

This minor patch fixes the type of the sframes variable in
snd_pcm_plugin_forward(). With this fix we need to cast less and the
code is less confusing.

Signed-off-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoclamp snd_pcm_rewind()/snd_pcm_forward() into the right direction
Lennart Poettering [Fri, 18 Jul 2008 19:21:23 +0000 (21:21 +0200)]
clamp snd_pcm_rewind()/snd_pcm_forward() into the right direction

The clamping of the input parameter in snd_pcm_rewind()/_forward() is
in the wrong direction.

Signed-off-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoAdd boolean (mute) functionality to softvol plugin
Takashi Iwai [Wed, 16 Jul 2008 10:37:51 +0000 (12:37 +0200)]
Add boolean (mute) functionality to softvol plugin

When the resolution is set to 2, a boolean control is created as a
mute switch instead of a volume control.
Also, fixed the possible zero-division error.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoRelease v1.0.17
Jaroslav Kysela [Mon, 14 Jul 2008 08:57:56 +0000 (10:57 +0200)]
Release v1.0.17

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agotest/pcm.c: Fix SND_PCM_FORMAT_S24 support
Takashi Iwai [Thu, 10 Jul 2008 16:45:23 +0000 (18:45 +0200)]
test/pcm.c: Fix SND_PCM_FORMAT_S24 support

The program uses snd_pcm_format_width() wrongly to calculate the sample
size.  It must be snd_pcm_format_physical_width() instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoFix type-punning in test/pcm.c
Takashi Iwai [Thu, 10 Jul 2008 16:44:15 +0000 (18:44 +0200)]
Fix type-punning in test/pcm.c

The cast won't work well with strict aliasing.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agopcm: fix comment for snd_pcm_avail_update()
Jaroslav Kysela [Mon, 16 Jun 2008 11:23:22 +0000 (13:23 +0200)]
pcm: fix comment for snd_pcm_avail_update()

In some cases, value might be used for r/w ops, too.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoRelease v1.0.17rc2
Jaroslav Kysela [Mon, 16 Jun 2008 07:40:42 +0000 (09:40 +0200)]
Release v1.0.17rc2

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoFix segfault with dmix of 3-bytes formats
Josh Green [Sat, 7 Jun 2008 08:10:49 +0000 (10:10 +0200)]
Fix segfault with dmix of 3-bytes formats

The i386 and x86-64 dmix may cause segfaults when 3-bytes formats are used
due to btsl asm code, which may overcome the buffer end-boundary.
The patch changes btsl to btsw so that it doesn't happen.

ALSA bug#3341:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3341

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoPCM: allow mmap-access conversion in plug
Takashi Iwai [Fri, 6 Jun 2008 15:10:41 +0000 (17:10 +0200)]
PCM: allow mmap-access conversion in plug

The plug plugin has a long-standing problem that it can handle only
slaves that support mmap because of format/rate/access conversions
(these corresponding plugins work only with mmap).

This patch adds the support of automatic mmap->rw conversion via
mmap_emul plugin.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoExport __snd_pcm_mmap_emul_open()
Takashi Iwai [Fri, 6 Jun 2008 15:09:07 +0000 (17:09 +0200)]
Export __snd_pcm_mmap_emul_open()

Export __snd_pcm_mmap_emul_open() for plug layer.  This isn't exported
globally, though.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agopcm_mmap_emul: clean up
Takashi Iwai [Fri, 6 Jun 2008 15:07:45 +0000 (17:07 +0200)]
pcm_mmap_emul: clean up

A little bit of code clean up.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agopcm_mmap_emul: Fix invalid check
Takashi Iwai [Fri, 6 Jun 2008 15:05:56 +0000 (17:05 +0200)]
pcm_mmap_emul: Fix invalid check

The check in snd_pcm_mmap_emul_refine() is bogus and buggy.

Since the changed access type is took back at snd_pcm_mmap_emul_refine
again, it has to check the availability of mmap at each time.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoFix compile warnings in pcm_hw.c
Takashi Iwai [Fri, 6 Jun 2008 14:59:47 +0000 (16:59 +0200)]
Fix compile warnings in pcm_hw.c

Two trivial compile warning fixes:

- Add a missing return to snd_pcm_hw_clear_timer_queue()
- params->info is no long but int

The second one might have hit already on 64bit machine, but alas,
no one didn't notice it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoFix cast warning
Takashi Iwai [Fri, 6 Jun 2008 14:58:02 +0000 (16:58 +0200)]
Fix cast warning

int64_t and long long isn't strictly identical, and thus gcc gives us
a heartful warning.  Suppress the warning by a pointer cast.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoRelease v1.0.17rc1
Jaroslav Kysela [Tue, 3 Jun 2008 08:18:14 +0000 (10:18 +0200)]
Release v1.0.17rc1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agohgcompile -> gitcompile
Jaroslav Kysela [Tue, 3 Jun 2008 08:17:48 +0000 (10:17 +0200)]
hgcompile -> gitcompile

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

16 years agoImplemented snd_pcm_sw_params_(set|get)_period_event for interrupt wakeup like behaviour
Jaroslav Kysela [Fri, 9 May 2008 14:02:02 +0000 (16:02 +0200)]
Implemented snd_pcm_sw_params_(set|get)_period_event for interrupt wakeup like behaviour

Actually, PCM timer is used as source for poll(). It might be optimized
in the kernel code later.

16 years agoimplemented snd_pcm_rewindable() and snd_pcm_forwardable(), removed can_rewind and...
Jaroslav Kysela [Mon, 21 Apr 2008 10:46:50 +0000 (12:46 +0200)]
implemented snd_pcm_rewindable() and snd_pcm_forwardable(), removed can_rewind and can_forward

16 years agoimplemented integer volume <-> dB volume conversion functions for simple mixer
Jaroslav Kysela [Mon, 21 Apr 2008 09:44:20 +0000 (11:44 +0200)]
implemented integer volume <-> dB volume conversion functions for simple mixer

16 years agoadded snd_pcm_hw_params_is_monotonic/can_forward/can_rewind functions
Jaroslav Kysela [Fri, 11 Apr 2008 12:11:04 +0000 (14:11 +0200)]
added snd_pcm_hw_params_is_monotonic/can_forward/can_rewind functions

16 years agoPCM API - explain more trigger timestamp
Jaroslav Kysela [Thu, 10 Apr 2008 07:46:10 +0000 (09:46 +0200)]
PCM API - explain more trigger timestamp

16 years agofix compilation in pcm/pcm_hw.c - monotonic clock
Jaroslav Kysela [Thu, 10 Apr 2008 07:08:08 +0000 (09:08 +0200)]
fix compilation in pcm/pcm_hw.c - monotonic clock

16 years agopcsp: remove downsampling
Stas Sergeev [Sat, 22 Mar 2008 16:40:57 +0000 (17:40 +0100)]
pcsp: remove downsampling

apply softvol before plug as softvol doesn't support U8 as of now.
This also improves the sound quality.

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
16 years agoUse defaults.pcm.file_format for the default file format of file plugin
Takashi Iwai [Mon, 17 Mar 2008 15:11:57 +0000 (16:11 +0100)]
Use defaults.pcm.file_format for the default file format of file plugin

Use "defaults.pcm.file_format" for the default file format of
file plugin.  It's set to "raw" as default for compatibility.

16 years agoAdd the support of WAV format in PCM file plugin
Takashi Iwai [Mon, 17 Mar 2008 15:02:56 +0000 (16:02 +0100)]
Add the support of WAV format in PCM file plugin

Added the support of WAV format in PCM file plugin.
The infile is still only in raw format.

16 years agoUse slave PCM as a timing-source for file ifile
Takashi Iwai [Fri, 14 Mar 2008 13:03:54 +0000 (14:03 +0100)]
Use slave PCM as a timing-source for file ifile

When ifile option is used for the file plugin, it ignores the slave PCM
and just feeds the input data.
This patch changes the behavior a bit - it uses the slave PCM as the
timing source (just read and throw data away) so that the input data
can be read in the right sample rate.

16 years agoAdd truncate option to PCM file plugin
Takashi Iwai [Wed, 12 Mar 2008 15:30:26 +0000 (16:30 +0100)]
Add truncate option to PCM file plugin

Addeed a new option "truncate" to indicate the behavior of creating
the output file.  When it's true (the default), the file is overwritten
and truncated at creation.  When false, the plugin tries to open a
unique file with a number suffix.

The global behavior of "file" and "tee" PCMs is defined via
defaults.pcm.file_truncate option.  You can overwrite it in ~/.asoundrc.

16 years agodmix skipping first set of samples
Takashi Iwai [Mon, 10 Mar 2008 11:02:26 +0000 (12:02 +0100)]
dmix skipping first set of samples

There was a change in alsa-lib 1.0.16 which looks like it was designed to
make dmix skip samples in the case of underruns, but it causes the first
sample to be skipped since dmix->slave_hw_ptr == dmix->slave_appl_ptr.
The following patch fixes this and fixes a small typo in the comment.

From: Mike Gorse <mgorse@mgorse.dhs.org>

16 years agoFix for alsa-lib cross-compilation problems with ALSA_CONFIG_DIR and ALSA_PLUGIN_DIR
Pawel MOLL [Fri, 7 Mar 2008 16:18:16 +0000 (17:18 +0100)]
Fix for alsa-lib cross-compilation problems with ALSA_CONFIG_DIR and ALSA_PLUGIN_DIR

"./configure" options for selecting ALSA configuration (default
/usr/share/alsa) and plugin (/usr/lib/alsa-lib) directories introduced
by alsa-hg/alsa-lib changeset 2284 cause problems with cross-compilation
and packaging - there is no way to redefine them in runtime, during
installation phase.

This patch adds a level of indirection between constants and their
usage - alsaconfigdir for ALSA_CONFIG_DIR and alsaplugindir for
ALSA_PLUGIN_DIR - which can be redefined during "make install" stage.

Signed-off-by: Pawel MOLL <pawel.moll@st.com>
16 years agoAdd PCM "hdmi"
Takashi Iwai [Fri, 7 Mar 2008 16:15:10 +0000 (17:15 +0100)]
Add PCM "hdmi"

Added the new PCM "hdmi" for HDA-Intel.
It's still experimental.

16 years agoDon't show non-existing devices in snd_device_name_hint()
Takashi Iwai [Fri, 7 Mar 2008 16:01:56 +0000 (17:01 +0100)]
Don't show non-existing devices in snd_device_name_hint()

Suppress the non-existing devices in snd_device_name_hint().

16 years agoFix device number assignment in hints
Takashi Iwai [Fri, 7 Mar 2008 16:00:45 +0000 (17:00 +0100)]
Fix device number assignment in hints

Handle the device number properly if given in hints.
The current code resets the device number to -1 wrongly.

16 years agoFix the build with old glibc
Takashi Iwai [Fri, 7 Mar 2008 13:35:25 +0000 (14:35 +0100)]
Fix the build with old glibc

The old systems don't support CLOCK_MONOTONIC although clock_gettime() API
itself exists.  This causes compile errors.

16 years agoIEC958 definitions for consumer status channel, byte 4
Pawel MOLL [Fri, 29 Feb 2008 11:42:57 +0000 (12:42 +0100)]
IEC958 definitions for consumer status channel, byte 4

Added definition for byte 4 of SPDIF channel status, according to
second edition of IEC 60958-3 (consumer) spec.

Signed-off-by: Pawel MOLL <pawel.moll@st.com>
16 years agoFix the state in snd_pcm_ioplug_pause()
Takashi Iwai [Mon, 25 Feb 2008 14:11:46 +0000 (15:11 +0100)]
Fix the state in snd_pcm_ioplug_pause()

The states[] in snd_pcm_ioplug_pause() has wrong values.  They should be
swapped.  ALSA bug#3796:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3796

16 years agoAdd test binaries to hgignore
Takashi Iwai [Mon, 25 Feb 2008 13:58:45 +0000 (14:58 +0100)]
Add test binaries to hgignore

16 years agoAdd doxygen.cfg to hgignore
Takashi Iwai [Mon, 25 Feb 2008 13:57:31 +0000 (14:57 +0100)]
Add doxygen.cfg to hgignore

16 years agoCreate doxgen.cfg dynamically
Takashi Iwai [Mon, 25 Feb 2008 13:56:51 +0000 (14:56 +0100)]
Create doxgen.cfg dynamically

The patch from bug#3799
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3799

The "doc" target in doc/Makefile.am assumes the build directory and
the source directory are the same and fails if they differ ... this is
because the doxygen.cfg contains relative paths (such as ../) that
only work when building in the source tree

The attached patch against hg replaces all relative paths with
@top_srcdir@ and changes doxygen.cfg to a generated file so that
configure replaces @top_srcdir@ with the appropriate configure-time
path.

Assuming people like being able to do `make -f Makefile.am doc` on
an unconfigured and having it work, i added a small `test&&sed`
that'll generate an appropriate default doxygen.cfg for them.

16 years agomark snd_seq_client_info_{get,set}_event_filter deprecated
Aldrin Martoq [Fri, 22 Feb 2008 16:51:05 +0000 (17:51 +0100)]
mark snd_seq_client_info_{get,set}_event_filter deprecated

Mark snd_seq_client_info_{get,set}_event_filter deprecated

Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
16 years agouse snd_seq_client_info_event_filter_*() functions
Aldrin Martoq [Fri, 22 Feb 2008 16:50:01 +0000 (17:50 +0100)]
use snd_seq_client_info_event_filter_*() functions

Change snd_seq_set_client_event_filter to use the new
snd_seq_client_info_event_filter_* API

Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
16 years agoadd a test code for snd_seq_client_info_event_filter_*()
Aldrin Martoq [Fri, 22 Feb 2008 16:49:01 +0000 (17:49 +0100)]
add a test code for snd_seq_client_info_event_filter_*()

Added test code for
snd_seq_client_info_event_filter_{clear,add,del,check}

Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
16 years agoadd snd_seq_client_info_event_filter_*() functions
Aldrin Martoq [Fri, 22 Feb 2008 16:46:50 +0000 (17:46 +0100)]
add snd_seq_client_info_event_filter_*() functions

Added snd_seq_client_info_event_filter_{clear,add,del,check} to alsa
sequencer API

Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
16 years agoadd snd_seq_unset_bit()
Aldrin Martoq [Fri, 22 Feb 2008 16:42:56 +0000 (17:42 +0100)]
add snd_seq_unset_bit()

Added snd_seq_unset_bit() to alsa sequencer API

Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
16 years agoFix snd_seq_change_bit()
Takashi Iwai [Thu, 21 Feb 2008 11:31:18 +0000 (12:31 +0100)]
Fix snd_seq_change_bit()

snd_seq_change_bit() doesn't change but only set.

From: Aldrin Martoq <amartoq@dcc.uchile.cl>

16 years agoAdd atomic operation for super-H(sh3,4) architectures
Takashi Iwai [Mon, 18 Feb 2008 12:15:55 +0000 (13:15 +0100)]
Add atomic operation for super-H(sh3,4) architectures

This patch adds atomic operation for super-H(sh3,sh4) architecture.
See ALSA bug#3789
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3789

16 years agoAdd surround71 definition to NFORCE.conf
Takashi Iwai [Mon, 18 Feb 2008 11:25:02 +0000 (12:25 +0100)]
Add surround71 definition to NFORCE.conf

Now the board with ALC850 can work with 8-channel outputs.

16 years agoFix conflict of obsoleted snd_pcm_hw_* definitions
Takashi Iwai [Mon, 11 Feb 2008 13:19:32 +0000 (14:19 +0100)]
Fix conflict of obsoleted snd_pcm_hw_* definitions

When only SND_PCM_OLD_HW_PARAMS_API is defined but no
SND_PCM_OLD_SW_PARAMS_API, the declerations of some obsoleted functions
conflict.  Although the apps should define both at the same time, it's
not good to break.  Fixed the ifdef now.

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

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

16 years agoFix build with --disable-hwdep and co
Takashi Iwai [Mon, 4 Feb 2008 15:00:16 +0000 (16:00 +0100)]
Fix build with --disable-hwdep and co

control.h has function declarations with hwdep or rawmidi types
that aren't included when built without the corresponding supports.

Add ifdef appropriately to fix this.

16 years agoRemove obsolete instr check in configure
Takashi Iwai [Mon, 4 Feb 2008 14:59:07 +0000 (15:59 +0100)]
Remove obsolete instr check in configure

16 years agoFix wrong exported functions
Takashi Iwai [Mon, 4 Feb 2008 13:15:44 +0000 (14:15 +0100)]
Fix wrong exported functions

The internal functions (as alias of 0.9.0rc4 variants) must be
exported but they were wrongly listed in Versions file.
Fixed the function names now.

16 years agoAdd the missing card alias for Prodigy71Hifi
Takashi Iwai [Fri, 1 Feb 2008 11:00:39 +0000 (12:00 +0100)]
Add the missing card alias for Prodigy71Hifi

See ALSA bug#3735
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3735

16 years agoAdded tag v1.0.16rc2 for changeset 06fcc64b20b3
Jaroslav Kysela [Tue, 29 Jan 2008 08:30:53 +0000 (09:30 +0100)]
Added tag v1.0.16rc2 for changeset 06fcc64b20b3

16 years agorelease 1.0.16rc2
Jaroslav Kysela [Tue, 29 Jan 2008 08:30:53 +0000 (09:30 +0100)]
release 1.0.16rc2
Patch-level: Merged

16 years agoAllow auto-config for dsnoop and dshare plugins
Takashi Iwai [Wed, 23 Jan 2008 11:26:22 +0000 (12:26 +0100)]
Allow auto-config for dsnoop and dshare plugins

16 years agoRemove obsolete instr directory
Takashi Iwai [Wed, 23 Jan 2008 07:06:11 +0000 (08:06 +0100)]
Remove obsolete instr directory

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

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

16 years agoFix a memory leak in PCM hook plugin
Takashi Iwai [Fri, 18 Jan 2008 13:43:56 +0000 (14:43 +0100)]
Fix a memory leak in PCM hook plugin

16 years agodmix - Enable auto format detection as default
Takashi Iwai [Fri, 18 Jan 2008 12:42:51 +0000 (13:42 +0100)]
dmix - Enable auto format detection as default

The direct plugins have the automatic format-detection feature but it
wasn't enabled properly in the interface.  Now you can pass the format
"unchanged" to make the plugin detect a proper format.

This will change the default format of some drivers, such as, HD-audio.

16 years agoImplement missing htimestamp callbacks
Takashi Iwai [Tue, 15 Jan 2008 13:29:34 +0000 (14:29 +0100)]
Implement missing htimestamp callbacks

Implemented the missing htimestamp callbacks for ioplug, rate and null
plugins.

16 years agoAllow pcm slave string references for direct plugins (bug#2893).
Jaroslav Kysela [Tue, 15 Jan 2008 13:07:19 +0000 (14:07 +0100)]
Allow pcm slave string references for direct plugins (bug#2893).

16 years agoAdd missing remix_areas_* for x86-64
Takashi Iwai [Mon, 14 Jan 2008 16:24:14 +0000 (17:24 +0100)]
Add missing remix_areas_* for x86-64

The remix_areas_* were missing the dmix x86-64 code.  Added now.

16 years agoAdd SND_PCM_TSTAMP_MMAP back
Takashi Iwai [Mon, 14 Jan 2008 16:15:13 +0000 (17:15 +0100)]
Add SND_PCM_TSTAMP_MMAP back

SND_PCM_TSTAMP_MMAP is used (blidnly) by portaudio, unfortunately.
Re-added it not to break API.

16 years agofix memory leak in snd_config_update_r error path
Clemens Ladisch [Mon, 14 Jan 2008 07:53:06 +0000 (08:53 +0100)]
fix memory leak in snd_config_update_r error path

Do not forget to free the memory for the file name when a file to be
read by snd_config_update_r() cannot be accessed.

16 years agopcm dmix plugin: fix generic direct remixing
Clemens Ladisch [Mon, 14 Jan 2008 07:52:16 +0000 (08:52 +0100)]
pcm dmix plugin: fix generic direct remixing

In the case of the sum buffer being uninitialized, the source sample
must be negated not only when writing to the sum but also when writing
to the destination.

16 years agocheck availability of CLOCK_MONOTONIC
Clemens Ladisch [Mon, 14 Jan 2008 07:51:45 +0000 (08:51 +0100)]
check availability of CLOCK_MONOTONIC

Use monotonic timestamps only after checking that CLOCK_MONOTONIC is
actually supported by the C library.

16 years agopcm hw plugin: use TSTAMP only with old drivers
Clemens Ladisch [Mon, 14 Jan 2008 07:50:46 +0000 (08:50 +0100)]
pcm hw plugin: use TSTAMP only with old drivers

There is no need to call the TSTAMP ioctl with newer driver versions.

16 years agopcm hw plugin: fix TTSTAMP version check
Clemens Ladisch [Mon, 14 Jan 2008 07:50:18 +0000 (08:50 +0100)]
pcm hw plugin: fix TTSTAMP version check

Fix the version check that determines the availability of the TTSTAMP
ioctl.

16 years agopcm plug plugin: remove duplicated expression
Clemens Ladisch [Mon, 14 Jan 2008 07:49:35 +0000 (08:49 +0100)]
pcm plug plugin: remove duplicated expression

Remove a needlessly duplicated expression.

16 years agoAdded possibility to disable also channel and format conversions + softvol.
Jaroslav Kysela [Fri, 11 Jan 2008 16:21:44 +0000 (17:21 +0100)]
Added possibility to disable also channel and format conversions + softvol.

Unified disable option using mode bits in snd_pcm_open().

16 years agoSND_PCM_TSTAMP_MMAP -> SND_PCM_TSTAMP_ENABLE change
Jaroslav Kysela [Fri, 11 Jan 2008 07:54:07 +0000 (08:54 +0100)]
SND_PCM_TSTAMP_MMAP -> SND_PCM_TSTAMP_ENABLE change

16 years agoImplemented snd_pcm_rewind() for the dmix plugin
Jaroslav Kysela [Thu, 10 Jan 2008 09:01:14 +0000 (10:01 +0100)]
Implemented snd_pcm_rewind() for the dmix plugin

16 years agoDon't use deprecated functions inside
Takashi Iwai [Wed, 9 Jan 2008 16:21:09 +0000 (17:21 +0100)]
Don't use deprecated functions inside

Use the new functions in snd_pcm_sw_params_dump().

16 years agoAvoid (null) in printf
Takashi Iwai [Wed, 9 Jan 2008 16:17:58 +0000 (17:17 +0100)]
Avoid (null) in printf

Show '[builtin]' when the library name is NULL in error messages.

16 years agoFix exported symbols for hooks and functions
Takashi Iwai [Wed, 9 Jan 2008 16:17:14 +0000 (17:17 +0100)]
Fix exported symbols for hooks and functions

The functions dynamically loaded via plugin aren't fully listed
in the exported functions in Versions file.  This caused errors at
opening devices with such plugins.

16 years agoImpemented snd_pcm_htimestamp() function.
Jaroslav Kysela [Wed, 9 Jan 2008 12:50:45 +0000 (13:50 +0100)]
Impemented snd_pcm_htimestamp() function.

16 years agoAdd support for monotonic timestamps
Jaroslav Kysela [Wed, 9 Jan 2008 10:13:34 +0000 (11:13 +0100)]
Add support for monotonic timestamps

16 years agoconf: show path of any missing configuration file
Clemens Ladisch [Wed, 9 Jan 2008 08:42:42 +0000 (09:42 +0100)]
conf: show path of any missing configuration file

In all cases where a configuration file is not found, show an error
message with its full path.

16 years agoFix function declarations with old PCM API
Takashi Iwai [Wed, 9 Jan 2008 08:45:26 +0000 (09:45 +0100)]
Fix function declarations with old PCM API

The functions that are obsoleted in the last patches conflict with the
old PCM API.  Fixed with ifdef.

16 years agoRemove sleep_min and tick
Takashi Iwai [Tue, 8 Jan 2008 17:36:18 +0000 (18:36 +0100)]
Remove sleep_min and tick

The sleep_min and tick are removed features from the kernel.
This patch cleans the corresponding part in alsa-lib.

16 years agoRemove PCM xfer_align
Takashi Iwai [Tue, 8 Jan 2008 17:35:29 +0000 (18:35 +0100)]
Remove PCM xfer_align

The PCM xfer_align is a removed feature from the kernel.
This patch cleans up the corresponding part in alsa-lib.

16 years agoRemove indirect control access
Takashi Iwai [Tue, 8 Jan 2008 17:34:36 +0000 (18:34 +0100)]
Remove indirect control access

The indirect control access is removed from the kernel.
This patch cleans the corresponding alsa-lib part.

16 years agoRemove obsolete seq event entries in seq-decoder
Takashi Iwai [Fri, 21 Dec 2007 14:26:17 +0000 (15:26 +0100)]
Remove obsolete seq event entries in seq-decoder

Removed obsolete seq-devent entries in seq-decoder.

16 years agoAdd deprecated attribute to obsolete functions
Takashi Iwai [Fri, 21 Dec 2007 14:25:47 +0000 (15:25 +0100)]
Add deprecated attribute to obsolete functions

Added __attribute__((deprecated)) to declarations of obsolete functions.

16 years agoAdded SNDRV_PCM_IOCTL_TTSTAMP and updated PCM API version to 2.0.9
Jaroslav Kysela [Mon, 17 Dec 2007 08:04:42 +0000 (09:04 +0100)]
Added SNDRV_PCM_IOCTL_TTSTAMP and updated PCM API version to 2.0.9

16 years agoAdd snd_pcm_ioplug_set_state() function
Takashi Iwai [Fri, 14 Dec 2007 14:19:03 +0000 (15:19 +0100)]
Add snd_pcm_ioplug_set_state() function

Added an exported function snd_pcm_ioplug_set_state() to change
the PCM state of ioplug from the plugin side (e.g. from another
thread).

16 years agorevert revision 2264:23c4c0f5de40
Clemens Ladisch [Fri, 14 Dec 2007 08:11:01 +0000 (09:11 +0100)]
revert revision 2264:23c4c0f5de40

The rounding done when converting to smaller sample widths fails for
saturated positive samples; in this case, the sample value overflows and
becomes negative.  We are better off without rounding, even if we then
have quantization noise (of at most half the resolution of the least
significant bit).

ALSA bug#3360; Debian #437827; GNOME #436192; LP #116990; Mandriva #33908

16 years agoFix segfault with strdup(NULL) in softvol
Takashi Iwai [Thu, 13 Dec 2007 14:49:50 +0000 (15:49 +0100)]
Fix segfault with strdup(NULL) in softvol

The last change to fix the slave name may cause a segfault when
name=NULL is passed.  Fixed now.

16 years agodmix: add U8 support
Clemens Ladisch [Mon, 10 Dec 2007 11:35:08 +0000 (12:35 +0100)]
dmix: add U8 support

Add support for direct mixing of U8 samples (for devices like some USB
headsets or the Tux Droid).

16 years agodmix: simplify mix_areas()
Clemens Ladisch [Mon, 10 Dec 2007 11:32:36 +0000 (12:32 +0100)]
dmix: simplify mix_areas()

The code for the three supported sample widths is almost the same, so it
makes sense to merge the three cases.

16 years agodmix: rename mix_areas*
Clemens Ladisch [Mon, 10 Dec 2007 11:31:29 +0000 (12:31 +0100)]
dmix: rename mix_areas*

Rename all mix_areas* symbols so that they contain the sample width
instead of some meaningless number.

16 years agofix write in simple mixer API - python backends
Jaroslav Kysela [Tue, 4 Dec 2007 15:55:00 +0000 (16:55 +0100)]
fix write in simple mixer API - python backends

16 years agoClean up Versions file
Takashi Iwai [Fri, 30 Nov 2007 17:29:01 +0000 (18:29 +0100)]
Clean up Versions file

The entries in the current Versions file don't work as expected.
Since the first ALSA_0.9 has already snd_* global definitions, all
the rest are simply ignored.  Some symbols (e.g. snd_hw_params_*)
indeed work because they have explicit symver definitions, but
ALSA_0.9.6 and later are all superfluous.

This patch clean up these useless entries.  Also, the patch restricts
the matching patterns for _snd_* and __snd_* entries to reduce the
unneeded export symbols.

16 years agoMake local functions really local
Takashi Iwai [Fri, 30 Nov 2007 17:26:13 +0000 (18:26 +0100)]
Make local functions really local

Rename the local functions to snd1_* so that they won't be exported
out of alsa-lib.

Some functions are still kept because aserver requires them.  Sigh.

16 years agooxygen: remove softvol plugin
Clemens Ladisch [Fri, 30 Nov 2007 07:13:40 +0000 (08:13 +0100)]
oxygen: remove softvol plugin

Remove the softvol plugin from all other CMI8788 devices.