Commit Graph

17 Commits

Author SHA1 Message Date
Gabriel M. Beddingfield 3d62222391 Add pcm_wait() to the tinyalsa API. 2012-10-22 17:00:27 -07:00
Gabriel M. Beddingfield 2a274a18b0 pcm: Add support for S8 and S24LE formats. 2012-10-22 16:58:13 -07:00
John Grossman b6db70a160 pcm: Add PCM_NORESTART flag
Add a flag which can be passed to pcm_open (called PCM_NORESTART).
When set on a playback stream, calls to pcm_write will not
automatically attempt to restart an ALSA device in the case of an
underflow.  Instead, it will propagate the first EPIPE error up to the
application to allow it to handle the underflow situation.  Subsequent
calls to pcm_write will attempt to start the pipeline.
2012-05-04 16:33:59 -07:00
Simon Wilson b29ac1ab6b mixer: simplify string get APIs
Just like the pcm_get_error() API, simplify the mixer API
functions to return pointers to constant strings instead
of making copies of strings.
2012-03-08 10:27:40 -08:00
Mark Brown 6bbe77a79a pcm: Constify write buffers
Mark the write buffers as const - they won't be modified and this is
friendlier to applications.
2012-02-10 22:07:09 +00:00
Pierre-Louis Bossart a912d706c1 include: fix header comments and arguments
Comment on buffer size was wrong. Argument to bytes_to_frames
is bytes, not frames
2011-10-27 11:24:32 -07:00
Liam Girdwood 6be28f1b16 pcm: add mmap playback and no periodic IRQ support.
Add mmap playback and no period IRQ support to pcm core.
2011-10-13 13:46:50 -07:00
John Grossman 3bb114a645 pcm: add control for ASLA thresholds to pcm_open
Add the ability to explicitly set start, stop and silence thresholds during
tinyalsa's pcm_open.  Setting any of these values to 0 in your pcm_config
structure will cause the system to use its old defaults.
2011-07-27 14:59:56 -07:00
John Grossman ee99f213b2 include: make it easier to use this header from C++
Add a extern "C" controlled by an #ifdef __cplusplus directive so that this
header can be included from C++ code without having to explicitly control the
linkage.
2011-07-27 14:45:33 -07:00
Eric Laurent 40b018e35a pcm: add pcm_get_htimestamp() function
pcm_get_htimestamp() returns the number of available frames
in the kernel driver buffers as well as the corresponding
high resolution time stamp.
2011-07-25 10:53:36 -07:00
Simon Wilson d6458e6f62 pcm: add pcm_start/stop() functions for streams
This is essential for streams such as loopback devices that
do not transfer data.
2011-06-24 11:05:08 -07:00
Simon Wilson b9d4f6bfee Add integer range getters to mixer 2011-06-06 14:41:02 -07:00
Simon Wilson f0a20ee4cc Implement mixer setting in tinymix
- re-add function to set enum type by string
- implement setting of mixer values in tinymix
- fix bug: read current mixer values before writing
2011-06-05 21:18:52 -07:00
Simon Wilson 066c9f6753 Add enum support to mixer
- simplify interface for setting/getting enum values
- implement enum string get function
- update tinymix to deal with enums
- rename set/get_int functions because of supported types
2011-06-05 18:23:05 -07:00
Simon Wilson d2cb503009 Improve mixer support
- support get/set of multiple values
- add parameter checking to functions
- add api function to get control type
- add tinymix utility to list mixer controls
2011-06-04 00:57:17 -07:00
Simon Wilson 1bd580fcba Support multiple cards and devices 2011-06-02 15:58:41 -07:00
Simon Wilson 79d396583b Initial contribution 2011-05-25 13:45:38 -07:00