Commit graph

50 commits

Author SHA1 Message Date
Jaroslav Kysela
af89cefd99 More changes for dmix plugin:
- added poll_events to main pcm structure
  - added poll_revents callback to pcm->ops structure
  - fixed snd_pcm_wait() - call revents function and enhanced
    error code reporting
DMIX plugin:
  - more complete code (works at least for one instance)
  - still no "mix" code (it's silent)
2003-02-11 18:14:43 +00:00
Jaroslav Kysela
3b6638e8ce More pcm params functions returns an error rather than do assert().
Some cleanups in refine.
Added more debug code to refine.
Improved dmix refine method.
2003-02-08 16:35:24 +00:00
Takashi Iwai
1b41de0653 - fixed the rate selection in the plug layer:
the multiples of the given rate is chosen if available.
  the nearest rate is selected as usual if not available.
2003-01-27 11:34:50 +00:00
Jaroslav Kysela
b9343e0834 - unified snd_pcm_hw_params_* functions
- added backward compatibility for older non-compatible functions
- added --with-compat-rc3 to configure script to build library
  backwards compatible with 0.9.0rc3
- added symbol versioning like libc.so.6
  - ALSA_0.9      - alsa base
  - ALSA_0.9.0rc4 - first set of new functions (snd_pcm_hw_params_*)
2002-09-17 12:33:05 +00:00
Jaroslav Kysela
677b0f60d6 Added snd_pcm_hw_params_get_min_align; changed get_format, get_subformat and get_access function to return not mixed error and return value 2002-09-09 19:47:50 +00:00
Takashi Iwai
b4b00dd7cf removed invalid assert().
there are reserved fields for the extended masks which are not used,
and this caused wrong assert()...
2002-08-27 16:30:03 +00:00
Jaroslav Kysela
16b3bf447c Enhanced bitmasks in PCM - added support for more formats by Takashi and me 2002-06-26 02:04:11 +00:00
Takashi Iwai
ab705b6142 added missing checks of return values. 2002-04-30 12:39:32 +00:00
Jaroslav Kysela
853304bbf4 Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
Jaroslav Kysela
3e3df2d32b Updated GNU GPL license (address).
Changed GNU LGPL licence from 2.0 to 2.1.
2001-12-30 09:22:54 +00:00
Jaroslav Kysela
48ae96f50c Added error passing to some refining functions to disable abort when
no configuration can be found.
2001-12-11 15:10:27 +00:00
Jaroslav Kysela
9d34cf954a Disabled debug define 2001-12-08 21:19:15 +00:00
Jaroslav Kysela
0917ba63b0 Changed result of mmap_commit callback
(follows description of snd_pcm_mmap_commit function).
2001-12-08 21:02:20 +00:00
Jaroslav Kysela
095cbbb467 Finished lfloat plugin.
Added code to plug plugin to handle linear float / integer conversions.
2001-11-27 14:24:44 +00:00
Jaroslav Kysela
8a55234812 More verbose debug for refine 2001-11-23 11:48:40 +00:00
Jaroslav Kysela
eb391e81f0 Added REFINE_DEBUG 2001-11-19 15:52:45 +00:00
Jaroslav Kysela
c20c954f3d Added documentation for instrument and midi event functions.
Removed snd_enum_() macros.
Documentation changes in asoundlib.h.
2001-07-11 14:09:01 +00:00
Abramo Bagnara
7f651b3071 Added hooked PCM type (one sample hook implementation will follow). Some cleaning. 2001-06-04 18:04:18 +00:00
Abramo Bagnara
301a62f90a Improved automatic start/stop 2001-04-19 21:18:23 +00:00
Abramo Bagnara
5b50ec848a Lot of cleanings with the help of gcc3 2001-03-29 17:50:28 +00:00
Abramo Bagnara
7893ea238d Added mode argument to open functions where it was missing. First part of CTL documentation 2001-03-26 12:45:48 +00:00
Abramo Bagnara
ddc9a186cf Completed PCM documentation 2001-03-24 16:14:44 +00:00
Abramo Bagnara
445e2b0c07 First part of PCM documentation 2001-03-23 11:05:41 +00:00
Abramo Bagnara
bbaeb29a74 Renamed ERR to SNDERR. Added s16 pseudo meter scope. Fixed plug hw_refine/params 2001-03-04 20:39:02 +00:00
Abramo Bagnara
d8f5d4a4d2 Added ptrs to status struct (to have atomic now ptr). Changed boundary choice to a more useful one (related to pcm_meter) 2001-02-20 12:57:51 +00:00
Abramo Bagnara
a2d3434961 Completed mixer API. Improved iterators. Renamed control values struct. Rewritten simple elements implementation 2001-02-11 15:45:35 +00:00
Abramo Bagnara
8f0cb26fdf Control API encapsulation. Better names for kernel API. Simpler PCM hw_params API. Added missing const. 2001-02-06 23:48:10 +00:00
Abramo Bagnara
a83b209df2 Fixed repeated prepare call 2001-02-05 09:35:17 +00:00
Abramo Bagnara
a7561a9c7e Corrected and completed encapsulation for PCM and rawmidi. Remove SND_PCM_HW_PARAM_* and use functions. Separated rawmidi info between streams 2001-02-04 17:03:17 +00:00
Abramo Bagnara
544718f10d Fixed C++ casting problems. free functions returns void 2001-02-02 08:49:47 +00:00
Abramo Bagnara
de19407578 Removed card type from devices info. Added card number to devices info. Completed encapsulation of PCM API. Removed snd_pcm_card(). All copy functions now have the form copy(dst, src). 2001-01-31 17:26:56 +00:00
Abramo Bagnara
8712ffc6a5 Added snd_ prefix to mask and interval. Divided header.h wrappers 2001-01-30 16:51:26 +00:00
Abramo Bagnara
c6f6c231c0 Fixed pcm_plug race condition 2001-01-22 16:07:11 +00:00
Abramo Bagnara
20b70b6d19 Fixed refinement 2001-01-21 17:03:53 +00:00
Abramo Bagnara
736a9dd719 Fixed rules. Fixed snd_pcm_hw_param_near 2001-01-21 12:55:09 +00:00
Abramo Bagnara
d41c210493 Added _snd_pcm_hw_param_setempty 2001-01-19 16:19:29 +00:00
Abramo Bagnara
f12a252f20 Added support for hw_free in alsa-lib 2001-01-19 13:10:50 +00:00
Abramo Bagnara
3126678e72 Major cleaning to hw_params mechanism for plugins 2001-01-18 18:20:31 +00:00
Abramo Bagnara
e283a3f642 Added I/O classes 2001-01-17 11:00:32 +00:00
Abramo Bagnara
da4d6f5ee8 Synced OSS emulation code with alsa-lib code and fixed it 2001-01-15 18:52:13 +00:00
Abramo Bagnara
aa813e1f39 Uniformed some internal names. Bug fixes 2001-01-15 15:15:24 +00:00
Abramo Bagnara
fa6f875f57 Fixed right access use for pcm_plug 2001-01-15 13:36:14 +00:00
Abramo Bagnara
cc90e32557 New PCM model with fragment concept removal and two interrupt sources
Renamed size_t/ssize_t to snd_pcm_sframes_t/snd_pcm_uframes_t
2001-01-15 11:06:53 +00:00
Abramo Bagnara
4a5a3c2a63 Moved asserts to right place 2000-12-30 23:53:34 +00:00
Abramo Bagnara
e618ef6f00 Fixed a bug in interval printing. Added missing mmap functions. Added _try hw_params variant. 2000-12-30 17:20:23 +00:00
Abramo Bagnara
6171d0fc20 Fixed hw_params dump and a typo 2000-12-29 22:10:02 +00:00
Abramo Bagnara
8f1b27dfb8 PCM API cleaning. silencing implementation. xfer_min removal 2000-12-29 15:00:53 +00:00
Abramo Bagnara
083e9a2b09 Fixed hw_params cmasks 2000-12-26 17:50:05 +00:00
Jaroslav Kysela
c268a4bf56 Removed dig_info & dig_params.. 2000-12-21 21:52:40 +00:00
Abramo Bagnara
8dd927e97f New hw_params implementation 2000-12-21 20:44:10 +00:00