Commit graph

1210 commits

Author SHA1 Message Date
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
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
2d7ca56e2a Return correct error in snd_pcm_wait() after snd_pcm_poll_descriptors() call 2004-11-12 20:27:31 +00:00
Clemens Ladisch
e156d54c84 remove duplicate snd_pcm_null_fwd() function 2004-11-08 08:49:19 +00:00
Jaroslav Kysela
b7e8f57314 Try to fix period_time/period_size problems for direct plugin slaves 2004-10-29 10:56:13 +00:00
Takashi Iwai
00fba04f01 Add VIA8237 config
Added the confit file for VIA8237 or later chips.
It reroutes 5.1 output where VIA8233 doesn't need it.
2004-10-18 15:13:17 +00:00
Clemens Ladisch
593cff5bdc fix memory leak
fix memory leak if snd_user_file() fails
2004-10-05 15:33:04 +00:00
Takashi Iwai
e10aed638e Add ICH4 config file
Added ICH4 config file for the proper support of SPDIF.
2004-09-29 15:48:18 +00:00
Jaroslav Kysela
090fa69b51 Added check_std_error to avoid extra verbosity 2004-09-28 10:54:05 +00:00
Jaroslav Kysela
ae665ea8f0 Fixed typo 2004-09-28 10:45:33 +00:00
Clemens Ladisch
8c4b4ec183 fix driver aliases
fix GUS Max driver name typo;
add aliases for driver names that would make invalid file names
2004-09-22 07:12:59 +00:00
Takashi Iwai
83a533d1a7 [alsa-lib] Avoid zero division
Check the invalid parameters in snd_pcm_sw_params() beforehand to avoid
zero division.
2004-09-17 17:36:18 +00:00
Markus Grabner
3a8bfd43d7 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>
2004-09-16 10:02:12 +00:00
Takashi Iwai
8ac16f151c [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.
2004-09-15 18:45:51 +00:00
Stas Sergeev
6f515096d9 [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>
2004-09-15 18:44:24 +00:00
Jaroslav Kysela
abd7316ac8 fixed endless loop when parsing backslash inside bad configuration file 2004-09-08 16:43:17 +00:00
Takashi Iwai
14b41cf29b Addition of VIA82XX-MODEM pcm.
VIA82XX-MODEM pcm definition is added.
It's simply aliased to ICH-MODEM.
2004-09-08 15:02:05 +00:00
Jaroslav Kysela
e35885fa65 Small optimization 2004-08-27 11:14:21 +00:00
Takashi Iwai
8633d96b71 Added config files for Aureon 5.1 and 7.1, Prodigy 7.1 (aliased). 2004-08-24 16:52:01 +00:00
Clemens Ladisch
c2f0d9c535 fix wrong doc section label 2004-08-16 08:43:26 +00:00
Jaroslav Kysela
06976cbcce Fixed problem with the route plugin and ttable (an extra route plugin was
inserted accidently).
2004-08-11 15:09:05 +00:00
James Courtier-Dutton
6170a88309 Signed-off-by: James Courtier-Dutton <James@superbug.demon.co.uk>
This patch fixes a number of different bugs in pcm_rate.c.
1) Resampling now works for rate 192000 -> 8000.
2) zero samples are not accidentally inserted into the stream any more.
3) Corrects period size calculations.
4) Prevents avail_min and xfer_align being less than 1.
2004-08-09 06:31:41 +00:00
Takashi Iwai
f4da9cd569 Update by James Courtier-Dutton <James@superbug.demon.co.uk>
0.0.12
   Correct interrupt timing. interrupt at end of period,
   instead of in the middle of a playback period.
   Remove redundent "voice" handling.
0.0.13
   Single trigger call for multi channels.
0.0.14
   Set limits based on what the sound card hardware can do.
   playback periods_min=2, periods_max=8
   capture hw constraints require period_size = n * 64 bytes.
   playback hw constraints require period_size = n * 64 bytes.
2004-07-27 16:02:43 +00:00
Clemens Ladisch
45814d5ec5 fix memory leak 2004-07-20 15:36:08 +00:00
Benjamin Otte
f3fff3e0ef fix buffer overflows
Signed-off-by: Benjamin Otte <in7y118@public.uni-hamburg.de>
2004-07-20 15:33:52 +00:00
Takashi Iwai
6627bd5273 Fixed the device number of iec958 for the recent driver change. 2004-07-13 17:32:18 +00:00
Takashi Iwai
f54e32bea8 Added pcm.modem configurations. 2004-07-12 16:57:20 +00:00
Takashi Iwai
e871cdc005 Added atiixp-modem and intel8x0-modem definitions. 2004-07-12 16:22:26 +00:00
Takashi Iwai
0e8bb7bad5 Added the support of side and surround71 PCM types. 2004-07-12 16:22:00 +00:00
Takashi Iwai
2e15c60a94 Added the definition of modem PCM type 2004-07-12 16:21:29 +00:00
Takashi Iwai
98ee4d4813 Fixed iec958 capture using asym plugin. 2004-06-28 10:45:25 +00:00
Takashi Iwai
b9a25e2ac8 Peter Zubaj <pzad@pobox.sk>:
- Added surround71 and side pcm definitions.
- Added the support of side speakers on Audigy 2 ZS.
2004-06-28 10:40:24 +00:00
Takashi Iwai
43cee7b8c1 Francisco Moraes <fmoraes@nc.rr.com>:
Added emu10k1x configuration.
2004-06-28 10:28:09 +00:00
Takashi Iwai
ae80d8b647 James Courtier-Dutton <James@superbug.demon.co.uk>:
AudigyLS now supports Digital(AC3)/Analog outputs. 5.1 Surround
PLAYBACK. MIC and LINE IN CAPTURE.

The MIC and LINE IN use the AC97 chip.

The AC97 uses the PLAYBACK(Not CAPTURE) controls in alsamixer for
controlling CAPTURE. Then, instead of sending that output to the
speakers, it sends it to the Philips 1361T ADC. This results in high
quality ADC conversion.
E.g. For LINE IN capture, set LINE IN playback volume and unmute it.
Set MASTER volume.
There is a new control for "CAPTURE feedback into PLAYBACK". If one does
not want any feedback, leave it at it's minimum.

Once I have figured out all the controls in the AC97 and what they do
for the AudigyLS, I will rename them so that they make sense to the user.

Please see attached patch files against the current CVS.

Still TODO:
1) Set multiple sample rates.
2) Add a CAPUTRE source switch for switch between "MIC", "Line in",
"SPDIF in", "TAD in", "AUX in" and "What u hear". Currently, one cannot
switch to capture "SPDIF in" or "What u hear", but all the other inputs
are possible via switches in the AC97.
3) Set multiple periods per buffer.
4) MIDI in/out.
5) Cleaner module unload.
2004-06-28 10:26:45 +00:00
Takashi Iwai
ced7e5ccfc James Courtier-Dutton <James@superbug.demon.co.uk>:
Fixed SPDIF playback support with the recent change.
2004-06-23 18:09:10 +00:00
Takashi Iwai
af70572d42 Added the config file for AudigyLS driver. 2004-06-18 14:29:03 +00:00
Jaroslav Kysela
509e30494f compilation fix 2004-05-24 18:44:04 +00:00
Jaroslav Kysela
0c468bf109 Fixed wrong jump for 32-bit mixing 2004-05-24 18:40:11 +00:00
Takashi Iwai
c11a1fc9be fixed documents to process properly via doxygen. 2004-05-24 14:57:47 +00:00
Takashi Iwai
abf04e4cfd added missing VIA686A.conf 2004-05-24 14:54:54 +00:00