Commit graph

1890 commits

Author SHA1 Message Date
Takashi Iwai
d7a32ca06b Fix hw_params of lfloat plugin
Fixed the bogus hw_refine call in hw_params of lfloat plugin.
2005-02-08 20:48:39 +00:00
Takashi Iwai
c2644837fd Fix the include path
Fixed the include path.  Apps should include like <alsa/xxx>.
2005-02-08 20:30:15 +00:00
Takashi Iwai
22846c486f Split arch-dependent codes of dmix
Split arch-dependent codes of dmix to separate files.
2005-02-08 20:28:29 +00:00
Clemens Ladisch
c92969845d 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.
2005-02-07 09:13:58 +00:00
Takashi Iwai
da5fa1e15c Use bag_for_each_safe() for event handling loop
Use bag_for_each_safe() for event handling loop.
Event callbacks may be destructive.
2005-02-04 19:18:49 +00:00
Takashi Iwai
180f51943e 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)
2005-02-01 18:19:31 +00:00
Takashi Iwai
e02c51a199 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)
2005-02-01 18:18:45 +00:00
Takashi Iwai
1dd2db1367 Add config file for PC-Speaker driver
Added the config file for PC-Speaker driver (use dmix/null as default PCM)
2005-01-31 11:53:46 +00:00
Takashi Iwai
33d9449c71 Use dmix/dsnoop for default PCM
Use dmix/dsnoop plugins for default PCM in most of mobo chips
2005-01-31 11:51:36 +00:00
Takashi Iwai
9309430ae8 Make dsnoop card-specific
Make dsnoop card-specific.  Its definition is moved to pcm/dsnoop.conf.
2005-01-27 15:45:05 +00:00
Takashi Iwai
c9b868889e Fix a typo in default period size
Fixed a typo in the default period size.
2005-01-27 15:44:06 +00:00
Takashi Iwai
77c925a71f Add resmgr support
Added the support for resmgr.  A new configure option --with-resmgr is added
to enable the resmgr support.
2005-01-26 10:50:28 +00:00
Takashi Iwai
7e74f2ef1b Fix the available formats
Fixed the available formats to be set in hw_refine.
2005-01-21 19:38:10 +00:00
Takashi Iwai
680a60a688 Use snd_config_get_bool()
Cleanup using snd_config_get_bool() in possible places.
2005-01-21 19:37:00 +00:00
Takashi Iwai
1fb6e88716 Check error values
Check error values from some functions which were ignored.
2005-01-21 19:35:26 +00:00
Jaroslav Kysela
a5831c7300 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()
2005-01-20 18:37:13 +00:00
Takashi Iwai
6cac58179b Add pcm_generic.h
Added the missing pcm_generic.h.
2005-01-20 17:46:33 +00:00
Takashi Iwai
a00be1418e Add config for HDA-Intel
Add HDA-Intel.conf for snd-hda-intel driver (former snd-azx).
Azalia.conf is kept for backward compatibility.
2005-01-20 15:09:14 +00:00
Jaroslav Kysela
836987aa99 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
2005-01-20 15:07:51 +00:00
Takashi Iwai
9501520606 Fix compile warning
Fixed a compile warning with printf and size types.
2005-01-19 13:56:31 +00:00
Takashi Iwai
71ee169307 Fix compile warning
Fixed compile warning with printf() and timeval sizes.
2005-01-19 13:43:25 +00:00
Takashi Iwai
0994cf7aae Fixed compile warning
Fixed compile warning.  The strlen() returns size_t, not integer.
2005-01-19 13:37:14 +00:00
Clemens Ladisch
04c2de32c1 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
2005-01-17 17:34:31 +00:00
Takashi Iwai
340018db8a Fix a typo
Fixed a typo in comment by Kirill Smelkov <kirr@mns.spb.ru>
2005-01-13 17:28:11 +00:00
Takashi Iwai
13098f8f42 Fix memory leak
Fixed memory leak at snd_mixer_elem_detach().
2005-01-13 17:00:11 +00:00
Takashi Iwai
ff9c030e65 Use snd_config_get_bool()
Clean up the code, using snd_config_get_bool().
2005-01-13 15:46:34 +00:00
Takashi Iwai
cf865cc990 Make dmix card-specific
The parameters of dmix PCM definition are now card-specific.
As default, period_size = 1024 and periods = 8 are used.
2005-01-13 15:45:42 +00:00
Takashi Iwai
2010890399 Fix the bogus return values
Fixed return values from snd_config_load().  Return -EINVAL instead of
internal error numbers.
2005-01-13 15:44:05 +00:00
Jaroslav Kysela
7bacfa42d6 release: 1.0.8 2005-01-13 09:54:55 +00:00
Takashi Iwai
5211c26927 Fix compile warning
Fixed compile warning due to signed/unsigned comparison.
2005-01-12 11:19:47 +00:00
Takashi Iwai
c83e9d7451 Fix handling of DISCONNECT state
Fixed the handling of DISCONNECT state in dmix (not to set bogus error
values to state).
2005-01-11 17:42:49 +00:00
Takashi Iwai
c67584ec65 Clear sw_params struct at initialization
Do zero-clear the sw_params struct in hw_params, just to be sure.
This makes valgrind happy.
2005-01-11 15:11:09 +00:00
Takashi Iwai
554fe08747 Removed wrong ATTRIBUTE_UNUSED
Removed a wrong ATTRIBUTE_UNUSED in snd_output_stdio_close().
2005-01-11 15:10:03 +00:00
Takashi Iwai
fdbfe89b08 Add inclusion of time.h
timeval and timespec structs need time.h.
2005-01-11 15:08:58 +00:00
Jaroslav Kysela
86e898e6d4 release: 1.0.8rc2 2005-01-05 06:59:02 +00:00
Takashi Iwai
a920ca39db Performance optimization
The performance of rate conversion is optimized.
- with S16 format, no format conversion is done
- linear polation of expansion uses 16bit resolution
2005-01-04 13:57:51 +00:00
Takashi Iwai
c7feb066b1 Support stereo volume control
softvol supports stereo volume controls.
Fixed the dB calculation, too.
2005-01-04 11:37:29 +00:00
Takashi Iwai
7e92411760 Fix missing declaration
Fixed the missing declration of softvol plugin.
2005-01-03 18:19:23 +00:00
Takashi Iwai
6ceba8d0e2 Add new config files
Azalia, ES1968 and Maestro3 configs are added.
2005-01-03 17:20:21 +00:00
Takashi Iwai
90f43d1b68 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.
2005-01-03 17:19:53 +00:00
Takashi Iwai
abf5ea1fcc 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.
2005-01-03 17:18:44 +00:00
Takashi Iwai
156eb1228e 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.
2005-01-03 17:17:43 +00:00
Takashi Iwai
82e408d08b Set max volume as default for softvol
Set max volume as default for softvol.
2005-01-03 17:12:51 +00:00
Takashi Iwai
cb6bb19b4d Add Front control to weight list
Added "Front" control to the weight list.
2005-01-03 17:12:21 +00:00
Takashi Iwai
d2a1301073 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.
2005-01-03 14:42:11 +00:00
Takashi Iwai
eb69df65b3 Add default for refer function
"@func refer" accepts default configuration.  If the refer to the
given config fails, the default config is picked up.
2005-01-03 14:39:33 +00:00
Takashi Iwai
199d207423 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.
2005-01-03 14:37:39 +00:00
Takashi Iwai
0732cce6f0 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().
2005-01-03 11:52:39 +00:00
Takashi Iwai
77348e830f 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.
2004-12-29 13:15:57 +00:00
Takashi Iwai
30f35c1f7a 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.
2004-12-27 14:40:19 +00:00