]>
git.alsa-project.org Git - alsa-lib.git/log
Clemens Ladisch [Mon, 14 Feb 2005 09:35:06 +0000 (09:35 +0000)]
use "C" locale when parsing floating point numbers
Floating point numbers in configuration files always use "." as separator,
so set the locale temporarily to "C" when calling strtod().
Takashi Iwai [Fri, 11 Feb 2005 16:35:24 +0000 (16:35 +0000)]
Fix resmgr support
Call normal open() before trying with res_open_device().
snd_open_device() is defined to do this procedure.
Takashi Iwai [Wed, 9 Feb 2005 17:28:08 +0000 (17:28 +0000)]
Fix compile warnings
Fixed compile warnings with unused variables.
Takashi Iwai [Wed, 9 Feb 2005 16:59:10 +0000 (16:59 +0000)]
Fix the parse of filenames with spaces
Fixed the parse of filenames with spaces.
Takashi Iwai [Wed, 9 Feb 2005 16:10:41 +0000 (16:10 +0000)]
Remove routing of 5.1 output
Removed the routing of 5.1 output. ICH4 uses the same slot
assignment (3/4/7/8/6/9) like codec chips.
Takashi Iwai [Tue, 8 Feb 2005 20:57:51 +0000 (20:57 +0000)]
Add external PCM plugin SDK (draft version)
Added the external PCM plugin SDK (draft version).
This can be used to create external PCM plugins.
Example codes are found in alsa-plugins directory.
Takashi Iwai [Tue, 8 Feb 2005 20:48:39 +0000 (20:48 +0000)]
Fix hw_params of lfloat plugin
Fixed the bogus hw_refine call in hw_params of lfloat plugin.
Takashi Iwai [Tue, 8 Feb 2005 20:30:15 +0000 (20:30 +0000)]
Fix the include path
Fixed the include path. Apps should include like <alsa/xxx>.
Takashi Iwai [Tue, 8 Feb 2005 20:28:29 +0000 (20:28 +0000)]
Split arch-dependent codes of dmix
Split arch-dependent codes of dmix to separate files.
Clemens Ladisch [Mon, 7 Feb 2005 09:13:58 +0000 (09:13 +0000)]
start pcm when draining in prepared state
For consistency with hw pcms, dmix/dshare pcms are started
when draining in the prepared state with a non-empty buffer.
Takashi Iwai [Fri, 4 Feb 2005 19:18:49 +0000 (19:18 +0000)]
Use bag_for_each_safe() for event handling loop
Use bag_for_each_safe() for event handling loop.
Event callbacks may be destructive.
Takashi Iwai [Tue, 1 Feb 2005 18:19:31 +0000 (18:19 +0000)]
undef gets in case it's a macro
From Thierry Vignaud <tvignaud@mandrakesoft.com>:
from rh: undef gets in case it's a macro (see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=141423)
Takashi Iwai [Tue, 1 Feb 2005 18:18:45 +0000 (18:18 +0000)]
stack protection (CAN-2005-0087)
From Thierry Vignaud <tvignaud@mandrakesoft.com>:
from rh: stack protection control (see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144518)
Takashi Iwai [Mon, 31 Jan 2005 11:53:46 +0000 (11:53 +0000)]
Add config file for PC-Speaker driver
Added the config file for PC-Speaker driver (use dmix/null as default PCM)
Takashi Iwai [Mon, 31 Jan 2005 11:51:36 +0000 (11:51 +0000)]
Use dmix/dsnoop for default PCM
Use dmix/dsnoop plugins for default PCM in most of mobo chips
Takashi Iwai [Thu, 27 Jan 2005 15:45:05 +0000 (15:45 +0000)]
Make dsnoop card-specific
Make dsnoop card-specific. Its definition is moved to pcm/dsnoop.conf.
Takashi Iwai [Thu, 27 Jan 2005 15:44:06 +0000 (15:44 +0000)]
Fix a typo in default period size
Fixed a typo in the default period size.
Takashi Iwai [Wed, 26 Jan 2005 10:50:28 +0000 (10:50 +0000)]
Add resmgr support
Added the support for resmgr. A new configure option --with-resmgr is added
to enable the resmgr support.
Takashi Iwai [Fri, 21 Jan 2005 19:38:10 +0000 (19:38 +0000)]
Fix the available formats
Fixed the available formats to be set in hw_refine.
Takashi Iwai [Fri, 21 Jan 2005 19:37:00 +0000 (19:37 +0000)]
Use snd_config_get_bool()
Cleanup using snd_config_get_bool() in possible places.
Takashi Iwai [Fri, 21 Jan 2005 19:35:26 +0000 (19:35 +0000)]
Check error values
Check error values from some functions which were ignored.
Jaroslav Kysela [Thu, 20 Jan 2005 18:37:13 +0000 (18:37 +0000)]
The stream linking problem for pcm_multi.c should be fixed now
- extended link_fd callback
- added snd_pcm_generic_link2()
- added _snd_pcm_link_descriptors()
Takashi Iwai [Thu, 20 Jan 2005 17:46:33 +0000 (17:46 +0000)]
Add pcm_generic.h
Added the missing pcm_generic.h.
Takashi Iwai [Thu, 20 Jan 2005 15:09:14 +0000 (15:09 +0000)]
Add config for HDA-Intel
Add HDA-Intel.conf for snd-hda-intel driver (former snd-azx).
Azalia.conf is kept for backward compatibility.
Jaroslav Kysela [Thu, 20 Jan 2005 15:07:51 +0000 (15:07 +0000)]
improved stream linking and plugin code cleanups
- added link/unlink/link_fd fast_ops callbacks
- moved code from snd_pcm_link to pcm_hw.c
- moved "empty" routines pointing to slave to pcm_generic.c
- introduced snd_pcm_generic_t
Takashi Iwai [Wed, 19 Jan 2005 13:56:31 +0000 (13:56 +0000)]
Fix compile warning
Fixed a compile warning with printf and size types.
Takashi Iwai [Wed, 19 Jan 2005 13:43:25 +0000 (13:43 +0000)]
Fix compile warning
Fixed compile warning with printf() and timeval sizes.
Takashi Iwai [Wed, 19 Jan 2005 13:37:14 +0000 (13:37 +0000)]
Fixed compile warning
Fixed compile warning. The strlen() returns size_t, not integer.
Clemens Ladisch [Mon, 17 Jan 2005 17:34:31 +0000 (17:34 +0000)]
fix some file paths in comments
doxygen complains if the file name specified with \file does
not match the real file name, so fix it
Takashi Iwai [Thu, 13 Jan 2005 17:28:11 +0000 (17:28 +0000)]
Fix a typo
Fixed a typo in comment by Kirill Smelkov <kirr@mns.spb.ru>
Takashi Iwai [Thu, 13 Jan 2005 17:00:11 +0000 (17:00 +0000)]
Fix memory leak
Fixed memory leak at snd_mixer_elem_detach().
Takashi Iwai [Thu, 13 Jan 2005 15:46:34 +0000 (15:46 +0000)]
Use snd_config_get_bool()
Clean up the code, using snd_config_get_bool().
Takashi Iwai [Thu, 13 Jan 2005 15:45:42 +0000 (15:45 +0000)]
Make dmix card-specific
The parameters of dmix PCM definition are now card-specific.
As default, period_size = 1024 and periods = 8 are used.
Takashi Iwai [Thu, 13 Jan 2005 15:44:05 +0000 (15:44 +0000)]
Fix the bogus return values
Fixed return values from snd_config_load(). Return -EINVAL instead of
internal error numbers.
Jaroslav Kysela [Thu, 13 Jan 2005 09:54:55 +0000 (09:54 +0000)]
release: 1.0.8
Takashi Iwai [Wed, 12 Jan 2005 11:19:47 +0000 (11:19 +0000)]
Fix compile warning
Fixed compile warning due to signed/unsigned comparison.
Takashi Iwai [Tue, 11 Jan 2005 17:42:49 +0000 (17:42 +0000)]
Fix handling of DISCONNECT state
Fixed the handling of DISCONNECT state in dmix (not to set bogus error
values to state).
Takashi Iwai [Tue, 11 Jan 2005 15:11:09 +0000 (15:11 +0000)]
Clear sw_params struct at initialization
Do zero-clear the sw_params struct in hw_params, just to be sure.
This makes valgrind happy.
Takashi Iwai [Tue, 11 Jan 2005 15:10:03 +0000 (15:10 +0000)]
Removed wrong ATTRIBUTE_UNUSED
Removed a wrong ATTRIBUTE_UNUSED in snd_output_stdio_close().
Takashi Iwai [Tue, 11 Jan 2005 15:08:58 +0000 (15:08 +0000)]
Add inclusion of time.h
timeval and timespec structs need time.h.
Jaroslav Kysela [Wed, 5 Jan 2005 06:59:02 +0000 (06:59 +0000)]
release: 1.0.8rc2
Takashi Iwai [Tue, 4 Jan 2005 13:57:51 +0000 (13:57 +0000)]
Performance optimization
The performance of rate conversion is optimized.
- with S16 format, no format conversion is done
- linear polation of expansion uses 16bit resolution
Takashi Iwai [Tue, 4 Jan 2005 11:37:29 +0000 (11:37 +0000)]
Support stereo volume control
softvol supports stereo volume controls.
Fixed the dB calculation, too.
Takashi Iwai [Mon, 3 Jan 2005 18:19:23 +0000 (18:19 +0000)]
Fix missing declaration
Fixed the missing declration of softvol plugin.
Takashi Iwai [Mon, 3 Jan 2005 17:20:21 +0000 (17:20 +0000)]
Add new config files
Azalia, ES1968 and Maestro3 configs are added.
Takashi Iwai [Mon, 3 Jan 2005 17:19:53 +0000 (17:19 +0000)]
New config for Azalia (intel HD audio) driver
The new config file for Azalia (snd-azx), Intel HD audio driver.
For playback, softvol is applied for codecs without volume controls.
Takashi Iwai [Mon, 3 Jan 2005 17:18:44 +0000 (17:18 +0000)]
New config for ES1968 and Maestro3
New config files for ES1968 and Maestro3.
They have multi-playback capabilities, so the default shouldn't be dmix.
Takashi Iwai [Mon, 3 Jan 2005 17:17:43 +0000 (17:17 +0000)]
Use softvol for PCM outputs
Use softvol plugin for codecs without PCM volume controls (e.g. c-media).
The default PCM is redefined to use softvol for playback.
Takashi Iwai [Mon, 3 Jan 2005 17:12:51 +0000 (17:12 +0000)]
Set max volume as default for softvol
Set max volume as default for softvol.
Takashi Iwai [Mon, 3 Jan 2005 17:12:21 +0000 (17:12 +0000)]
Add Front control to weight list
Added "Front" control to the weight list.
Takashi Iwai [Mon, 3 Jan 2005 14:42:11 +0000 (14:42 +0000)]
Make "default" PCM card-specific
"default" PCM can be card-specific.
The definition is moved to pcm/default.conf, and read on-demmand via
aliases.conf. The card config can override the default config.
Takashi Iwai [Mon, 3 Jan 2005 14:39:33 +0000 (14:39 +0000)]
Add default for refer function
"@func refer" accepts default configuration. If the refer to the
given config fails, the default config is picked up.
Takashi Iwai [Mon, 3 Jan 2005 14:37:39 +0000 (14:37 +0000)]
Change the behavior with hardware volume controls
When a hardware volume control is given, softvol plugin simply
passes the slave PCM without any additional changes.
Takashi Iwai [Mon, 3 Jan 2005 11:52:39 +0000 (11:52 +0000)]
Add accessor to user control elements
Added accessor functions to user control elements, snd_ctl_elem_add_*(),
and_ctl_elem_remove() and snd_ctl_elem_info_is_user().
Takashi Iwai [Wed, 29 Dec 2004 13:15:57 +0000 (13:15 +0000)]
Fix compilation with 2.6.9 kernel (glibc headers)
Fix by earl <earl@stanfordalumni.org>:
Fixed the compilation with glibc headers based on 2.6.9 kernel.
Takashi Iwai [Mon, 27 Dec 2004 14:40:19 +0000 (14:40 +0000)]
Add softvol PCM plugin
The softvol PCM plugin is added. It applies the software volume attenuation,
which may be useful for codecs without volume controls.
Currently, the control is only mono. The attenuation is applied to all
channels equally. The control is probed and automatically created
when not exists yet.
Clemens Ladisch [Thu, 23 Dec 2004 08:15:46 +0000 (08:15 +0000)]
fix changed error message handling
In the last error message handling change, some error conditions
didn't get properly inverted.
Jaroslav Kysela [Tue, 21 Dec 2004 15:24:36 +0000 (15:24 +0000)]
release: 1.0.8rc1
Jaroslav Kysela [Tue, 21 Dec 2004 14:32:48 +0000 (14:32 +0000)]
release: 1.0.8-rc1
Takashi Iwai [Tue, 21 Dec 2004 14:11:00 +0000 (14:11 +0000)]
Change error message handling
Change the handling of non-fatal errors. Now the non-fatal error
messages are not shown in stderr and no assert() as default. The
behavior can be changed with LIBASOUND_DEBUG environment variable.
Takashi Iwai [Wed, 15 Dec 2004 15:17:36 +0000 (15:17 +0000)]
Add preamble value configuration for iec958 plugin
The preamble values can be defined in iec958 plugin configuration.
As default, Z/Y/X=8/4/2 is used. CMI8338 has different values,
so override in its configuration.
Kirill Smelkov [Wed, 8 Dec 2004 19:22:42 +0000 (19:22 +0000)]
Fixed few typos in documentation.
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Takashi Iwai [Mon, 6 Dec 2004 19:49:42 +0000 (19:49 +0000)]
Disable 'duplicate front' switch for rear
The rear PCM needs to disable 'duplicate front' switch.
James Courtier-Dutton [Mon, 6 Dec 2004 15:28:06 +0000 (15:28 +0000)]
Rename AudigyLS -> CA0106
Along with the rename of the driver, the config file is renamed to
CA0106, too.
Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Clemens Ladisch [Wed, 24 Nov 2004 16:31:56 +0000 (16:31 +0000)]
fix miscalculation of buffer size in snd_output_buffer_need()
snd_output_buffer_need() did not account for the already used part of
the buffer when trying to allocating new space.
Andreas Fenkart [Mon, 22 Nov 2004 06:40:10 +0000 (06:40 +0000)]
Fixes variable shadow problem in capture direction
My gnomemeeting hung when accessing the microphone.
The problem was that the rate variable was not initialized when jumping to
the __partial label.
Signed-off-by: Andreas Fenkart <afenkart@gmx.ch>
Jaroslav Kysela [Tue, 16 Nov 2004 16:03:01 +0000 (16:03 +0000)]
fix for capture for case when status/control structures are not mmaped
Jaroslav Kysela [Tue, 16 Nov 2004 15:05:49 +0000 (15:05 +0000)]
appl_ptr sync fix when status/control structures are not mmaped
The prepare and reset ioctls can modify appl_ptr, thus the user space
must take modified appl_ptr from driver.
Jaroslav Kysela [Sat, 13 Nov 2004 14:37:48 +0000 (14:37 +0000)]
Sync with the driver (EFX code structure)
Jaroslav Kysela [Fri, 12 Nov 2004 20:27:31 +0000 (20:27 +0000)]
Return correct error in snd_pcm_wait() after snd_pcm_poll_descriptors() call
Jaroslav Kysela [Thu, 11 Nov 2004 18:28:54 +0000 (18:28 +0000)]
release: 1.0.7
Jaroslav Kysela [Tue, 9 Nov 2004 13:12:35 +0000 (13:12 +0000)]
Fixed cut-n-copy problem
Jaroslav Kysela [Tue, 9 Nov 2004 13:11:43 +0000 (13:11 +0000)]
Added SNDRV_HWDEP_IFACE_BLUETOOTH
Jaroslav Kysela [Tue, 9 Nov 2004 13:08:24 +0000 (13:08 +0000)]
Added SNDRV_HWDEP_IFACE_BLUETOOTH
Clemens Ladisch [Mon, 8 Nov 2004 08:49:19 +0000 (08:49 +0000)]
remove duplicate snd_pcm_null_fwd() function
Jaroslav Kysela [Fri, 29 Oct 2004 10:56:13 +0000 (10:56 +0000)]
Try to fix period_time/period_size problems for direct plugin slaves
Takashi Iwai [Mon, 18 Oct 2004 15:13:17 +0000 (15:13 +0000)]
Add VIA8237 config
Added the confit file for VIA8237 or later chips.
It reroutes 5.1 output where VIA8233 doesn't need it.
Jaroslav Kysela [Tue, 12 Oct 2004 05:58:37 +0000 (05:58 +0000)]
release: 1.0.7rc2
Nicolas FRANCOIS [Fri, 8 Oct 2004 16:15:32 +0000 (16:15 +0000)]
Fix hyphens in man pages
This patch converts hyphens to minus signs in the man pages (for options,
emails, or command line examples).
This patch also closes one font modifier in iecset.1.
(s/\fIfalse\fI,/\fIfalse\fP,/)
Signed-off-by: Nicolas FRANCOIS <nicolas.francois@centraliens.net>
Clemens Ladisch [Tue, 5 Oct 2004 15:33:04 +0000 (15:33 +0000)]
fix memory leak
fix memory leak if snd_user_file() fails
Takashi Iwai [Thu, 30 Sep 2004 13:21:43 +0000 (13:21 +0000)]
Fix typos
Fixed typos of int types.
Added inclusion of stdint.h.
Takashi Iwai [Wed, 29 Sep 2004 15:48:18 +0000 (15:48 +0000)]
Add ICH4 config file
Added ICH4 config file for the proper support of SPDIF.
Thomas Hood [Tue, 28 Sep 2004 17:22:33 +0000 (17:22 +0000)]
Terminate long_options array
Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
Jaroslav Kysela [Tue, 28 Sep 2004 10:54:05 +0000 (10:54 +0000)]
Added check_std_error to avoid extra verbosity
Jaroslav Kysela [Tue, 28 Sep 2004 10:45:33 +0000 (10:45 +0000)]
Fixed typo
Takashi Iwai [Wed, 22 Sep 2004 15:21:51 +0000 (15:21 +0000)]
Fix the variable types in struct
The variable types are declared explicitly like u_int32_t and u_int64_t
to avoid ambiguity.
Clemens Ladisch [Wed, 22 Sep 2004 07:12:59 +0000 (07:12 +0000)]
fix driver aliases
fix GUS Max driver name typo;
add aliases for driver names that would make invalid file names
Takashi Iwai [Tue, 21 Sep 2004 10:37:17 +0000 (10:37 +0000)]
[hdsp] Fix for 64bit architectures
Fixed the loading of firmware data and the handling of meter mmap
on 64bit architectures.
Takashi Iwai [Tue, 21 Sep 2004 10:36:54 +0000 (10:36 +0000)]
Remove the obsolete NONATOMIC ops bit.
SNDRV_PCM_INFO_NONATOMIC_OPS bit is removed. It's obsolete now.
Takashi Iwai [Tue, 21 Sep 2004 10:35:57 +0000 (10:35 +0000)]
Fix warnings with -Wshadow
Fixed compile warnings when compiled with -Wshadow.
(Renamed the shadow parameteres with _ prefix to avoid confliction.)
Takashi Iwai [Fri, 17 Sep 2004 17:36:18 +0000 (17:36 +0000)]
[alsa-lib] Avoid zero division
Check the invalid parameters in snd_pcm_sw_params() beforehand to avoid
zero division.
Markus Grabner [Thu, 16 Sep 2004 10:02:12 +0000 (10:02 +0000)]
Fix the downsampling noise problem
Description: The patch replaces the nearest neighbor downsampling method
in the sample rate conversion plugin by linear interpolation of the closest
two samples, thus significantly reducing the resampling noise.
Signed-off-by: Markus Grabner <grabner@icg.tu-graz.ac.at>
Takashi Iwai [Wed, 15 Sep 2004 18:48:07 +0000 (18:48 +0000)]
[ALSA-LIB] remove the library replacement for $LIBS
Don't remove libs (e.g. -lm -ldl) from $LIBS incorrectly.
Better to keep them than wrong replacement.
Takashi Iwai [Wed, 15 Sep 2004 18:45:51 +0000 (18:45 +0000)]
[ALSA-LIB] suppress PAUSE and RESUME for direct plugins
Direct plugins don't work well with PAUSE and RESUME. The info
bits are cleared for these plugins to suppress these features.
Stas Sergeev [Wed, 15 Sep 2004 18:44:24 +0000 (18:44 +0000)]
[ALSA-LIB] dmix: dont forget to return -EINVAL on errors
snd_pcm_dmix_open() returns success if the open fails attempting
to open not the HW plugin (dmix seems to be limited to use only
the HW plugin right now). This leads to memory corruptions and
eventually a SIGSEGV. The attached patch fixes the omission.
Signed-off-by: Stas Sergeev <stsp@aknet.ru>
Jaroslav Kysela [Wed, 8 Sep 2004 17:06:42 +0000 (17:06 +0000)]
release: 1.0.7rc1
Jaroslav Kysela [Wed, 8 Sep 2004 16:43:17 +0000 (16:43 +0000)]
fixed endless loop when parsing backslash inside bad configuration file
Takashi Iwai [Wed, 8 Sep 2004 15:02:05 +0000 (15:02 +0000)]
Addition of VIA82XX-MODEM pcm.
VIA82XX-MODEM pcm definition is added.
It's simply aliased to ICH-MODEM.
Jaroslav Kysela [Tue, 7 Sep 2004 09:43:31 +0000 (09:43 +0000)]
Summay: Added doc-pack and doc-clean rules
Peter Zubaj [Mon, 6 Sep 2004 15:06:48 +0000 (15:06 +0000)]
[emu10k1] Audigy DSP support
This patch will add better support for Audigy DSP. More gpr,
instruction and tram. It will break binary compatibility for app
which use emu10k1 hwdep.
Signed-off-by: Peter Zubaj <pzad@pobox.sk>