aboutsummaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)Author
2021-07-13fix remaining_data_size is 0 when not playing a wave filedvdli
2021-06-29refactoring and fix typodvdli
2021-06-29refactoring: add a wave-file parsing functiondvdli
2021-03-11add floating-point PCM supoort to tinyplaydvdli
This change also fixes overwriting the appl_ptr and avail_min when calling the pcm_state function.
2021-02-22support float config and float wave file playbackdvdli
2021-01-28Let pcm_mmap_read/write call pcm_readi/writeidvdli
The pcm_readi and pcm_writei also can deal with the mmap read/write. Also mark the pcm_mmap_read/write functions as deprecated functions and update the test case. Add mmap playback support to tinyplay
2021-01-28prepare in pcm_generic_transferdvdli
2021-01-12fix integer character ascii rangedvdli
2021-01-12remove pcm_prepare in pcm_opendvdli
For the dynamic pcm device, it is valid to specify the backend after opening it. However, it is invalid to call prepare on a dynamic pcm device without connecting any backend device. We should not do pcm_prepare in pcm_open. See also: Issue #197
2020-12-09correct index of integer string and reduce the life time of variablesdvdli
2020-12-07add usage of VALUESdvdli
2020-12-07add support setting negative values to tinymixdvdli
2020-12-07formatting and remove tinymix prefix of static functionsdvdli
2020-12-07duplicate an argv list to avoid the argv order changeddvdli
2020-12-04fix printing format and wrong control for data printingdvdli
tinymix_detail_control took controls' name as its parameter to identify which control is that we want to print data of. However, if there are some controls with same name, we will always print the data of the first one.
2020-11-02calcuate the thresholds after options parsingdvdli
The period size and count may be changed after options parsing. We need to set proper threshoulds.
2020-11-02modify the buffer size to the period size to avoid underrundvdli
2020-10-29AOSP CL "tinymix: fix setting enum str started with digits"dvdli
https://android.googlesource.com/platform/external/tinyalsa/+/f2d93a540297e75815eeb6644bf675cdae3be909 commit f2d93a540297e75815eeb6644bf675cdae3be909 author HW Lee <hwlee@google.com> tinymix: fix setting enum str started with digits For those value strings which are started with digits, they must be set as enum instead of index value. Test: with mixer control values started with digits like '48KHz' Change-Id: I1c70f5613a48d020d3248b71c1e4384f83e33d25 Signed-off-by: HW Lee <hwlee@google.com>
2020-10-29check whether the audio data are still enough to playdvdli
reference: https://android.googlesource.com/platform/external/tinyalsa/+/8b7274b2ec686c87673bf39328381acbdea1a333 commit 8b7274b2ec686c87673bf39328381acbdea1a333 author Haynes Mathew George <hgeorge@codeaurora.org> tinyplay: play PCM up to size specified in the header tinyplay plays to the end of file without checking whether playback goes beyond end of data section which its size is specified in the RIFF wave header. This could lead to playing out unwanted data which is placed at the end of file. authored-by: Patrick Lai <plai@codeaurora.org> Change-Id: I17bd3f6ebca4813f8987585472208c1f52696cae
2020-10-29AOSP CL "tinyalsa: fix typos in tinyplay and asoundlib.h"dvdli
commit f451f433520fc154de6e371747f21d2f746da83b author Glenn Kasten <gkasten@google.com> tinyalsa: fix typos in tinyplay and asoundlib.h Test: run tinyplay and look for typos in the output Change-Id: Ieedcc1b7610700aa3d5ff913d5c01105db2c1601
2020-10-28initialize silence_size to zerodvdli
2020-09-21Merge pull request #173 from rohkkumar/mixer_fixSimon Wilson
Fix mixer set/get for tlv based controls
2020-09-16Fix Makefile dependenciesGlenn Kasten
2020-09-04tinymix: Fix get/set for tlv based mixer controlsRohit kumar
TLV header is added by tinyalsa library. Remove tlv header addition from tinymix to avoid adding it twice.
2020-07-19Fix last commit.Taylor Holberton
2020-07-19Quick fix for #168Taylor Holberton
2020-06-03tinywavinfo: add wrapper for fread to check its return valueEthan Sommer
2020-06-03Simplified tinywavinfoTaylor Holberton
2020-06-03Merge pull request #161 from E5ten/optparseTaylor Holberton
Add public domain header-only option-parsing library optparse
2020-06-03tinyplay: replace manual option parsing with optparseEthan Sommer
This also removes the requirement for the file argument to come before options.
2020-06-03tinypcminfo: replace manual option parsing with optparseEthan Sommer
add equivalent longopts that are available in other commands
2020-06-03tinymix: replace getopt_long with optparseEthan Sommer
2020-06-03tinycap: replace manual option parsing with optparseEthan Sommer
2020-06-03utils: check in optparse.h, a public domain header-only optparsing libEthan Sommer
https://github.com/skeeto/optparse
2020-06-03tinywavinfo: replace obsolete memalign with posix_memalignEthan Sommer
2020-04-24Waiting for PCM to finish before exitingTaylor Holberton
2020-04-22Removed whitespaceTaylor Holberton
2020-02-27Added 'tinymix' to linker ruleTaylor Holberton
2020-02-22Fix cross-compilationBruno Morais
Cross-compilation failing due to make library resolution.
2020-02-11Merge pull request #137 from codeauroraforum/plugin-supportTaylor Holberton
Plugin support
2020-02-07tinyalsa: add support for PCM pluginsBhalchandra Gajare
Update the pcm framework to support plugins. Resolve the pcm device node to be either kernel device or virtual device and setup function pointers accordingly. Implement framework functionality for pcm_plugin.c for ease of plugin development. Plugin itself is compiled as shared object (.so) and dynamically linked from pcm_plugin.c. Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org> Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2019-09-21utils: Fix spelling in help textRicardo Biehl Pasquali
Signed-off-by: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
2019-05-23Fix typo in -D and -d options descriptionsjcromero
2019-01-15tinymix: fix use of -D with set commandAndrew Ford
Signed-off-by: Andrew Ford <aford@opensource.cirrus.com>
2018-12-15Add support for Meson as build systemTim-Philipp Müller
The Meson build system is being adopted by projects such as GNOME, PulseAudio, GStreamer, VLC, systemd, Mesa, Wayland, X.org, and many others. Having a meson build upstream in tinyalsa would allow for easy use of tinyalsa as a Meson subproject in other projects. https://mesonbuild.com
2018-11-28Fixed make build using clangTaylor Holberton
2018-10-30Added -fPIC and -pie flags to utility buildsTaylor Holberton
2018-04-11Update output format for enumerated controlsCharles Keepax
The current format of the data printed for enumeration controls is to list all the control values with no separator between them and to place a comma before the currently selected value. This format is hard to parse as a human and very difficult to parse automatically. Change this to separate individual values with a comma and mark the selected value with a right angle bracket. For example, the following output is given for the "AEC Loopback" control on one of our CODECs: HPOUT1LHPOUT1R, SPKOUTSPKDATLSPKDATR After the change this becomes: HPOUT1L, HPOUT1R, > SPKOUT, SPKDATL, SPKDATR, Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
2018-04-11Pull mixer_ctl_get_value out of loop in tinymix_print_enumCharles Keepax
It is only required to obtain the value of the control once whilst processing tinymix_print_enum. This will significantly reduce the amount of IOCTLs sent for reading an enum control. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
2018-04-11Fixup some minor code formatting issuesCharles Keepax
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>