Commit graph

1774 commits

Author SHA1 Message Date
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
Clemens Ladisch
5c9ee5ef03 fix changed error message handling
In the last error message handling change, some error conditions
didn't get properly inverted.
2004-12-23 08:15:46 +00:00
Jaroslav Kysela
f0762bd3cd release: 1.0.8rc1 2004-12-21 15:24:36 +00:00
Jaroslav Kysela
a94eb21623 release: 1.0.8-rc1 2004-12-21 14:32:48 +00:00
Takashi Iwai
2b54677fdb 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.
2004-12-21 14:11:00 +00:00
Takashi Iwai
73aa2549d9 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.
2004-12-15 15:17:36 +00:00
Kirill Smelkov
0256e1e8c9 Fixed few typos in documentation.
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
2004-12-08 19:22:42 +00:00
Takashi Iwai
d06e8bec19 Disable 'duplicate front' switch for rear
The rear PCM needs to disable 'duplicate front' switch.
2004-12-06 19:49:42 +00:00
James Courtier-Dutton
8269dca0dd 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>
2004-12-06 15:28:06 +00:00
Clemens Ladisch
290541d0ae 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.
2004-11-24 16:31:56 +00:00
Andreas Fenkart
0ed778404d 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>
2004-11-22 06:40:10 +00:00
Jaroslav Kysela
457b8777ab fix for capture for case when status/control structures are not mmaped 2004-11-16 16:03:01 +00:00
Jaroslav Kysela
6987a8555c 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.
2004-11-16 15:05:49 +00:00
Jaroslav Kysela
37e75bfa2c Sync with the driver (EFX code structure) 2004-11-13 14:37:48 +00:00
Jaroslav Kysela
2d7ca56e2a Return correct error in snd_pcm_wait() after snd_pcm_poll_descriptors() call 2004-11-12 20:27:31 +00:00
Jaroslav Kysela
4f6da0fe88 release: 1.0.7 2004-11-11 18:28:54 +00:00
Jaroslav Kysela
d02602374b Fixed cut-n-copy problem 2004-11-09 13:12:35 +00:00