aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't obey invalid integer ranges.HEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001stable/cm-13.0-ZNH5Ystable/cm-13.0-ZNH2KBstable/cm-13.0-ZNH2Kcm-13.0Danny Baumann2016-02-091-3/+5
| | | | | | | | | | Qualcomm's sound drivers (wrongly) set 0xffffffff as range maximum in a lot of cases, which essentially means they set that maximum value to -1 due to signed integer value overflow. Instead of patching all the kernels accordingly, drop the range check for such invalid ranges. Change-Id: I4efe0010c316f1fbfbbc004b51fbd5d40d1e1d1e
* tinyalsa: Add a board config to drop silence_size for blob compat.Christopher R. Palmer2015-11-283-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In cm-13.0, this commit was added: commit e25fe0b50ea717a9f347dcb927d396e8772e6362 Author: Maneet Singh <mmaneetsingh@nvidia.com> Date: Thu Jun 11 17:34:40 2015 -0700 pcm: add support to set silence_size Tinyalsa always set silence_size to zero. Add support to set this pcm software parameter as required. Bug: 20226809 Bug: 20300203 Change-Id: I25de43623dc04bf5a3ad4c6573bc2b8dad1eec5e that changes the size of the pcm_config structure. This is a problem for any device using older blobs that call pcm_open as their structure is now invalid. Fixing this via a prebuilt blob is not ideal because we have source built components that also use tinyalsa (e.g. the qcom audio HALs). Using a blob (either as a complete replacement or shim) would involve having code in the same address space that uses two incompatible copies of pcm_open (e.g. via a proprietary audio.primary. and a source built audio.usb.). Therefore, offer a compile option to enable this backward compatibility support. Change-Id: I4d96f2b1fe841fc19e83ddf9a4ca6c0f04bcd3f5
* tinyalsa: Use kernel headers when availableChristopher R. Palmer2015-11-071-0/+22
| | | | Change-Id: Ieffaabfb0ff0c033921e4a9e078099bd4b721fa5
* tinyalsa: verify mixer control valuesScott Mertz2015-11-051-0/+5
| | | | | | | | Many kernels don't have proper range checking on ALSA controls, which can lead to a kernel panic. Let's cut it off here. Change-Id: If3b51634f550611d1605d7203d63aca5e683e0aa
* Merge tag 'android-6.0.0_r26' into cm-13.0Ricardo Cerqueira2015-11-054-1/+10
|\ | | | | | | Android 6.0.0 release 26
| * Merge changes I61375a73,Iffe85dd8 into mnc-dr-devDylan Reid2015-09-232-1/+8
| |\ | | | | | | | | | | | | | | | * changes: Add pcm_get_poll_fd Export pcm_mmap_avail
| | * Add pcm_get_poll_fdDylan Reid2015-09-092-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to ALSA snd_pcm_get_poll_fd, this will allow a user to wait for a sound device to have data in a poll(2) call. The hotword thread will use this to wait for a message on its socket or for audio data to become ready. Change-Id: I61375a73d7a842b00362fc707c12f99aa18e0bdf Signed-off-by: Dylan Reid <dgreid@chromium.org>
| | * Export pcm_mmap_availDylan Reid2015-09-092-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | This is useful for timer based wakeups and for checking how much data has been captured by a hotwording device. Change-Id: Iffe85dd8e69498f0af6e3265971f26daf6f65608 Signed-off-by: Dylan Reid <dgreid@chromium.org>
| * | initialize pcm_config to zeroHaynes Mathew George2015-09-012-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | sw_params ioctl() is failing with 'invalid parameter' error since pointer to pcm_config passed from tinyplay is not zero initialized, hence invalid values are passed for some parameters. authored-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org> Bug: 23525433 Change-Id: I841f29c82ec3fb7646ad8c47fca25963b5f77945
* / tinyalsa: fix initializaton of pcm config structureShiv Maliyappanahalli2015-10-062-2/+2
|/ | | | | | | | | sw_params ioctl() is failing with 'invalid parameter' error since pointer to pcm_config passed from tinyplay is not zero initialized, hence invalid values are passed for some parameters. Change-Id: I841f29c82ec3fb7646ad8c47fca25963b5f77945
* tinyalsa: channel status set as per IEC958Yogesh Agrawal2015-08-041-0/+10
| | | | | | | | Add support for modifying the IEC958 structure in a mixer_ctl. Bug: 9428304 Bug: 22576112 Change-Id: I8982340da9403a8a9e36b389fc97e9c635a9f681
* pcm: add support to set silence_sizeManeet Singh2015-06-222-4/+7
| | | | | | | | | Tinyalsa always set silence_size to zero. Add support to set this pcm software parameter as required. Bug: 20226809 Bug: 20300203 Change-Id: I25de43623dc04bf5a3ad4c6573bc2b8dad1eec5e
* am ad31d24b: Merge "Cleanup Obsolete LOCAL_PRELINK_MODULE."Ying Wang2014-12-161-1/+0
|\ | | | | | | | | * commit 'ad31d24be15c7a24c03e92f6d6257f3e19aa03f2': Cleanup Obsolete LOCAL_PRELINK_MODULE.
| * Merge "Cleanup Obsolete LOCAL_PRELINK_MODULE."Ying Wang2014-12-161-1/+0
| |\
| | * Cleanup Obsolete LOCAL_PRELINK_MODULE.Ying Wang2014-12-161-1/+0
| |/ | | | | | | | | Bug: 18675947 Change-Id: I21bc68020b75b4cd93b6a2ec6a8de260baa90316
* / pcm: add support for pcm_ioctl() apiShiv Maliyappanahalli2014-10-272-0/+18
|/ | | | | | | | | Tinyalsa doesn't expose an api to call ioctls exposed by the audio drivers. Add pcm_ioctl() api. Bug: 18137488. Change-Id: I6218580dbf4b2f31cb95d246ed79f0d2ac28b0b1
* Add PCM_FORMAT_INVALID constantGlenn Kasten2014-07-151-0/+1
| | | | Change-Id: I3fe393dfd666431b8e926144f3781eaf753d9daf
* tinyalsa: add separate call for pcm prepareOmair Mohammed Abdullah2014-07-092-3/+25
| | | | | | | | | | | | | | | Tinyalsa combines PREPARE and START calls to the driver in the pcm_start() function. Typically, this is needed for making a driver allocating hardware resources that are not related to a PCM stream. Change-Id: Ic83fad784936bbebab28e8e425debd449182db88 Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com> Signed-off-by: David Wagner <david.wagner@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-Tracking-BZ: 73509 Signed-off-by: Glenn Kasten <gkasten@google.com> Bug: 16191181
* Merge "Add pcm_params_set_min/max and update comments"Paul McLean2014-04-012-10/+52
|\
| * Add pcm_params_set_min/max and update commentsPaul McLean2014-03-312-10/+52
| | | | | | | | Change-Id: I40040a7e94689dcf6bf9d0bf0d182f66b151d530
* | Merge "Add pcm_params string conversion and format checking"Andy Hung2014-03-272-1/+175
|\ \
| * | Add pcm_params string conversion and format checkingAndy Hung2014-03-262-1/+175
| |/ | | | | | | | | Change-Id: I93415bd1a88ff0feaf14af3daf48e00dd1990176 Signed-off-by: Andy Hung <hunga@google.com>
* | am 653e7a40: Merge "Revert "Update 64-bit blacklist for tinyalsa""Colin Cross2014-03-251-5/+0
|\ \ | |/ |/| | | | | * commit '653e7a4015341c87b4d55ec9a94ec7bdee044f6f': Revert "Update 64-bit blacklist for tinyalsa"
| * Merge "Revert "Update 64-bit blacklist for tinyalsa""Colin Cross2014-03-251-5/+0
| |\
| | * Revert "Update 64-bit blacklist for tinyalsa"Colin Cross2014-03-211-5/+0
| |/ | | | | | | | | | | | | | | This reverts commit 6f46701c6f43da1da1c963c3f1b943a9cc8fcabc. tinyalsa builds fine, and can be used outside mediaserver. Change-Id: Idc4624b58ca4da39ce81e2b6a6b333aa43bb70a1
* | Update tinypcminfo to display format informationAndy Hung2014-03-193-0/+142
| | | | | | | | | | Change-Id: I0e6a04da5a4b122a3748b16c7eb01c4a224c3d84 Signed-off-by: Andy Hung <hunga@google.com>
* | am e698fd4a: Merge "Update 64-bit blacklist for tinyalsa"Glenn Kasten2014-03-141-0/+5
|\| | | | | | | | | * commit 'e698fd4a6f8d3057d520c3a4aa4cb835005fefeb': Update 64-bit blacklist for tinyalsa
| * Merge "Update 64-bit blacklist for tinyalsa"Glenn Kasten2014-03-141-0/+5
| |\
| | * Update 64-bit blacklist for tinyalsaGlenn Kasten2014-03-101-0/+5
| |/ | | | | | | | | | | | | tinyalsa is for audio HALs, which are part of mediaserver, thus should be built 32-bit only Change-Id: Idb5d809fc924a21a2500b265c96f18a228ab2621
* | Merge "Add support for 24-bit packed in 3 bytes"Glenn Kasten2014-02-032-0/+5
|\ \
| * | Add support for 24-bit packed in 3 bytesGlenn Kasten2014-01-312-0/+5
| |/ | | | | | | Change-Id: Idc977bba5f364d8a22fe9756edf9bd2859eb0441
* | Fix build on Mac hostGlenn Kasten2014-02-031-0/+2
| | | | | | | | Change-Id: Ifdbcb702ef60c78ec25f8f40cb7f8bdc981b8f48
* | Build tinyplay for hostGlenn Kasten2014-01-311-0/+9
|/ | | | Change-Id: I6e4c00e50850fb3bdaa2df82186e494003b3226d
* add support for mmap readEric Laurent2013-09-172-7/+30
| | | | Change-Id: Ief5e043025332480307017295317a3d20d6d4d65
* pcm_get_htimestamp can now use CLOCK_MONOTONICGlenn Kasten2013-08-302-0/+14
| | | | | | | | | Previously the timebase was not documented. Now a new pcm_open flag can be used to specify the clock. If flag PCM_MONOTONIC is specified, then pcm_open uses SNDRV_PCM_IOCTL_TTSTAMP with parameter SNDRV_PCM_TSTAMP_TYPE_MONOTONIC to request timestamps in CLOCK_MONOTONIC. Change-Id: I40ce359cb38d686cbb2521fb0602a8a17ab4f925
* Update to latest tinyalsaSimon Wilson2013-07-174-16/+40
| | | | | | | | 782bfda tinymix: only print mixer name for full mixer dump 4f49678 tinycap: support 24 bit capture 7136cf7 pcm: support S24_LE format Change-Id: Icf48dfe16883771e9ab9d14c5ec24f7d8a907bac
* Update to latest tinyalsaSimon Wilson2013-06-283-7/+32
| | | | | | | ec28139 mixer: add mixer_get_name() API 710df88 mixer: add mixer_ctl_update() API Change-Id: I0cabe7e673a53f4358b5dbae4a17112eff5a2848
* Update to latest tinyalsaSimon Wilson2013-06-242-10/+44
| | | | | | 38f87f3 mixer: add get/set_array API Change-Id: Ib44636dcb92412e2a537928bae28add2627180e4
* Update to latest tinyalsaSimon Wilson2013-05-012-1/+53
| | | | | | | 5089567 tinycap: convert size from frames to bytes 7a12d9c tinyplay: Make error messages more meaningful Change-Id: Id906c3827123616bd698dd93f575137b9e78e49c
* Update to latest tinyalsaSimon Wilson2012-12-034-0/+276
| | | | | | | f7f35cc Add tinypcminfo utility 4354488 pcm: add pcm_get_params API Change-Id: I50e196bc299734b6e020bdcededa4f903ee5c5c2
* Update to latest tinyalsaSimon Wilson2012-11-096-40/+123
| | | | | | | | | | | | | | | | 2c3a8e2 Add -Wall to Makefile and fix warnings 4ef9a57 tinyplay: add clean shutdown handler for ctrl-c 9bb8066 Merge pull request #15 from quantumdream/master bad2b79 tinymix: Add support for passing control name f51c05b mixer: Add mixer_ctl_{set,get}_bytes() fcf66ab Merge pull request #16 from PeterMalkin/master 3d62222 Add pcm_wait() to the tinyalsa API. f9678dd tinyplay: Add missing header file <string.h> cde1f6f Fix several 'symbol defined but not used' warnings. 2a274a1 pcm: Add support for S8 and S24LE formats. a5baefd tinymix: support setting of multiple control values Change-Id: I3d5fe076753ce7d1f74dd3ebedc59202d29f4efd
* pcm: fix default capture start thresholdcm-10.1.3-RC2cm-10.1.3-RC1cm-10.1.3cm-10.1.2cm-10.1.1cm-10.1.0-RC5cm-10.1.0-RC4cm-10.1.0-RC3cm-10.1.0-RC2cm-10.1.0-RC1cm-10.1.0cm-10.1-M3cm-10.1-M2cm-10.1-M1mr1.1-stagingcm-10.1Eric Laurent2012-08-221-4/+7
| | | | | | | | Default start threshold was set to the same value (half of the buffer size) for playback and capture in pcm_open(). The normal default value for capture should be 1 frame. Change-Id: I05afd51ada3d915a6dde7c97846e1693f7c575f4
* Update to latest tinyalsaSimon Wilson2012-05-154-27/+55
| | | | | | | | | 2581a1e add error check for pcm_start 6a52f2c mixer: add missing include for sys/ioctl.h 9eba533 tinyplay: add multichannel support fba29e6 tinycap: Fix byte_rate and block_align values Change-Id: Icbee0a8c1e101234ac55ba8494c74b442f215576
* Add module licencejellybean-stablejellybeanSimon Wilson2012-04-092-0/+25
| | | | Change-Id: I90f37ae63ee164ff23afdc5e0e37dd4cd5fa7a73
* am 673253ac: tinyalsa: Add PCM_NORESTART flag.John Grossman2012-04-042-1/+14
|\ | | | | | | | | * commit '673253acf06838bb24d0b0b1a3962bed573855b8': tinyalsa: Add PCM_NORESTART flag.
| * tinyalsa: Add PCM_NORESTART flag.John Grossman2012-04-032-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | Add a flag which can be passed to pcm_open (called PCM_NORESTART). When set on a playback stream, calls to pcm_write will not automatically attempt to restart an ALSA device in the case of an underflow. Instead, it will propagate the first EPIPE error up to the application to allow it to handle the underflow situation. Subsequent calls to pcm_write will attempt to start the pipeline. Change-Id: If17973c6de9079c4227631bac9ff09b218377344 Signed-off-by: John Grossman <johngro@google.com>
* | build tinyalsa for linux host, to use for CTS audioKeun young Park2012-03-261-0/+9
| | | | | | | | Change-Id: Iaa76cba7650892c1d675c47e9e2a9c9da4e7e0cb
* | Update to latest tinyalsaSimon Wilson2012-03-084-46/+20
| | | | | | | | | | | | | | | | 8fe2c93 mixer: remove redundant IOCTL_ELEM_READs b29ac1a mixer: simplify string get APIs 174d874 tinycap: add missing options to usage string Change-Id: Id91acf6a084dac3dd0d07966330e10ffc95618bd
* | Update to latest tinyalsaSimon Wilson2012-02-285-42/+96
| | | | | | | | | | | | | | | | | | | | | | a6dd4ab tinyplay: Use buffer size in bytes instead of frames 5f64fe7 pcm: Factor out pcm_start() from pcm_read() 6bbe77a pcm: Constify write buffers 9989fc2 tinycap, tinyplay, tinymix: Add extra parameters. 3e3376a tinycap, tinyplay: Check *argv before dereferencing. 80085d4 pcm: Fix integer size error. Change-Id: I69a37c0a89e5531b9ab66a8b3f730765904ed9f7
* | am cfd1b547: am 65eba62e: Reconcile with ics-mr1-releaseThe Android Open Source Project2012-02-010-0/+0
|\ \ | | | | | | | | | * commit 'cfd1b547fd10344c73f58dcf907d65315ed804d2':