aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-01updated library source pathsTaylor Holberton
2016-10-01put source files into src dirTaylor Holberton
2016-10-01cleaned up makefileTaylor Holberton
2016-10-01added VPATH and INCDIRTaylor Holberton
2016-10-01voided unused parameterTaylor Holberton
2016-10-01seperated pcm and mixer APIsTaylor Holberton
2016-10-01updated program pathsTaylor Holberton
2016-10-01put programs into utils dirTaylor Holberton
2016-10-01added support for more signed typesTaylor Holberton
2016-09-16fixed bracket placementTaylor Holberton
2016-09-16Merge branch 'dawagner-address-duplicate-control-names'Taylor Holberton
2016-09-16Merge branch 'address-duplicate-control-names' of ↵Taylor Holberton
https://github.com/dawagner/tinyalsa into dawagner-address-duplicate-control-names
2016-09-16Merge pull request #74 from dimkr/masterTaylor Holberton
include time.h, to prevent use of struct timespec before definition
2016-08-03Added get_file_descriptor()Taylor Holberton
2016-08-03Added default prefix variableTaylor Holberton
2016-08-03added install commandTaylor Holberton
2016-06-26Merge pull request #77 from bzhg/masterTaylor Holberton
mixer: check for overflow and NULL return
2016-04-22mixer: check for overflow and NULL returnBen Zhang
Signed-off-by: Ben Zhang <benzh@google.com>
2016-03-05include time.h, to prevent use of struct timespec before definitionDima Krasner
In some old (2.6.32.x) kernel headers, asound.h does not include linux time.h when __KERNEL__ is undefined, which may break userspace. The build failures caused by this are similar to those fixed by c8333f8c. Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2016-02-14Merge pull request #70 from virajkarandikar/masterSimon Wilson
tinycap: add capture time parameter
2016-02-14Merge pull request #73 from ford-prefect/masterSimon Wilson
build: Redo Makefile a bit
2016-02-14Merge pull request #72 from frgm/cppcheckSimon Wilson
fix some cppcheck warnings
2016-01-28build: Redo Makefile a bitArun Raghavan
A few changes: * Don't hardcode 'gcc' and use $(CC) instead * Split off CFLAGS/LDFLAGS so we can pick them up from the environment * Add a static library build
2016-01-24fix format specifier for unsigned intSvyatoslav Mishyn
2016-01-24mixer: fix possible null pointer dereferenceSvyatoslav Mishyn
2016-01-22tinycap: add capture time parameterViraj Karandikar
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
2016-01-09Merge pull request #69 from JaydeepDhole/masterSimon Wilson
Added raw file support in tinyplay
2016-01-09tinymix: don't get byte array if size is zeroSimon Wilson
Fixes an error if the number of bytes available is zero. Also remove unused len variable.
2015-12-18Added raw file support in tinyplayJaydeep Dhole
-Added raw file support in tinyplay to play PCM raw files Signed-off-by: Jaydeep Dhole <jaydeepdhole@gmail.com>
2015-10-20Merge pull request #64 from rofl0r/timespec_fixSimon Wilson
asound.h: include <time.h> to get struct timespec prototype
2015-10-20Merge pull request #53 from rfvirgil/remove_info_listSimon Wilson
mixer: remove separate info list
2015-10-20mixer: remove separate info listRichard Fitzgerald
Each mixer_ctl has an associated snd_ctl_elem_info, which was kept in a separate array with pointers from the mixer_ctl to its corresponding snd_ctl_elem_info. This means double pointer dereferences when looking up the info. It also means extra work to add support for extending the arrays to include dynamically added controls because the pointers from the ctl array to the info array would have to be updated. This patch removes the info list and gives each mixer_ctl struct its own local snd_ctl_elem_info, removing the additional pointer dereferencing. Change-Id: I03f7d411afd9e37f58b984584712fee64d85ef4e Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
2015-10-12asound.h: include <time.h> to get struct timespec prototyperofl0r
without including it, we get In file included from mixer.c:44:0: include/sound/asound.h:337:18: error: field 'trigger_tstamp' has incomplete type include/sound/asound.h:338:18: error: field 'tstamp' has incomplete type etc.
2015-09-15Merge pull request #48 from vinodkoul/wait_delaySimon Wilson
Wait delay
2015-09-15Merge pull request #60 from JaydeepDhole/Added_tinywavinfo_utilitySimon Wilson
Added tinywavinfo utility
2015-09-15Merge pull request #52 from rfvirgil/get_idSimon Wilson
mixer: Add mixer_ctl_get_id
2015-09-15Merge pull request #37 from StevenNAN/patch-1Simon Wilson
avail issue
2015-09-15Merge pull request #62 from gkasten/pcm_config_zeroSimon Wilson
initialize pcm_config to zero
2015-09-02initialize pcm_config to zeroHaynes Mathew George
sw_params ioctl() is failing with 'invalid parameter' error since pointer to pcm_config passed from tinyplay is not zero initialized, hence invalid values are passed for some parameters. authored-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org> Bug: 23525433 Change-Id: I841f29c82ec3fb7646ad8c47fca25963b5f77945
2015-08-30Merge pull request #61 from tpetazzoni/gcc5-fixSimon Wilson
tinypcminfo: make function pcm_get_format_name() static
2015-08-26tinypcminfo: make function pcm_get_format_name() staticThomas Petazzoni
When building tinyalsa with gcc 5.x, the following warnings appear: tinypcminfo.c:97:52: warning: 'format_lookup' is static but used in inline function 'pcm_get_format_name' which is not static return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL; ^ tinypcminfo.c:97:35: warning: 'format_lookup' is static but used in inline function 'pcm_get_format_name' which is not static return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL; And the build fails with: tinypcminfo.o: In function `main': tinypcminfo.c:(.text+0x2f0): undefined reference to `pcm_get_format_name' collect2: error: ld returned 1 exit status To fix this, this patch marks the pcm_get_format_name() as static, since it's anyway only used in tinypcminfo.c. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-07Added tinywavinfo utilityJaydeep Dhole
-This utility displays average power of each channel in the wave file. -This utility quickly checks the audio input path is up or not by analysing wav file captured by tinycap Signed-off-by: Jaydeep Dhole <jaydeepdhole@gmail.com>
2015-05-21Merge pull request #58 from vinodkoul/tlv_support2Simon Wilson
Tlv support2
2015-05-04tinymix: Remove the unused parameter from tinymix_set_byte_ctl()Samreen Nilofer
The control pointer is not used in the tinymix_set_byte_ctl(), hence removing it. Signed-off-by: Samreen Nilofer <samreen.nilofer@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2015-05-04tinymix: Support more that 512 bytes in byte controlSamreen Nilofer
The set/get byte control support more than 512 bytes. This is utilized by tlv type controls. Signed-off-by: Samreen Nilofer <samreen.nilofer@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2015-05-04mixer: add support for TLV based byte controlsMythri P K
Add tinyasla support for bytes controls with TLV type Signed-off-by: Mythri P K <mythri.p.k@intel.com> Signed-off-by: Samreen Nilofer <samreen.nilofer@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2014-09-24Defer filling enum-type mixers informationDavid.Coutherut
Currently, all information about all mixers are fetched during mixer_open(). For enum mixers, an additional step gets the string for each enumerated value - this can lead to a lot of ioctls and take time even when these mixers aren't used afterward. Defer fetching integer/string mapping values when needed (when getting/setting a enum mixer). Change-Id: I3681699eb55631a2bc7a1e66bf08aff3a845534f Signed-off-by: David Coutherut <davidx.coutherut@intel.com> Signed-off-by: David Wagner <david.wagner@intel.com> Author-Tracking-BZ: 113043
2014-09-09mixer: Add mixer_ctl_get_idRichard Fitzgerald
Add a function to get an id of a control that can be passed to mixer_get_ctl(). This can be used to lookup a control by name and store its id for later use rather than have the overhead of name lookup each time it is used. Lookup by id is quick and avoids the disadvantage that storing a pointer to the mixer_ctl object creates a client with a dependency on the address of the internal control array. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
2014-09-04Merge pull request #50 from charleskeepax/masterSimon Wilson
Revert "mixer: Control input value in mixer_ctl_set_value"
2014-09-04Merge pull request #49 from vinodkoul/fixesSimon Wilson
Allow setting of single byte control and make error from percent_to_int more consistent.