| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ieffaabfb0ff0c033921e4a9e078099bd4b721fa5
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| | |
Android 6.0.0 release 26
|
| |\
| | |
| | |
| | |
| | |
| | | |
* changes:
Add pcm_get_poll_fd
Export pcm_mmap_avail
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Add support for modifying the IEC958 structure in a mixer_ctl.
Bug: 9428304
Bug: 22576112
Change-Id: I8982340da9403a8a9e36b389fc97e9c635a9f681
|
|
|
|
|
|
|
|
|
| |
Tinyalsa always set silence_size to zero. Add support to set this
pcm software parameter as required.
Bug: 20226809
Bug: 20300203
Change-Id: I25de43623dc04bf5a3ad4c6573bc2b8dad1eec5e
|
|\
| |
| |
| |
| | |
* commit 'ad31d24be15c7a24c03e92f6d6257f3e19aa03f2':
Cleanup Obsolete LOCAL_PRELINK_MODULE.
|
| |\ |
|
| |/
| |
| |
| |
| | |
Bug: 18675947
Change-Id: I21bc68020b75b4cd93b6a2ec6a8de260baa90316
|
|/
|
|
|
|
|
|
|
| |
Tinyalsa doesn't expose an api to call ioctls exposed by
the audio drivers. Add pcm_ioctl() api.
Bug: 18137488.
Change-Id: I6218580dbf4b2f31cb95d246ed79f0d2ac28b0b1
|
|
|
|
| |
Change-Id: I3fe393dfd666431b8e926144f3781eaf753d9daf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I40040a7e94689dcf6bf9d0bf0d182f66b151d530
|
|\ \ |
|
| |/
| |
| |
| |
| | |
Change-Id: I93415bd1a88ff0feaf14af3daf48e00dd1990176
Signed-off-by: Andy Hung <hunga@google.com>
|
|\ \
| |/
|/|
| |
| | |
* commit '653e7a4015341c87b4d55ec9a94ec7bdee044f6f':
Revert "Update 64-bit blacklist for tinyalsa"
|
| |\ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 6f46701c6f43da1da1c963c3f1b943a9cc8fcabc.
tinyalsa builds fine, and can be used outside mediaserver.
Change-Id: Idc4624b58ca4da39ce81e2b6a6b333aa43bb70a1
|
| |
| |
| |
| |
| | |
Change-Id: I0e6a04da5a4b122a3748b16c7eb01c4a224c3d84
Signed-off-by: Andy Hung <hunga@google.com>
|
|\|
| |
| |
| |
| | |
* commit 'e698fd4a6f8d3057d520c3a4aa4cb835005fefeb':
Update 64-bit blacklist for tinyalsa
|
| |\ |
|
| |/
| |
| |
| |
| |
| |
| | |
tinyalsa is for audio HALs, which are part of mediaserver,
thus should be built 32-bit only
Change-Id: Idb5d809fc924a21a2500b265c96f18a228ab2621
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: Idc977bba5f364d8a22fe9756edf9bd2859eb0441
|
| |
| |
| |
| | |
Change-Id: Ifdbcb702ef60c78ec25f8f40cb7f8bdc981b8f48
|
|/
|
|
| |
Change-Id: I6e4c00e50850fb3bdaa2df82186e494003b3226d
|
|
|
|
| |
Change-Id: Ief5e043025332480307017295317a3d20d6d4d65
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
ec28139 mixer: add mixer_get_name() API
710df88 mixer: add mixer_ctl_update() API
Change-Id: I0cabe7e673a53f4358b5dbae4a17112eff5a2848
|
|
|
|
|
|
| |
38f87f3 mixer: add get/set_array API
Change-Id: Ib44636dcb92412e2a537928bae28add2627180e4
|
|
|
|
|
|
|
| |
5089567 tinycap: convert size from frames to bytes
7a12d9c tinyplay: Make error messages more meaningful
Change-Id: Id906c3827123616bd698dd93f575137b9e78e49c
|
|
|
|
|
|
|
| |
f7f35cc Add tinypcminfo utility
4354488 pcm: add pcm_get_params API
Change-Id: I50e196bc299734b6e020bdcededa4f903ee5c5c2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I90f37ae63ee164ff23afdc5e0e37dd4cd5fa7a73
|
|\
| |
| |
| |
| | |
* commit '673253acf06838bb24d0b0b1a3962bed573855b8':
tinyalsa: Add PCM_NORESTART flag.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Change-Id: Iaa76cba7650892c1d675c47e9e2a9c9da4e7e0cb
|
| |
| |
| |
| |
| |
| |
| |
| | |
8fe2c93 mixer: remove redundant IOCTL_ELEM_READs
b29ac1a mixer: simplify string get APIs
174d874 tinycap: add missing options to usage string
Change-Id: Id91acf6a084dac3dd0d07966330e10ffc95618bd
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| | |
| | |
| | | |
* commit 'cfd1b547fd10344c73f58dcf907d65315ed804d2':
|