aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-19fix the zero fd closing problem am: 1fa61ebcecandroid-12.1.0_r9android-12.1.0_r8android-12.1.0_r7android-12.1.0_r22android-12.1.0_r21android-12.1.0_r20android-12.1.0_r19android-12.1.0_r11android-12.1.0_r10android12L-devandroid12-qpr3-s7-releaseandroid12-qpr3-s6-releaseandroid12-qpr3-s5-releaseandroid12-qpr3-s4-releaseandroid12-qpr3-s3-releaseandroid12-qpr3-s2-releaseandroid12-qpr3-s1-releaseandroid12-qpr3-releasedvdli
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/tinyalsa_new/+/15310734 Change-Id: I360b7172db19fbedff0a26597702af27e0956f65
2021-07-16fix the zero fd closing problemandroid-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devdvdli
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. Bug: 192152106 Test: mm libtinyalsav2 Merged-In: I271429b818a147917c21dece1a37e583e421c892 Change-Id: I7f99e83c253b4eb9a11193322ac884ccfc7be099
2021-06-15Merge remote-tracking branch 'remotes/goog/mirror-aosp-master' into sc-dev ↵David Li
am: 59f20cf872 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/tinyalsa_new/+/14964692 Change-Id: I5d2aac8e4f3bc8e141bca0f2c22cb52192d43f90
2021-06-15Merge remote-tracking branch 'remotes/goog/mirror-aosp-master' into sc-devDavid Li
Bug: 187912470 Test: mm libtinyalsav2 tinyplay2 tinymix2 tinypcminfo2 tinycap2 Merged-In: If3f8921d932bf7d680ab6ef9002505c2f7b47f6c Change-Id: I6a601ef06c9a9308b71ee8b9e79b8b6609e28068
2021-06-07Merge remote-tracking branch 'remotes/goog/stage-aosp-master' into am: ↵David Li
6739ee51da Original change: https://googleplex-android-review.googlesource.com/c/platform/external/tinyalsa_new/+/14835529 Change-Id: I555e0b90fc5d10f6565a07d68e42dbf8784fec1d
2021-06-06Merge remote-tracking branch 'remotes/goog/stage-aosp-master' intoDavid Li
sc-dev Bug: 187912470 Test: mm libtinyalsav2 tinyplay2 tinymix2 tinypcminfo2 tinycap2 Merged-In: If3f8921d932bf7d680ab6ef9002505c2f7b47f6c Merged-In: Ia70bcf78571fd1bebf3d3d69f87de7554a99f929 Change-Id: Iffb8556f2cb4cae0f255c6b59cf986af52a1e149
2021-06-03Merge remote-tracking branch 'remotes/aosp/upstream-master' into masterDavid Li
Bug: 187912470 Test: mm libtinyalsav2 tinyplay2 tinymix2 tinypcminfo2 tinycap2 Change-Id: If3f8921d932bf7d680ab6ef9002505c2f7b47f6c
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 remote-tracking branch 'remotes/aosp/upstream-master' into master am: ↵David Li
a2295bf0ff Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1718970 Change-Id: If2d6e93e5cd7c189d8c5232108266160b5d8a35a
2021-05-26Merge remote-tracking branch 'remotes/aosp/upstream-master' into masterDavid Li
Bug: 187912470 Bug: 180934608 Test: mm libtinyalsav2 tinyplay2 tinymix2 tinypcminfo2 tinycap2 Change-Id: Ia70bcf78571fd1bebf3d3d69f87de7554a99f929
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-18Merge remote-tracking branch 'remotes/aosp/upstream-master' into am: ↵David Li
62e402fb24 am: 6f0089016a am: 61254c737f Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1639959 Change-Id: If409a3721cc0d66e066e319e658f84b1713ef1fe
2021-03-18Merge remote-tracking branch 'remotes/aosp/upstream-master' into am: ↵David Li
62e402fb24 am: 6f0089016a Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1639959 Change-Id: I5ab62bfc39f72843a31536cc0b1300afcbfdc4d7
2021-03-18Merge remote-tracking branch 'remotes/aosp/upstream-master' into am: 62e402fb24David Li
Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1639959 Change-Id: I7135873b66f418b51d9e970133e28c0fbf0dbae5
2021-03-16Merge remote-tracking branch 'remotes/aosp/upstream-master' intoandroid-s-beta-2android-s-beta-1David Li
aosp/master Bug: 132165380 Test: mm libtinyalsav2 tinyplay2 tinymix2 tinypcminfo2 tinycap2 Change-Id: I59ab5c96ef8b58f66c11db34b63c21f641f5bee5
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-16[LSC] Add LOCAL_LICENSE_KINDS to external/tinyalsa_new am: 535e6ea3ed am: ↵Bob Badour
59ec086f3b am: 2901cc5713 Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1588897 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3a0a1c2e6f0b491ff921d07a29a12b3890c1c4c1
2021-02-16[LSC] Add LOCAL_LICENSE_KINDS to external/tinyalsa_new am: 535e6ea3ed am: ↵Bob Badour
59ec086f3b Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1588897 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I1b83e3e48904c6cf334ddf3a76d90eccbdfc9637
2021-02-16[LSC] Add LOCAL_LICENSE_KINDS to external/tinyalsa_new am: 535e6ea3edBob Badour
Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1588897 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic8017195ff9f53d97803e18a1f08895fdf8ec632
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to external/tinyalsa_newandroid-s-preview-1Bob Badour
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-27Merge "Merge branch upstream-master into tinyalsa am: 6e88308fb5 am: ↵TreeHugger Robot
7afe0ebde3" into rvc-qpr-dev-plus-aosp am: d4a919e292 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/tinyalsa_new/+/13409597 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I45973c0251375ab6025d50c2960f054f21a65d19
2021-01-27Merge "Merge branch upstream-master into tinyalsa am: 6e88308fb5 am: ↵TreeHugger Robot
7afe0ebde3" into rvc-qpr-dev-plus-aosp
2021-01-27Merge branch 'upstream-master' into tinyalsa am: 6e88308fb5 am: 7afe0ebde3 ↵David Li
am: 673d28b14e Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1557649 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I92ee4b31e8d695c72607f2f736ec7c302a7f33a6
2021-01-27Merge branch 'upstream-master' into tinyalsa am: 6e88308fb5 am: 7afe0ebde3David Li
Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1557649 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I58fd51ecdb2d0282b7bde46dde7cf6f7a7c3ce31
2021-01-27Merge branch upstream-master into tinyalsa am: 6e88308fb5 am: 7afe0ebde3Alex Spradlin
Change-Id: Ib0f88a23137b48b47ad672bb3c861a821f47b7bf
2021-01-26Merge branch 'upstream-master' into tinyalsa am: 6e88308fb5David Li
Original change: https://android-review.googlesource.com/c/platform/external/tinyalsa_new/+/1557649 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia9df1936ca83dd1707e680bb73bee4e63df6131a
2021-01-24Merge branch 'upstream-master' into tinyalsaplatform-tools-31.0.0David Li
Bug: 134958010 Test: make -j128, make checkbuild -j128, m WITH_TIDY=1 libtinyalsav2 Change-Id: I96dda7d46d2bf5390a4e2c9968fda4ebf76884aa
2021-01-21Initial empty repositoryInna Palant
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.