Commit graph

258 commits

Author SHA1 Message Date
Jaroslav Kysela
ed9961c9a2 Fixed snd_pcm_wait() function 2003-07-16 19:31:15 +00:00
Takashi Iwai
f073afbdfa - snd_pcm_wait() returns more understandable error code when an error
happens during poll().
- clean up the code along with the change above.
2003-07-16 11:37:25 +00:00
Jaroslav Kysela
b004a9d791 Added snd_pcm_munmap() call to snd_pcm_close() - free all resources 2003-06-22 09:59:03 +00:00
Jaroslav Kysela
a24442958b Use snd_pcm_hwsync() rather than snd_pcm_delay() in write_areas() 2003-05-04 20:06:30 +00:00
Jaroslav Kysela
573f85dc1d - added shm area manager code
- fixed parsing of period_size/buffer_size options for dmix, dsnoop and
  dshare plugins
2003-04-23 12:41:55 +00:00
Takashi Iwai
2978d18323 check the current pcm status in snd_pcm_read/write_areas() if
snd_pcm_wait() returns an error.  this will fix the bogus
return code of snd_pcm_readi/writei().
2003-03-27 09:10:22 +00:00
Jaroslav Kysela
bc28eccdcd Extracted common code from dmix plugin.
Initial framework for dsnoop and dshare plugins.
2003-03-18 20:37:42 +00:00
Jaroslav Kysela
fea03e9eba Fixed compilation --with-versioned=no 2003-03-11 18:51:32 +00:00
Jaroslav Kysela
157107491c Added snd_pcm_type_name()
Fixed rate conversion plugin (SIGSEGV) - rounding problem
2003-03-08 16:35:18 +00:00
Jaroslav Kysela
3cc4c86fb2 Moved pcm_jack plugin to src/pcm/ext directory (must be build manually).
The pcm open functions looks to /usr/lib/alsa-lib directory for plugins
like jack.
2003-03-05 19:56:55 +00:00
Jaroslav Kysela
1ac62945f8 Added htstamp functions 2003-02-28 20:29:23 +00:00
Jaroslav Kysela
cf9e518d51 Timestamp update (struct timeval -> struct timespec). 2003-02-28 17:23:28 +00:00
Jaroslav Kysela
7b09000813 Removed snd_pcm_hwdiff() function 2003-02-22 17:53:01 +00:00
Jaroslav Kysela
2dab1dfbc3 Removed snd_pcm_hwptr().
Added snd_pcm_hwdiff() and snd_pcm_forward().
Returned the behaviour for snd_pcm_mmap_begin().
2003-02-22 17:19:02 +00:00
Jaroslav Kysela
fbd99fdec0 Added snd_pcm_hwptr() and enhanced snd_pcm_mmap_begin() for no xrun mode. 2003-02-22 10:19:53 +00:00
Jaroslav Kysela
b5316c86cc Fixed compilation problem for dmix (donot_close) 2003-02-12 11:49:47 +00:00
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
06cccc6a78 Fixed description of test hw_params functions 2003-02-11 09:34:09 +00:00
Jaroslav Kysela
7c5e5f5728 Added snd_pcm_sw_params_get_boundary() function.
Implemented refine function in dmix.
2003-02-05 21:26:14 +00:00
Jaroslav Kysela
073dff1ba1 Commented out FD_CLOEXEC fcntl() calls 2003-02-05 11:00:16 +00:00
Jaroslav Kysela
8720faaccb Cleanups in IPC stuff.
Cleanups in snd_pcm_close().
Added initial code for dmix plugin:
  - only skeleton, but all major problems should be solved
2003-02-04 14:48:51 +00:00
Takashi Iwai
0c156a3c89 - fixed the unlink_{hw,app}_ptr of slaves.
- removed the invalid unlink_ptr assersion.
2003-01-27 11:19:04 +00:00
Jaroslav Kysela
8750215edb Added missing break for 24bit formats (silence) 2002-12-18 12:03:28 +00:00
Jaroslav Kysela
7fe18c9561 Added more comments by Robert Spier (robrt@users.sourceforge.net) 2002-12-04 15:34:04 +00:00
Jaroslav Kysela
098932ce57 Added POLLNVAL to poll->events 2002-11-30 09:47:20 +00:00
Jaroslav Kysela
0d7d11889d Added missing snd_dlclose() calls 2002-11-07 15:18:45 +00:00
Jaroslav Kysela
3bccde0087 Removed clear() functions 2002-10-23 17:49:34 +00:00
Jaroslav Kysela
6979732fa5 Changed sw_params to follow hw_params (unify functions) 2002-10-19 19:09:46 +00:00
Jaroslav Kysela
cebc5c9bef Updated hw_params_(can|is)_* functions 2002-10-12 14:32:59 +00:00
Jaroslav Kysela
0d699d7e19 Improved documentation for hw_params_(can|is)_* functions 2002-10-12 13:37:42 +00:00
Jaroslav Kysela
170a5d0d7b Added ommited clear() functions 2002-10-12 12:04:08 +00:00
Jaroslav Kysela
8205a95376 Replaced snd_pcm_avail() with snd_pcm_hwsync() 2002-10-12 11:49:53 +00:00
Jaroslav Kysela
dac0626b9f Added snd_pcm_hw_params_current() function and clear() functions for structures 2002-10-12 10:38:43 +00:00
Jaroslav Kysela
e859cf2644 Implemented snd_pcm_avail() function.
More documentation updates for snd_pcm_avail_update() and snd_pcm_delay().
Updated behaviour of read/write functions (wait when buffer is full) to
follow kernel.
2002-10-11 18:39:24 +00:00
Takashi Iwai
25e41cf1e8 fixed the build without versioned symbols.
the rc4 symbols are defined as __ prefix, which are aliased in
pcm.h as well as the versioned symbol binary.
2002-10-10 11:01:18 +00:00
Jaroslav Kysela
3560bb1481 Fixes in documentation for fast status 2002-10-09 06:13:57 +00:00
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