OSDN Git Service
Takashi Iwai [Thu, 24 Mar 2005 11:59:18 +0000 (11:59 +0000)]
Enable slowptr option as default
Enabled slowptr option as default.
This seems to eliminate the occasional noises on SMP/HT systems (maybe
some race or cache mismatch).
James Courtier-Dutton [Thu, 24 Mar 2005 11:24:31 +0000 (11:24 +0000)]
Fixes AC3 output on Audigy2 sound cards
This patch adds a DSP patch to fix an spdif_bug on some Audigy2 cards.
It also does detailed identification of the capabilities of the sound
card so that the patch is only applied to the sound cards that really
need it.
Signed-off-by: James Courtier-Dutton
Jaroslav Kysela [Thu, 24 Mar 2005 09:49:44 +0000 (09:49 +0000)]
release: 1.0.9rc2
Takashi Iwai [Tue, 22 Mar 2005 18:49:07 +0000 (18:49 +0000)]
Fix compilation with gcc-4.0
Fixed compilation with gcc-4.0
James Courtier-Dutton [Mon, 21 Mar 2005 19:55:16 +0000 (19:55 +0000)]
Fix AC3 output on alsa-lib ca0106.conf
This fixes AC3 SPDIF output. It now correctly turns SPDIF OUT on when
using the iec958 device.
Signed-off-by: James Courtier-Dutton
Clemens Ladisch [Mon, 21 Mar 2005 08:17:26 +0000 (08:17 +0000)]
add HPET support
add a wrapper for the HPET driver
Takashi Iwai [Thu, 17 Mar 2005 16:14:17 +0000 (16:14 +0000)]
Fix a typo
Fix a typo of sostenuto.
The old definition is kept for compatibility.
Takashi Iwai [Wed, 16 Mar 2005 13:25:25 +0000 (13:25 +0000)]
Fix the device-open check
Fixed the device-open check with --disable-aload.
Takashi Iwai [Wed, 16 Mar 2005 11:41:02 +0000 (11:41 +0000)]
Added asound_fm.h
Added asound_fm.h to be used from specific apps.
Takashi Iwai [Tue, 15 Mar 2005 11:39:51 +0000 (11:39 +0000)]
Fix resume of dmix, dsnoop and dshare plugins
Fix the resume of dmix, dsnoop and dshare plugins.
[This replaces the timer mode with TREAD mode, and may trigger Oops
with the older kernel...]
Jaroslav Kysela [Sun, 13 Mar 2005 09:31:24 +0000 (09:31 +0000)]
release: 1.0.9rc1
Jaroslav Kysela [Thu, 10 Mar 2005 20:03:02 +0000 (20:03 +0000)]
Fix rear/center_lfe subdevice mismatch
Clemens Ladisch [Thu, 10 Mar 2005 10:45:19 +0000 (10:45 +0000)]
rawmidi_virt: fix hang on invalid MIDI data
When writing invalid MIDI data to a virtual rawmidi port,
snd_rawmidi_virtual_write() would forget to remove that data
from the input buffer before continuing, resulting in an
infinite loop.
Takashi Iwai [Wed, 9 Mar 2005 12:00:37 +0000 (12:00 +0000)]
Small code clean up
Small code clean up for readability.
Takashi Iwai [Wed, 9 Mar 2005 11:59:37 +0000 (11:59 +0000)]
Fix invalid free
Fixed the invalid free of memory.
Takashi Iwai [Wed, 9 Mar 2005 11:57:54 +0000 (11:57 +0000)]
Add snd_pcm_parse_control_id()
Added a new function snd_pcm_parse_control_id() for the user controls.
This can be used in external plugins, too.
Takashi Iwai [Wed, 9 Mar 2005 11:54:58 +0000 (11:54 +0000)]
More doxygen comments
Added more doxygen comments in pcm_extplug and pcm_ioplug codes.
Jaroslav Kysela [Thu, 3 Mar 2005 11:13:00 +0000 (11:13 +0000)]
Added snd_seq_ev_set_tag() macro
Lee Revell [Mon, 28 Feb 2005 08:39:25 +0000 (08:39 +0000)]
move the Jack plugin to alsa-plugins
remove the src/pcm/ext/Makefile.in entry from configure.in, too
Signed-off-by: Lee Revell <rlrevell@joe-job.com>
Clemens Ladisch [Mon, 28 Feb 2005 08:25:12 +0000 (08:25 +0000)]
fix the file plugin
Call snd_pcm_file_hw_params instead of snd_pcm_generic_hw_params
to prevent a crash when the file plugin is used.
Takashi Iwai [Thu, 24 Feb 2005 20:57:56 +0000 (20:57 +0000)]
Initialize structs for ioctls
Initialize the argument structs before calling ioctls to make
valgrind happy.
Takashi Iwai [Thu, 24 Feb 2005 10:20:44 +0000 (10:20 +0000)]
Add a note on FC3
Added a note on installation on FC3.
Takashi Iwai [Thu, 24 Feb 2005 10:19:23 +0000 (10:19 +0000)]
Fix SPDIF device
Fixed SPDIF device number.
Takashi Iwai [Thu, 24 Feb 2005 10:16:51 +0000 (10:16 +0000)]
Remove JACK plugin
Removed JACK plugin. It's in alsa-plugins now.
Takashi Iwai [Tue, 22 Feb 2005 20:23:18 +0000 (20:23 +0000)]
Fix card type to string
Fixed the card type to string in each config.
Also, removed suprefluous DEV argument in iec958 of some cards.
Takashi Iwai [Tue, 22 Feb 2005 20:21:23 +0000 (20:21 +0000)]
Accept string type card
Accept string type card entry to be compatible with others.
Takashi Iwai [Tue, 22 Feb 2005 20:20:42 +0000 (20:20 +0000)]
Add config file for CMI8768
Added the config file for CMI8768 (showns as CMI8738-MC8).
Takashi Iwai [Fri, 18 Feb 2005 18:13:45 +0000 (18:13 +0000)]
Add Side controls in the weight list
Added the "Side" controls in the weight list.
Takashi Iwai [Thu, 17 Feb 2005 15:15:37 +0000 (15:15 +0000)]
Use softvol for default PCM
Use softvol plugin for default PCM (for C-Media codecs)
Mikael Magnusson [Wed, 16 Feb 2005 11:47:05 +0000 (11:47 +0000)]
Fixed rear PCM (mono output)
Signed-off-by: Mikael Magnusson <mikaelmagnusson@glocalnet.net>
Takashi Iwai [Mon, 14 Feb 2005 15:48:14 +0000 (15:48 +0000)]
Code clean-up
Small code clean-up
Takashi Iwai [Mon, 14 Feb 2005 15:09:09 +0000 (15:09 +0000)]
Support dl-object cache
Added the support of dl-object caches for PCM plugins.
Takashi Iwai [Mon, 14 Feb 2005 13:52:00 +0000 (13:52 +0000)]
Fix a typo
Fixed a typo in the last change for --enable-resmgr.
Takashi Iwai [Mon, 14 Feb 2005 13:33:08 +0000 (13:33 +0000)]
Add filter-type external plugin SDK
Added the SDK for filter-type PCM plugins.
Share some codes with ioplug.
Takashi Iwai [Mon, 14 Feb 2005 13:31:53 +0000 (13:31 +0000)]
Add --disable-aload configure option
Added --disable-aload configure option to suppress probing of
/dev/aload* files for auto-loading. These files often conflict with
udev mechanism.
Also, --with-resmgr is changed to --enable-resmgr.
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.