aboutsummaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)Author
2020-06-03utils: check in optparse.h, a public domain header-only optparsing libEthan Sommer
https://github.com/skeeto/optparse
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>
2018-01-03Fixed potential risk of wild pointerDong Jinguang
2017-12-15Added reading from stdin.Magickal Feline
2017-11-06fixed short option in tinyplayTaylor Holberton
2017-04-13Fix to pass num_frames to pcm_writeiJaikrishna Nemallapudi
pcm_writei expects size of data in frames, whereas currently size is passed as number of bytes. So convert number of bytes to frames for argument to pcm_writei. Signed-off-by: Jaikrishna Nemallapudi <jaikrishnax.nemallapudi@intel.com> Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
2017-01-19fixed indentation on if statementTaylor Holberton
2017-01-19tinymix: fix segfaults with set commandPierre-Louis Bossart
The arguments passed after the set command are not handled properly, leading to segfaults or inability to set controls Example with control 0 which is Headset Volume on my NUC: before fix $ ./tinymix set 0 Segmentation fault $ ./tinymix set 0 10 Segmentation fault $ ./tinymix set 0 10 20 Error: 3 values given, but control only takes 2 After correction $ ./tinymix set 0 no value(s) specified $ ./tinymix set 0 10 $ ./tinymix set 0 10 10 $ ./tinymix set 0 10 10 10 Error: 3 values given, but control only takes 2 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2017-01-14linking with static libtinyalsaTaylor Holberton
2017-01-14updated read handling for pcm_readiTaylor Holberton
2017-01-10Fix the byte control set/get methodPankaj Bharadiya
The TLV byte controls expect a TLV header as well. Check for TLV access and add TLV header size before invoking mixer API. Change-Id: I12ba129e5bbc0676e80eb920e85b3683decfe0db Signed-off-by: Pawse, GuruprasadX <guruprasadx.pawse@intel.com> Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
2016-12-01Replaced old calls to pcm_read and pcm_writeTaylor Holberton
The newer pcm_readi and pcm_writei functions are now being used.
2016-12-01Added const specifier to maskTaylor Holberton
The changed was brought on by to early commits to the PCM API.
2016-11-22removed override directiveTaylor Holberton
2016-11-22using install command instead of cp and mkdirTaylor Holberton
2016-11-19make tinymix command oriented, based on amixerTaylor Holberton
2016-11-19updated man pageTaylor Holberton
2016-11-19created cmd and ctx structures for tinyplayTaylor Holberton
2016-11-07I work on platforms based on the Qualcomm SnapDragon chip. There can beBrad Walker
hundreds of paths on the audio side of this chip. There was a recent change whereby tinymix will ALWAYS prints the routes/paths for the different ports on ALSA. I consider this to be a regression. It really should only be printed if asked. In addition, I've modified tinymix to more closely conform to the following: https://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html Lastly, I removed a redundant errno.h..
2016-10-02added installation of man pagesTaylor Holberton
2016-10-02added man page for tinypcminfoTaylor Holberton
2016-10-02changed default behavior to print usage only on --helpTaylor Holberton
2016-10-02added defaults for card and deviceTaylor Holberton
2016-10-02added tinymix man pageTaylor Holberton
2016-10-02always printing control list, showing usage when argc == 1Taylor Holberton
2016-10-02added tinyplay manpageTaylor Holberton
2016-10-02fixed typoTaylor Holberton
2016-10-02added default valuesTaylor Holberton
2016-10-02changed default rate to match that of tinyplayTaylor Holberton
2016-10-02added error if -i file-type doesn't make senseTaylor Holberton
2016-10-02corrected typoTaylor Holberton
2016-10-02added tinycap man pageTaylor Holberton
2016-10-02added BINDIR and removed old build varsTaylor Holberton
2016-10-01added DESTDIR to install command and explicit build commandsTaylor Holberton
2016-10-01checking results of fread() callsTaylor Holberton
2016-10-01added VPATH and INCDIRTaylor Holberton