aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-07-17Corrected pcm_sync_ptr() on dma mmap coherent architectureMiguel Gaio
It is valid to get null sync_ptr on dma mmap coherent architecture. In this case pcm_sync_ptr() is a nop. Signed-off-by: Miguel Gaio <mgaio35@gmail.com>
2018-05-08Merge pull request #112 from charleskeepax/masterTaylor Holberton
Minor tweaks to enum controls
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-04-10Merge pull request #111 from mgaio/topic/fix-pcm_readiTaylor Holberton
Fix pcm_writei return value if pcm is in not running state.
2018-04-10Fix pcm_writei return value if pcm is in not running state.Miguel GAIO
As per comment, on success, pcm_writei returns the number of frames written. Fix the case of pcm not running. Signed-off-by: Miguel GAIO <mgaio35@gmail.com>
2018-01-03Merge pull request #108 from dongjinguang-china/masterTaylor Holberton
Fixed potential risk of wild pointer
2018-01-03Fixed potential risk of wild pointerDong Jinguang
2017-12-15Merge pull request #107 from magicalvidyakitty/masterTaylor Holberton
Added reading from stdin.
2017-12-15Added reading from stdin.Magickal Feline
2017-11-06fixed short option in tinyplayTaylor Holberton
2017-10-19Merge pull request #104 from rfvirgil/masterTaylor Holberton
Replace old style Android.mk with new Android.bp
2017-10-19Replace old style Android.mk with new Android.bpRichard Fitzgerald
Create a new Android.bp file used by Android Oreo. There are dependencies on tinyalsa from other components in Oreo that use the new build system and these break if tinyalsa is using the older Android.mk build system. Oreo still picks up and tries to build the Android.mk found in the jni directory and this leads to a build conflict so it has been deleted. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
2017-10-12Fixed segfaultTaylor Holberton
2017-10-12added PCM_NONBLOCK macroTaylor Holberton
2017-10-12corrected tab usageTaylor Holberton
2017-10-12added CMake buildTaylor Holberton
2017-06-02Merge pull request #98 from baruchsiach/fix-muslTaylor Holberton
interval.h: add missing header
2017-06-02interval.h: add missing headerBaruch Siach
The ssize_t type requires the unistd.h header. This fixes build with musl libc: In file included from ../include/tinyalsa/limits.h:32:0, from limits.c:1: ../include/tinyalsa/interval.h:38:2: error: unknown type name 'ssize_t' ssize_t max; ^ Signed-off-by: Baruch Siach <baruch@tkos.co.il>
2017-05-23bumped versionTaylor Holberton
2017-05-23Merge pull request #97 from xpahos/masterTaylor Holberton
Debian debug package
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