aboutsummaryrefslogtreecommitdiff
path: root/utils/tinymix.c
AgeCommit message (Collapse)Author
2018-04-11Fixup some minor code formatting issuesCharles Keepax
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.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-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-11-19make tinymix command oriented, based on amixerTaylor 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-02always printing control list, showing usage when argc == 1Taylor Holberton
2016-10-01put programs into utils dirTaylor Holberton