Commit graph

322 commits

Author SHA1 Message Date
Jaroslav Kysela
ecceb914bf Added debug code 2002-09-21 19:01:24 +00:00
Jaroslav Kysela
7f3942d827 Reverted back the PCM API.
New snd_pcm_hw_params_* functions are available only explicitly when
ALSA_PCM_NEW_HW_PARAMS_API is defined.
Updated documentation and test code to new API.
2002-09-19 16:12:13 +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
Jaroslav Kysela
2db6b18b39 Fixed silence_64 and added support for 24-bit samples to area_silence 2002-07-21 08:19:40 +00:00
Jaroslav Kysela
3bcd8ebfcf Removed drain call from the snd_pcm_close() function, data are always dropped 2002-06-26 18:12:07 +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
Jaroslav Kysela
9fd32231dd Fixed memory leak introduced with new ring buffer place 2002-04-23 15:59:46 +00:00
Jaroslav Kysela
c941c548f8 Moved ring buffer pointers and added a mechanism to transfer them via shm 2002-04-23 15:51:29 +00:00
Jaroslav Kysela
e131f156b5 Added more explanation for i/o access 2002-03-27 18:39:42 +00:00
Jaroslav Kysela
853304bbf4 Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
Takashi Iwai
a5cdbcced2 fixed comment. 2002-03-11 12:53:28 +00:00
Jaroslav Kysela
58f74152f5 Accept also long description of format for snd_pcm_format_value() 2002-03-03 07:34:00 +00:00
Jaroslav Kysela
ecd21fa26c Removed old assert from read/write_areas 2002-02-22 08:20:51 +00:00
Jaroslav Kysela
e128bf856e Cleaned the mmap_commit implementations in plugins.
Added undo callbacks for snd_pcm_plugin based plugins.
  - helpers when mmap_commit proceed only a partial transfer
Fixes to avail_update implementation in pcm_hw.c.
2002-02-21 15:01:34 +00:00
Jaroslav Kysela
d91e0649c9 Changed PCM intro 2002-02-13 23:19:29 +00:00
Jaroslav Kysela
8d95af2cb2 Removed digital audio description (borrowed from OSS drivers) 2002-02-13 22:11:14 +00:00
Jaroslav Kysela
a92f910569 Changes against latest doxygen 2002-02-04 11:18:39 +00:00
Jaroslav Kysela
1743161cef Added PCM naming section 2002-01-24 13:13:22 +00:00
Takashi Iwai
e9a5843a19 removed (commented out) assert in pcm_drain for avoiding the infinte
loop when a program is aborted and drain is failed.
2002-01-11 11:12:00 +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
f64ec1b32d More verbose output on error (wrong configuration) 2001-12-29 22:29:44 +00:00
Jaroslav Kysela
cd29f8b860 changed result type from int to snd_pcm_sframes_t for snd_pcm_mmap_commit; removed snd_pcm_mmap_commit_partial 2001-12-11 15:27:26 +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
5c98225fc0 Removed snd_pcm_mmap_begin_avail and changed snd_pcm_mmap_begin behaviour back. 2001-12-10 17:16:13 +00:00
Jaroslav Kysela
bbcf77116d Added snd_pcm_mmap_commit_partial(). 2001-12-10 10:52:04 +00:00
Jaroslav Kysela
b7b11c3558 - added snd_pcm_mmap_begin_avail function; it is optimized for use after
snd_pcm_avail_update() call
- fixed broken hw_ptr management inside snd_pcm_plugin code
2001-12-09 18:41:23 +00:00
Jaroslav Kysela
b63e44aab0 Synchronized snd_pcm_write_areas and snd_pcm_read_areas with the kernel
write/read functions.
Changed snd_pcm_xfer_areas_func_t to return snd_pcm_sframes_t (pass errors).
2001-12-09 12:32:42 +00:00
Jaroslav Kysela
ddb7209e9a Added snd_*_poll_descriptors_revents functions. 2001-11-30 17:36:45 +00:00
Jaroslav Kysela
e0aaf895d8 Updated documentation for snd_pcm_mmap_commit() 2001-11-28 16:51:31 +00:00
Jaroslav Kysela
81512cb3f3 Added empty check functions for format and subformat mask 2001-11-26 15:17:01 +00:00
Jaroslav Kysela
c33c5760ab Added snd_*_open_lconf functions.
Some minor changes in config interface documentation.
2001-11-24 17:47:01 +00:00
Jaroslav Kysela
86db3b4e30 Removed asserts from *name functions 2001-11-24 11:32:10 +00:00
Jaroslav Kysela
d081437f0f Fixed the async stuff in snd_pcm_close 2001-11-20 15:21:20 +00:00
Jaroslav Kysela
d4d1405018 Fixed typos. 2001-11-19 11:06:03 +00:00
Jaroslav Kysela
c39882f602 Configuration:
- changed snd_config_get_id function to follow semantic of other get functions
  - added snd_config_test_id
  - added runtime pointer type (not persistent)
    - added snd_config_make_pointer, snd_config_set_pointer, snd_config_get_pointer
  - added type/contents checking for callback functions
    - changed 'void *private_data' to 'snd_config_t *private_data'
  - renamed card_strtype functions to card_driver
Control:
  - fixed passing parameters to snd_ctl_async
Async handlers:
  - added public snd_async_handler_get_signo function
Documentation:
  - moved all documentation to source files
2001-11-19 08:14:21 +00:00
Jaroslav Kysela
169c36213d Enhanced snd_pcm_wait 2001-11-14 08:58:25 +00:00
Jaroslav Kysela
631540f2f7 Fixed description of mmap functions 2001-11-05 13:17:08 +00:00
Jaroslav Kysela
d9dfe8f023 Added more descriptions for offset/size values for mmap access functions 2001-11-05 08:13:18 +00:00
Jaroslav Kysela
daffd8f1bf Enhanced mmap_begin and mmap_commit descriptions 2001-11-01 07:46:59 +00:00
Jaroslav Kysela
7d335794f1 Added missing DRAINING state to snd_pcm_state_name() 2001-10-25 13:51:26 +00:00
Jaroslav Kysela
27472b56a6 Changes for static build. 2001-10-24 14:14:11 +00:00
Jaroslav Kysela
14d38d4bb8 Added overrange function 2001-10-23 09:51:45 +00:00
Jaroslav Kysela
67cc9dbc75 Fixed typos and made some cleanups in the async stuff 2001-10-18 12:33:45 +00:00
Jaroslav Kysela
a1f2251056 Added SUSPENDED state 2001-10-16 09:29:01 +00:00
Jaroslav Kysela
f8c9bcd465 Added snd_pcm_hw_params_can_resume 2001-10-14 09:08:47 +00:00
Jaroslav Kysela
de0c7fd204 Changed retval for snd_pcm_resume 2001-10-04 16:59:23 +00:00
Jaroslav Kysela
4d116740ad Added more descriptions for -ESTRPIPE (stream is suspended). 2001-10-04 15:03:54 +00:00
Jaroslav Kysela
3c59c6b11d Added power management functions and defines. 2001-09-26 13:57:04 +00:00
Jaroslav Kysela
3c9d27c82d Added snd_pcm_sync_id_t 2001-09-11 08:42:15 +00:00