Age | Commit message (Collapse) | Author |
|
Current return value of pcm_write()/pcm_read()
comes from pcm_writei()/pcm_readi() which is the
actual frames written/read. But the old pcm_write()
/pcm_read() just returns 0 on success and a nagative
value on error.
This change will keep the pcm_write()/pcm_read() as
the old behavior which has been already used by
many applications, and is also matching the comment
above each function.
Signed-off-by: Kui Wang <wangkuisuper@hotmail.com>
|
|
Fix pcm-write example
|
|
Add and update files from Android downstream branch to more closely m…
|
|
Change-Id: If0ebdf44667202eaf73ec41f583092bf61e88b63
|
|
Add changelog for tinyalsa 2.0.0
|
|
This should also fix the version check in scripts/travis-build.sh
|
|
Fix error when building with -DTINYALSA_BUILD_UTILS=OFF
|
|
Fix mixer set/get for tlv based controls
|
|
|
|
Fix Makefile dependencies
|
|
Update Doxyfile from version 1.8.11 to 1.8.17
|
|
Update README.md for build systems and Debian
|
|
|
|
|
|
|
|
Minor TLV Fixes
|
|
frames written; otherwise, a negative number.'
|
|
TLV header is added by tinyalsa library. Remove tlv
header addition from tinymix to avoid adding it twice.
|
|
For TLV based mixer controls, mixer_ctl_set/get_array
adds TLV headers in the API itself. Size check for count
need not include tlv header size addition. Remove it to
fix size check.
|
|
|
|
Mmap plugin support
|
|
TTstamp ops is called from pcm_open. Update state check
to avoid failure.
|
|
|
|
PCM state is currently not updated in plugin.
Add support to update the state variable.
|
|
Add PCM_STATE_OPEN and PCM_STATE_SETUP macros so that
it can be utilized by plugin to update sync_ptr state.
|
|
|
|
|
|
|
|
|
|
|
|
cmake: specify c99
|
|
cmake: fix header install location
|
|
|
|
Set standard to c99, require it, disable language extensions.
Define _POSIX_C_SOURCE to 200809L so time.h declares struct timespec.
Add -Wpedantic to find use of language extensions.
snd_card_plugin.c: remove one unnecessary ';' to make -Wpedantic work
|
|
Older versions of linux's API header sound/asound.h accidentally rely on
indirect declaration of struct timespec, which isn't reliable, so
include time.h before it to support older versions of sound/asound.h
properly
|
|
Various cmake improvements
|
|
Use scripts/version.sh, and set version in project() using its output.
Instead of using a variable to store the definition of
TINYALSA_USES_PLUGINS, and adding it as a compile option, use a
generator expression to define it in target_compile_definitions when the
option is enabled.
Set BUILD_SHARED_LIBS to on by default.
Add options to disable examples and utils.
Instead of using SRCS and HDRS variables, set PUBLIC_HEADER property on
tinyalsa to install the headers along with the target.
Set library version, so the shared library will have version suffixes.
Check that C warning flags are supported instead of adding them
unconditionally.
Use ${CMAKE_DL_LIBS} instead of hardcoding "dl", and add it to
tinyalsa's link interface and link depends, instead of linking it in the
examples and utils.
Add the "include" directory as a PUBLIC include directory to tinyalsa,
instead of making it PRIVATE and adding it to examples and utils as
well, because anything linking the tinyalsa target will need to include
"include".
Instead of using macros for building examples and utils, use a for loop.
Include cmake's GNUInstallDirs to automatically correctly populate
installation dir variables, instead of doing it manually.
|
|
tinywavinfo: add wrapper for fread to check its return value
|
|
|
|
|
|
|
|
Add public domain header-only option-parsing library optparse
|
|
tinywavinfo: replace obsolete memalign with posix_memalign
|
|
This also removes the requirement for the file argument to come before
options.
|
|
add equivalent longopts that are available in other commands
|
|
|
|
|
|
https://github.com/skeeto/optparse
|
|
|
|
|