aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-15match the varaibles' type for 64-bit compatibilitydvdli
Since the variables are snd_pcm_uframes_t and snd_pcm_uframes_t is unsigned long, using unsigned int causes problem when running on a 64-bit binary. Also fix the branch name of googletest.
2021-11-23Merge pull request #221 from toge/fix-strncpy-bugSimon Wilson
fix strncpy potential bug
2021-11-23insert null at end of strncpy target array.toge
2021-11-16Merge pull request #220 from toge/fix-strncpy-warningsSimon Wilson
fix strncpy warnings
2021-11-17fix strncpy warningstoge
2021-11-04Merge pull request #218 from aospm/index-underflowTaylor
mixer: fix index underflow when index=0
2021-11-02mixer: fix index underflow when index=0Caleb Connolly
In mixer_get_ctl_by_name_and_index(), the post-fix decrement means that the index will be decremented after the comparison, but before the return, leading to an unsigned integer underflow. This causes a crash on platforms with -fsanitize=integer enabled. Fix this by avoiding decrementing index until after the return. Change-Id: I25a17ced4185bdebd500285bd30b342b16b4ac12
2021-07-27Merge pull request #216 from tinywrkb/meson_headersdvdli
meson: add attributes.h and plugin.h public headers
2021-07-26meson: add attributes.h and plugin.h public headerstinywrkb
2021-07-15Merge pull request #213 from dvdli/fix-licensedvdli
update NOTICE file and format license header
2021-07-15update NOTICE file and format license headerdvdli
2021-07-13Merge pull request #211 from dvdli/tinyplay-devdvdli
fix the remaining bytes bug (#209) and refactoring tinyplay
2021-07-13Merge pull request #212 from dvdli/fix-closing-pcm-zero-fddvdli
fix the zero fd closing problem
2021-07-13fix the zero fd closing problemdvdli
The pcm_hw_close refused to close the zero fd. Add "equal to" condition and modify the type of fd to int to close the zero fd.
2021-07-13fix remaining_data_size is 0 when not playing a wave filedvdli
2021-07-12Merge pull request #210 from rohkkumar/plugin_exampledvdli
tinyalsa: Add sample pcm/mixer plugin and sample sndcardparser
2021-07-08tinyalsa: Add sample pcm/mixer plugin and sample sndcardparserRohit kumar
2021-06-29refactoring and fix typodvdli
2021-06-29refactoring: add a wave-file parsing functiondvdli
2021-06-02Merge pull request #208 from dvdli/tinyalsa-pcm-open-blockedSimon Wilson
force pcm_open to open device with the non-blocking flag
2021-06-02force pcm_open to open device with the non-blocking flagdvdli
When a client opens a PCM device whose substreams are all occupied without the non-blocking flag, the open function would be blocked in the kernel until the previous opened ones are closed. This would cause deadlock if they try to hold the same lock. Most of the ALSA PCM drivers on embedded systems are implemented with the ALSA SOC framework. Each PCM device has only one substream. This problem would happen frequently. To force pcm_open to open PCM devices with non-blocking flag is beneficial to resolve this problem. It returns the control to clients to try again later. The reason why we don't call pcm_open with PCM_NONBLOCK is that the PCM_NONBLOCK also affects the read and write behaviors. I also add a test case to test whether the pcm_open would be blocked.
2021-05-26Merge pull request #206 from dvdli/tinyalsa-fix-pcmdvdli
Fix compatible issue and refine null parameters checking
2021-05-19remove range checking in mixer_ctl_set_valuedvdli
There are some drivers assigning wrong ranges of mixer control's values. Let ALSA drivers to check whether values are in ranges.
2021-05-19refine null parameters checking and add a unit test casedvdli
2021-05-19add pcm_prepare before pcm_startdvdli
2021-03-22Merge pull request #203 from dvdli/tinyalsa-fixdvdli
fix a variable name in tests
2021-03-22fix bug in testsdvdli
2021-03-15Merge pull request #202 from dvdli/tinyalsa-float-devdvdli
floating-point PCM support
2021-03-11add floating-point PCM supoort to tinyplaydvdli
This change also fixes overwriting the appl_ptr and avail_min when calling the pcm_state function.
2021-03-10add a loopback test for floating point PCMdvdli
2021-02-22support float config and float wave file playbackdvdli
2021-02-22Merge pull request #201 from dvdli/sync-aospdvdli
Sync AOSP: [LSC] Add LOCAL_LICENSE_KINDS to external/tinyalsa_new
2021-02-22Sync AOSP: [LSC] Add LOCAL_LICENSE_KINDS to external/tinyalsa_newdvdli
https://android.googlesource.com/platform/external/tinyalsa_new/+/535e6ea3edcb6e119d465073facc3b2a338bdcb1 [LSC] Add LOCAL_LICENSE_KINDS to external/tinyalsa_new Added SPDX-license-identifier-BSD SPDX-license-identifier-Unlicense to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I21fe326f57f35b252901cf1423c4af149694fb51
2021-02-01Merge pull request #198 from dvdli/tinyalsa-devdvdli
fix bugs
2021-01-29upgrade Travis CI dist to bionicdvdli
2021-01-28fix test case to match the APIdvdli
2021-01-28Let pcm_mmap_read/write call pcm_readi/writeidvdli
The pcm_readi and pcm_writei also can deal with the mmap read/write. Also mark the pcm_mmap_read/write functions as deprecated functions and update the test case. Add mmap playback support to tinyplay
2021-01-28prepare in pcm_generic_transferdvdli
2021-01-20Merge pull request #200 from dvdli/tinyalsa-aospdvdli
add LICENSE file and rename modules in Android.bp
2021-01-20add LICENSE file and rename modules in Android.bpdvdli
2021-01-12fix integer character ascii rangedvdli
2021-01-12remove pcm_prepare in pcm_opendvdli
For the dynamic pcm device, it is valid to specify the backend after opening it. However, it is invalid to call prepare on a dynamic pcm device without connecting any backend device. We should not do pcm_prepare in pcm_open. See also: Issue #197
2020-12-09fix mmap-related functions' bugsdvdli
1. sync hw ptr before calculating the avail 2. return zero when reading or writing successfully
2020-12-09fix bugs in the pcm_open_* functionsdvdli
1. Align the document and the code. 2. Copy error messages to bad_pcm object for client to get more info when opening failed.
2020-12-09Merge pull request #194 from dvdli/tinymix-devdvdli
Fix tinymix bugs and support setting negative values
2020-12-09correct index of integer string and reduce the life time of variablesdvdli
2020-12-07add usage of VALUESdvdli
2020-12-07add support setting negative values to tinymixdvdli
2020-12-07formatting and remove tinymix prefix of static functionsdvdli
2020-12-07duplicate an argv list to avoid the argv order changeddvdli