aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-23Debian debug packagexpahos
2017-04-13Merge pull request #96 from subhransu-intel/masterTaylor Holberton
Fix to pass num_frames to pcm_writei
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-04-10adding bounds check only when neededTaylor Holberton
2017-04-10corrected set_config functionTaylor Holberton
2017-04-10moved code in pcm_open() to pcm_set_config()Taylor Holberton
2017-04-10added prototypes for _get_config() and _set_config()Taylor Holberton
2017-04-10removed tab charactersTaylor Holberton
2017-04-10added pcm_get_config()Taylor Holberton
2017-04-06simplified pcm_read() and pcm_write()Taylor Holberton
2017-04-06checking limits of frame countsTaylor Holberton
2017-04-06removed debug statementTaylor Holberton
2017-04-06added limits for frames and channelsTaylor Holberton
2017-04-06added interval structuresTaylor Holberton
2017-04-06removed stray tabTaylor Holberton
2017-01-19fixed indentation on if statementTaylor Holberton
2017-01-19Merge pull request #95 from plbossart/masterTaylor Holberton
tinymix: fix segfaults with set command
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-14added clean targetTaylor Holberton
2017-01-14added ndk-build directoriesTaylor Holberton
2017-01-14added jni/Android.mk for Android NDKTaylor Holberton
2017-01-14added cross compile var to examplesTaylor Holberton
2017-01-13added doc on pcm_open and null checking pcm_is_readyTaylor Holberton
2017-01-11Merge pull request #94 from bpankajl/mixer_wait_eventTaylor Holberton
Fix mixer_wait_event function comments
2017-01-11Fix mixer_wait_event function commentsPankaj Bharadiya
The @return comment description incorrect. Fix it. Change-Id: I148a5ebf3e05eb4824beb4c8fa1032a38272d86d Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
2017-01-11Merge pull request #93 from bpankajl/mixer_wait_eventTaylor Holberton
Tinyalsa: Add support to poll on alsa control
2017-01-11Tinyalsa: Add support to poll on alsa controlPankaj Bharadiya
ALSA controls support polling on the kcontrols, this is used in HD-A for jack notifcation. In tinyalsa we can use this for notfication from sound card for any events detected by DSP Change-Id: I4193809bfcdb60f4dc11e1c2ad6a07b29cfa80e9 Signed-off-by: Hardik T Shah <hardik.t.shah@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
2017-01-10Merge pull request #92 from bpankajl/tvl_fixTaylor Holberton
Tvl fix
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>
2017-01-10mixer: Add support for TLV RW access check apiPankaj Bharadiya
Tinyalsa doesn't expose an api to check TLV RW access Add mixer_ctl_is_access_tlv_rw(). This api will get used by tinymix and audio HALs for checking TLV RW access before managing the byte related mixer controls. Change-Id: Ib5707fabf479de638e1c7abd4cd149e7637ff9c2 Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
2016-12-28Merge pull request #91 from ricardobiehl/masterTaylor Holberton
pcm.h -- (over/under)run definition
2016-12-28corrected (over/under)run definition in pcm.hRicardo Biehl Pasquali
overrun is in capture and underrun is in playback. Look: '+' has data / '-' hasn't data overrun (capture): You should have read until here v |+++++++|++ <- buffer over(run/flow) underrun (playback): You should have written until here v |+++++++|-- <- buffer under(run/flow)
2016-12-24Added pcm_open_by_name()Taylor Holberton
This function parses a PCM name similar to the ALSA library. This is done so that the differences between alsa-lib and tinyalsa are a little more transparent to the user.
2016-12-04Added include directory in CFLAGS variableTaylor Holberton
2016-12-04Added pcm_link and pcm_unlink functionsTaylor Holberton
The link function is necessary for time sychronization between multiple PCMs.
2016-12-04added ../examples to example pathTaylor Holberton
2016-12-04Added examples subdir to 'all' and 'clean' targetsTaylor Holberton
2016-12-04Added examples for basic IOTaylor Holberton
Added an example of pcm_writei usage and an example of pcm_readi usage. Both examples use a common file called 'audio.raw'.
2016-12-04Added new ignore patternsTaylor Holberton
Added ignore patterns for files in the new 'examples' directory. The file 'audio.raw' is generated by running pcm-writei.
2016-12-02Removed asound.hTaylor Holberton
It was added because bionic didn't have a copy of the file in 2011. But, it was finally added in 2013 and update since. There is no longer a need for this file.
2016-12-02Merge pull request #90 from rfvirgil/control-updateTaylor Holberton
mixer: add ability to update control list with new controls
2016-12-02mixer: add ability to update control list with new controlsRichard Fitzgerald
New controls could appear during runtime, for example if a new firmware is downloaded to a DSP. Since ALSA drivers are not supposed to delete or renumber existing controls we can assume that any new controls will be after any controls we already know about. We can use this to enable extending our current list of controls, which is more efficient than closing the mixer session and recreating it. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
2016-12-01Merge branch 'master' of https://github.com/tinyalsa/tinyalsaTaylor Holberton
2016-12-01Merge branch 'develop'Taylor Holberton
This merges all the changes for the 1.1.0 release to the master branch.
2016-12-01added changelog for version 1.1.0Taylor Holberton
2016-12-01added soversion with minor and patch numberTaylor Holberton
2016-12-01bumped versionTaylor Holberton
2016-12-01renamed parameter in docTaylor Holberton