aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-04utils: tinymix: Print device number associated with mixer controlsRohit kumar
For mixer controls with same name and different device number, there is no clarity in tinymix output. Print device number along with mixer control name to distinguish between mixer controls with same name.
2023-09-04mixer: add support for pcm device specific mixer controlsRohit kumar
Mixer control such as "Playback channel map" can be registered by multiple pcm device nodes and is distinguished by device in snd_ctl_elem_id. Add support to get the control handle associated with mixer ctl name and device number. Also, introduce API to get the device number associated with specific mixer_ctl handle.
2022-08-03Merge pull request #230 from rsglobal/propagate-error-messagedvdli
pcm: Propagate error message to the bad_pcm in case of failure
2022-07-26pcm: Propagate error message to the bad_pcm in case of failureRoman Stratiienko
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2022-07-20Merge pull request #228 from mkupchik/masterdvdli
mmap support in tinycap
2022-06-08mmap support in tinycapMikhail Kupchik
Added mmap (-M option) support to tinycap utility. This is necessary for some hardware to work (e.g. Plugable HDMI capture card with USB ID 1bcf:2c99).
2022-06-06Merge pull request #227 from dvdli/mmap-boundary-devdvdli
match the boundary type with kernel driver
2022-05-24match the boundary type with kernel driverdvdli
1. Remove calculation of boundary and retrieve boundary from ALSA kernel. Also fix type when getting available and advance appl_ptr. 2. Fix avail in pcm_mmap_transfer getting overflow. 3. Fix typo.
2022-05-17Merge pull request #225 from mikopp6/tinywavinfo_devdvdli
Fixed bug with main analysis loop
2022-05-09Fixed bug with main analysis loopMiko Palojärvi
2022-01-13Merge pull request #224 from ffontaine/masterdvdli
include time.h before asound.h
2022-01-11include time.h before asound.hFabrice Fontaine
Include time.h before asound.h to avoid the following build failure on musl that was already fixed a long time with https://github.com/tinyalsa/tinyalsa/commit/c8333f8c7a4e4b9549abeef7530b2cd20a18e537 but reappeared on version 2.0.0: In file included from ../src/pcm_hw.c:42: /home/peko/autobuild/instance-1/output-1/host/i586-buildroot-linux-musl/sysroot/usr/include/sound/asound.h:444:18: error: field 'trigger_tstamp' has incomplete type 444 | struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */ | ^~~~~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/a75e23dc585bd071f4d65face5489ed6ac22edbe Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-01-05Merge pull request #222 from dvdli/tinyalsa-devdvdli
Fix a type issue and a mixer control issue.
2021-12-15add ioctl to read IEC958 datadvdli
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