Commit graph

1046 commits

Author SHA1 Message Date
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
Jaroslav Kysela
090fa69b51 Added check_std_error to avoid extra verbosity 2004-09-28 10:54:05 +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
e35885fa65 Small optimization 2004-08-27 11:14:21 +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
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
Jaroslav Kysela
eafb492512 - added SYNC_PTR ioctl support for pcm_hw plugin 2004-05-22 10:14:32 +00:00
Takashi Iwai
5a2c2e0295 fixed unneeded cast. 2004-05-21 15:10:58 +00:00
Takashi Iwai
01f217d581 fixed debug messages by Erik Inge Bolso. 2004-05-04 15:54:01 +00:00
Takashi Iwai
5586e5cbb1 added a new plugin "iec958" to convert IEC958 subframes. 2004-05-04 15:13:23 +00:00
Takashi Iwai
4032563aad fixed the bit width of IEC958_SUBFRAME_* formats from 24 to 32. 2004-05-04 15:10:38 +00:00
Clemens Ladisch
fe1618627f initialize hw_params->info 2004-05-03 14:38:46 +00:00
Clemens Ladisch
4861d237e6 define SND_PCM_INFO_RESUME 2004-05-03 14:37:53 +00:00
Clemens Ladisch
ef11ba77ed document all PCM plugin parameters 2004-04-26 07:40:12 +00:00
Jaroslav Kysela
2cb16f857d Prefer SND_ macros over SNDRV_ ones 2004-04-20 13:52:32 +00:00
Jaroslav Kysela
2bad31bbf4 Fixed bugs detected by Intel compiler 2004-04-20 13:42:48 +00:00
Jaroslav Kysela
ba4ddd169f assert -> return error code in hw_params 2004-04-19 13:24:19 +00:00
Takashi Iwai
965222c3d9 fixed compile warnings. 2004-04-15 12:52:49 +00:00
Takashi Iwai
494f3e66e4 fixed the handling of EINTR in read/write.
EINTR can be returned during ACPI suspend/resume.
2004-04-15 12:22:26 +00:00
Jaroslav Kysela
64a39728a2 Added early event extension to the timer API - and a fix for the direct plugins 2004-04-06 17:29:25 +00:00
Jaroslav Kysela
b0ad5bf718 Next documentation update for file descriptor routines 2004-04-05 17:59:34 +00:00
Jaroslav Kysela
033fb96b00 - fixed problem with start_threshold
- fixed rounding problem for period_size (mmap_commit assert invoked)
2004-04-03 08:27:58 +00:00
Jaroslav Kysela
72e2f8046e Added 24-bit copy 2004-03-31 14:16:31 +00:00
Jaroslav Kysela
a190b87d94 Initial implementation of PCM simple API extension. 2004-03-26 16:08:01 +00:00
Jaroslav Kysela
f5a5284c6d A next try to fix the snd_pcm_wait() behaviour with direct plugins 2004-03-24 08:50:01 +00:00
Jaroslav Kysela
569130159d Fixed wrong copy problem in capture 2004-03-23 14:37:34 +00:00
Jaroslav Kysela
f70e0fd468 Added mmap_avail() check to snd_pcm_wait() function 2004-03-23 13:29:52 +00:00
Jaroslav Kysela
7c201b510a - added poll_ask callback to mangle avail_min (rate_plugin as example)
- added mangling of avail_min to rate_plugin
- added poll_fd_count variable
- FIXME: move poll_revents callback to fast_ops
2004-03-17 11:48:14 +00:00
Jaroslav Kysela
7e07719af6 Don't use stack to save rbx register 2004-03-13 14:24:07 +00:00
Jaroslav Kysela
be1c1d0a96 A new try to fix the SIGSEGV 2004-03-12 19:08:27 +00:00
Jaroslav Kysela
14b37bcd85 Fixed comments for snd_pcm_avail_update/snd_pcm_delay/snd_pcm_hwsync 2004-03-12 19:07:20 +00:00
Jaroslav Kysela
795a7f9f0b Cleanups, returned zero size checking 2004-03-12 12:41:06 +00:00
Jaroslav Kysela
84c40f4970 Michel Dänzer <michel@daenzer.net>
Apparently these changes from pcm_direct.c revisions 1.12 and 1.14 were
accidentally reverted in revision 1.15. Please reapply.
2004-03-05 18:36:19 +00:00
Jaroslav Kysela
1c9c7754eb Changed specification for silence_size 2004-03-05 08:14:05 +00:00
Jaroslav Kysela
0acc42d0d7 VERSION_MAX == 2.0.5 2004-03-05 08:05:21 +00:00
Jaroslav Kysela
0ecc03111d Improved comments for poll_descriptors 2004-03-03 12:54:01 +00:00
Clemens Ladisch
16a15f56c4 fix doxygen errors (syntax errors and wrong references) 2004-03-02 17:13:49 +00:00
Jaroslav Kysela
59b6cbec84 Correction for explanation of near functions 2004-03-02 07:51:50 +00:00
Jaroslav Kysela
9747c69809 Fixed return comment for *near() functions 2004-03-01 08:53:50 +00:00
Takashi Iwai
ebf1e77bb2 use AM_CFLAGS and AM_LDFLAGS for the recent automake. 2004-02-25 14:32:32 +00:00
Takashi Iwai
d91948db49 - check the return value of malloc & co. 2004-02-25 11:24:29 +00:00