Clemens Ladisch
45850439b3
Do not abort in snd_xxx_close() functions
...
Remove several memory leaks by not aborting prematurely from a
snd_xxx_close() function when some operation fails.
This can happen when a USB device was unplugged.
2006-02-27 09:54:57 +00:00
Jaroslav Kysela
59b598fac0
Fixed snd_pcm_set_params() error code
2006-02-01 06:34:43 +00:00
Jaroslav Kysela
937f396663
snd_pcm_set_params() - added workaround for vortex driver
2006-01-31 09:16:05 +00:00
Takashi Iwai
eccc92a34d
Fix infinite parse of recursive definitions
...
Fixed the infinite parse (and eventually segfault) of recursive definitions.
Also fixed the parse of a string slave PCM of direct plugins.
2006-01-30 14:41:51 +00:00
Jaroslav Kysela
23f7e58fa1
implementation of pcm simple helper function
...
- snd_pcm_recovery()
- snd_pcm_set_params()
- snd_pcm_get_params()
2006-01-06 19:59:56 +00:00
Jaroslav Kysela
bdfbbed5ca
pcm dump() routines update: use spaces to indent texts
2005-12-11 08:24:13 +00:00
Takashi Iwai
2f71b8753b
Fix type-punning
...
Fixed compile warnings on the latest gcc about type-punning.
Removed unnecessary casts.
2005-09-29 19:11:50 +00:00
Jaroslav Kysela
4284d79212
PCM add missing pcm types - DSNOOP, IEC958, IOPLUG, EXTPLUG
2005-09-21 08:23:28 +00:00
Jaroslav Kysela
e38cf30629
pcm - Add SOFTVOL pcm type
2005-09-21 08:20:18 +00:00
Takashi Iwai
4272742a2b
Fix compile warnings
...
Fix compile warnings regarding uninitialized variable.
2005-09-05 15:57:31 +00:00
Jaroslav Kysela
745062ee01
PCM API - handle EINTR from poll() in snd_pcm_wait() function
2005-08-24 14:13:47 +00:00
Takashi Iwai
ea77e08cc6
Misc fixes
...
Fixes of spots found via valgrind
- non-freed chunks after snd_config_get_ascii()
- zero-fill records (to make valgrind happy)
- compile warning fixes
2005-08-17 17:27:16 +00:00
Takashi Iwai
7a89e3bbca
Fix compile warnings with gcc-4
...
Fixed compile warnings with gcc-4 about pointer signedness.
2005-06-28 10:24:44 +00:00
Takashi Iwai
aa5a4d1f1a
Remove the check of start_threshold in sw_params
...
Removed the invalid check of start_threshold with period_size
in snd_pcm_sw_params().
2005-06-23 10:04:56 +00:00
Takashi Iwai
087184b0f9
Fix doxygen documents
...
Fix the warnings of doxygen parsing.
Add some missing documentation.
2005-05-24 14:14:28 +00:00
Takashi Iwai
dd37bb20ee
Move poll_* callbacks to fast_ops
...
Moved poll_* callbacks to fast_ops.
These callbacks may be called frequently indeed.
2005-05-23 09:03:16 +00:00
Takashi Iwai
4d7c53d280
Add snd_pcm_hw_params_get/set_export_buffer()
...
Add snd_pcm_hw_params_get/set_export_buffer() API functions.
They control to ensure the buffer export to other processes.
If this flag is set, the local buffer of a plugin is exported over IPC shm.
Otherwise the buffer can be handled only locally (no shm).
Also fixed Version file for 1.0.9.
2005-05-19 16:59:04 +00:00
Takashi Iwai
d5b9823447
Fix snd_pcm_wait() for multiple pollfd's
...
Fixed snd_pcm_wait() to handle multiple pollfd's.
2005-05-18 13:28:06 +00:00
Takashi Iwai
a6d3b9e4e0
Remove poll_ask callback
...
Removed poll_ask callbacks.
poll_ask function is merged to poll_descriptors callbacks.
2005-05-18 10:50:09 +00:00
Takashi Iwai
842b573424
Add poll_descriptors and poll_descriptors_count callbacks
...
Added poll_descriptors and poll_descriptors_count callbacks for multiple
poll_fd's.
2005-05-18 10:45:06 +00:00
Takashi Iwai
56b3974439
Show verbose errors for invalid sw_params
...
Show verbose errors (when $LIBASOUND_DEBUG is set) for some invalid sw_params.
2005-04-20 14:31:33 +00:00
Jaroslav Kysela
f65d9f3108
Added snd_pcm_hw_params_set_rate_resample function
...
- snd_pcm_hw_params_set_rate_resample()
- snd_pcm_hw_params_get_rate_resample()
2005-04-12 12:09:55 +00:00
Takashi Iwai
72ad0e9ae7
Fix more CPU hang-up bugs in dmix
...
- Fix CPU hang-up during snd_pcm_drain()
A new internal function snd_pcm_wait_nocheck() to force to call poll().
- Clean up, fix status() callback of dmix
2005-04-11 10:03:28 +00:00
Takashi Iwai
5c91ee386d
Check PCM format aliases
...
Check PCM format alias strings (e.g. "S16") as acceptable PCM formats.
2005-03-29 16:34:31 +00:00
Takashi Iwai
d8f7de1b16
Support dl-object cache
...
Added the support of dl-object caches for PCM plugins.
2005-02-14 15:09:09 +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
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
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
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
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
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
b7e8f57314
Try to fix period_time/period_size problems for direct plugin slaves
2004-10-29 10:56:13 +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
Takashi Iwai
5586e5cbb1
added a new plugin "iec958" to convert IEC958 subframes.
2004-05-04 15:13:23 +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
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
b0ad5bf718
Next documentation update for file descriptor routines
2004-04-05 17:59:34 +00:00
Jaroslav Kysela
72e2f8046e
Added 24-bit copy
2004-03-31 14:16:31 +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
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
14b37bcd85
Fixed comments for snd_pcm_avail_update/snd_pcm_delay/snd_pcm_hwsync
2004-03-12 19:07:20 +00:00
Jaroslav Kysela
1c9c7754eb
Changed specification for silence_size
2004-03-05 08:14:05 +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