Add pcm_params string conversion and format checking
Change-Id: I93415bd1a88ff0feaf14af3daf48e00dd1990176
Signed-off-by: Andy Hung <hunga@google.com>
Change-Id: I93415bd1a88ff0feaf14af3daf48e00dd1990176
Signed-off-by: Andy Hung <hunga@google.com>
Update tinypcminfo to display format information
Change-Id: I0e6a04da5a4b122a3748b16c7eb01c4a224c3d84
Signed-off-by: Andy Hung <hunga@google.com>
Change-Id: I0e6a04da5a4b122a3748b16c7eb01c4a224c3d84
Signed-off-by: Andy Hung <hunga@google.com>
am e698fd4a: Merge "Update 64-bit blacklist for tinyalsa"
* commit 'e698fd4a6f8d3057d520c3a4aa4cb835005fefeb':
Update 64-bit blacklist for tinyalsa
* commit 'e698fd4a6f8d3057d520c3a4aa4cb835005fefeb':
Update 64-bit blacklist for tinyalsa
Merge "Update 64-bit blacklist for tinyalsa"
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
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"
Fix build on Mac host
Change-Id: Ifdbcb702ef60c78ec25f8f40cb7f8bdc981b8f48
Change-Id: Ifdbcb702ef60c78ec25f8f40cb7f8bdc981b8f48
Add support for 24-bit packed in 3 bytes
Change-Id: Idc977bba5f364d8a22fe9756edf9bd2859eb0441
Change-Id: Idc977bba5f364d8a22fe9756edf9bd2859eb0441
Build tinyplay for host
Change-Id: I6e4c00e50850fb3bdaa2df82186e494003b3226d
Change-Id: I6e4c00e50850fb3bdaa2df82186e494003b3226d
add support for mmap read
Change-Id: Ief5e043025332480307017295317a3d20d6d4d65
Change-Id: Ief5e043025332480307017295317a3d20d6d4d65
pcm_get_htimestamp can now use CLOCK_MONOTONIC
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
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 tinyalsa
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
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 tinyalsa
ec28139 mixer: add mixer_get_name() API
710df88 mixer: add mixer_ctl_update() API
Change-Id: I0cabe7e673a53f4358b5dbae4a17112eff5a2848
ec28139 mixer: add mixer_get_name() API
710df88 mixer: add mixer_ctl_update() API
Change-Id: I0cabe7e673a53f4358b5dbae4a17112eff5a2848
Update to latest tinyalsa
38f87f3 mixer: add get/set_array API
Change-Id: Ib44636dcb92412e2a537928bae28add2627180e4
38f87f3 mixer: add get/set_array API
Change-Id: Ib44636dcb92412e2a537928bae28add2627180e4
Update to latest tinyalsa
5089567 tinycap: convert size from frames to bytes
7a12d9c tinyplay: Make error messages more meaningful
Change-Id: Id906c3827123616bd698dd93f575137b9e78e49c
5089567 tinycap: convert size from frames to bytes
7a12d9c tinyplay: Make error messages more meaningful
Change-Id: Id906c3827123616bd698dd93f575137b9e78e49c
Update to latest tinyalsa
f7f35cc Add tinypcminfo utility
4354488 pcm: add pcm_get_params API
Change-Id: I50e196bc299734b6e020bdcededa4f903ee5c5c2
f7f35cc Add tinypcminfo utility
4354488 pcm: add pcm_get_params API
Change-Id: I50e196bc299734b6e020bdcededa4f903ee5c5c2
Update to latest tinyalsa
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
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 threshold
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
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 tinyalsa
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
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 licence
Change-Id: I90f37ae63ee164ff23afdc5e0e37dd4cd5fa7a73
Change-Id: I90f37ae63ee164ff23afdc5e0e37dd4cd5fa7a73
am 673253ac: tinyalsa: Add PCM_NORESTART flag.
* commit '673253acf06838bb24d0b0b1a3962bed573855b8':
tinyalsa: Add PCM_NORESTART flag.
* commit '673253acf06838bb24d0b0b1a3962bed573855b8':
tinyalsa: Add PCM_NORESTART flag.
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>
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 audio
Change-Id: Iaa76cba7650892c1d675c47e9e2a9c9da4e7e0cb
Change-Id: Iaa76cba7650892c1d675c47e9e2a9c9da4e7e0cb
Update to latest tinyalsa
8fe2c93 mixer: remove redundant IOCTL_ELEM_READs
b29ac1a mixer: simplify string get APIs
174d874 tinycap: add missing options to usage string
Change-Id: Id91acf6a084dac3dd0d07966330e10ffc95618bd
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 tinyalsa
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
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-release
* commit 'cfd1b547fd10344c73f58dcf907d65315ed804d2':
* commit 'cfd1b547fd10344c73f58dcf907d65315ed804d2':
Reconcile with ics-mr1-release
Change-Id: I35a0a0f15feed2406d60d77de84f0c4d13f0fb9e
Change-Id: I35a0a0f15feed2406d60d77de84f0c4d13f0fb9e
Reconcile with ics-mr1-release
Change-Id: I09f1d86686b740117c90729a0dbef8fe2b1e20e5
Change-Id: I09f1d86686b740117c90729a0dbef8fe2b1e20e5
merge in ics-mr1-release history after reset to ics-mr1
merge in ics-mr1-release history after reset to ics-mr1
Reconcile with ics-mr1-release
Change-Id: I4dcc6c5eae53d80c8627d155cdb762e973c4ce48
Change-Id: I4dcc6c5eae53d80c8627d155cdb762e973c4ce48
merge in ics-mr1-release history after reset to ics-mr1
am 0e080749: am 1b32ddfd: Update to latest tinyalsa
* commit '0e080749c080aedd2a20c07ba29ac58187c7f532':
Update to latest tinyalsa
* commit '0e080749c080aedd2a20c07ba29ac58187c7f532':
Update to latest tinyalsa
am 1b32ddfd: Update to latest tinyalsa
* commit '1b32ddfd35e54b0a6ef1e43ca35dbc1547e5676a':
Update to latest tinyalsa
* commit '1b32ddfd35e54b0a6ef1e43ca35dbc1547e5676a':
Update to latest tinyalsa
Update to latest tinyalsa
3502113 pcm: fix pcm capture dropping samples
Change-Id: Icae0f32a39e58dda55a3b9a0094263ba781d65a7
3502113 pcm: fix pcm capture dropping samples
Change-Id: Icae0f32a39e58dda55a3b9a0094263ba781d65a7
Document avail_min
Change-Id: If5e7d892a1d78d83602a6bce57f8b466fa54dbd6
Change-Id: If5e7d892a1d78d83602a6bce57f8b466fa54dbd6
Reconcile with ics-mr1-release
Change-Id: I4a3249fa2e8578bc33f5f01d221ab529e580fe97
Change-Id: I4a3249fa2e8578bc33f5f01d221ab529e580fe97
Reconcile with ics-mr1-release
Change-Id: If2abb8e87a5da026b21c35544613ebca4e4a66dc
Change-Id: If2abb8e87a5da026b21c35544613ebca4e4a66dc
merge in ics-mr1-release history after reset to ics-mr1
Reconcile with ics-mr1-release
Change-Id: Ie36e86cf8d54ff756bfa54379446671ffe223f8d
Change-Id: Ie36e86cf8d54ff756bfa54379446671ffe223f8d
am 8dd366f4: Update to latest tinyalsa
* commit '8dd366f47258eeda07910a99b29ba681fe7464a7':
Update to latest tinyalsa
* commit '8dd366f47258eeda07910a99b29ba681fe7464a7':
Update to latest tinyalsa
Update to latest tinyalsa
7db4858 pcm: more state checking in pcm_get_htimestamp()
Change-Id: I7329a869f1eea51c976824540afd3db47c3de21b
7db4858 pcm: more state checking in pcm_get_htimestamp()
Change-Id: I7329a869f1eea51c976824540afd3db47c3de21b
am 5aed71db: Update to latest tinyalsa
* commit '5aed71db7d87ba518b53e40c00dcaa0afbc2aceb':
Update to latest tinyalsa
* commit '5aed71db7d87ba518b53e40c00dcaa0afbc2aceb':
Update to latest tinyalsa
merge in ics-mr1-release history after reset to ics-mr1
Update to latest tinyalsa
ee9ba87 pcm: fix underrun detection
5251016 mixer: show BYTE controls
a912d70 include: fix header comments and arguments
Change-Id: I33386f64b65b55c337ceacbe62dc6d498a536378
ee9ba87 pcm: fix underrun detection
5251016 mixer: show BYTE controls
a912d70 include: fix header comments and arguments
Change-Id: I33386f64b65b55c337ceacbe62dc6d498a536378
Reconcile with ics-mr1-release
Change-Id: I08373a62e00ccc78cb09e193dd1c90a36daf50d9
Change-Id: I08373a62e00ccc78cb09e193dd1c90a36daf50d9
merge in ics-release history after reset to master
Add dynamic change of avail_min for mmap mode
Added support for setting avail_min when opening a stream as well
as dynamically changing its value whitout stopping playback when the
stream is opened in mmap and no irq mode.
Allow writing less than avail_min frames to pcm_mmap_write() without
systematically waiting for avail_min frames to be available.
Also fixed wait timeout for no irq mode in pcm_mmap_write().
Change-Id: Ief8e05dde8d538185174da9ef14e27a0a470057c
Added support for setting avail_min when opening a stream as well
as dynamically changing its value whitout stopping playback when the
stream is opened in mmap and no irq mode.
Allow writing less than avail_min frames to pcm_mmap_write() without
systematically waiting for avail_min frames to be available.
Also fixed wait timeout for no irq mode in pcm_mmap_write().
Change-Id: Ief8e05dde8d538185174da9ef14e27a0a470057c
Update to latest tinyalsa
6be28f1 pcm: add mmap playback and no periodic IRQ support.
fa0697e tinyplay: fix segfault caused by missing device argument
Change-Id: I22cf8f01eba21e42b4fa43cc5fd9edd2826f44fa
6be28f1 pcm: add mmap playback and no periodic IRQ support.
fa0697e tinyplay: fix segfault caused by missing device argument
Change-Id: I22cf8f01eba21e42b4fa43cc5fd9edd2826f44fa
merge in ics-release history after reset to master
Update to latest tinyalsa
764d341 tinyplay: add support for device parameter
df8ae90 tinymix: print mixer values when no mixer control is specified
7de3eaf Ensure threasholds are zeroed before opening pcm
Change-Id: Ie7b652b16b90d05fc9dee6ce31c7ffc3dc9a47f1
764d341 tinyplay: add support for device parameter
df8ae90 tinymix: print mixer values when no mixer control is specified
7de3eaf Ensure threasholds are zeroed before opening pcm
Change-Id: Ie7b652b16b90d05fc9dee6ce31c7ffc3dc9a47f1
merge in ics-release history after reset to master
Update to latest tinyalsa
3bb114a pcm: add control for ASLA thresholds to pcm_open
ee99f21 include: make it easier to use this header from C++
89b3128 Makefile: Don't error out of clean if already clean
a14dad9 tinymix: Say if we can't open the mixer
49900f0 Merge pull request #3 from broonie/noprelink
ea019ef Merge pull request #2 from broonie/add-include
Change-Id: I110de23af1f43d2cefb134204cb0439a7fd4c1d0
3bb114a pcm: add control for ASLA thresholds to pcm_open
ee99f21 include: make it easier to use this header from C++
89b3128 Makefile: Don't error out of clean if already clean
a14dad9 tinymix: Say if we can't open the mixer
49900f0 Merge pull request #3 from broonie/noprelink
ea019ef Merge pull request #2 from broonie/add-include
Change-Id: I110de23af1f43d2cefb134204cb0439a7fd4c1d0
merge in ics-release history after reset to master
Update to latest tinyalsa
40b018e pcm: add pcm_get_htimestamp() function
c8aedef tinycap: remove extra parameter from strcmp
Change-Id: Ic241e3b5e41e26cf6586d0489488c96fae692e0b
40b018e pcm: add pcm_get_htimestamp() function
c8aedef tinycap: remove extra parameter from strcmp
Change-Id: Ic241e3b5e41e26cf6586d0489488c96fae692e0b
merge in ics-release history after reset to master
Update tinyalsa for tinycap support
dd84573 Add tinycap utility to capture PCM riff/wave files
Change-Id: I26cf6cf609e74c3b33d3cda2586d8ec07a8fa502
dd84573 Add tinycap utility to capture PCM riff/wave files
Change-Id: I26cf6cf609e74c3b33d3cda2586d8ec07a8fa502
merge in ics-release history after reset to master
Update tinyalsa for pcm_start/stop() support
d6458e6 pcm: add pcm_start/stop() functions for streams
Change-Id: Iba1dd4e6adc0be68008b44978d55231c584e92c4
d6458e6 pcm: add pcm_start/stop() functions for streams
Change-Id: Iba1dd4e6adc0be68008b44978d55231c584e92c4
Update tinyalsa for pcm_start/stop() support
d6458e6 pcm: add pcm_start/stop() functions for streams
Change-Id: Iba1dd4e6adc0be68008b44978d55231c584e92c4
d6458e6 pcm: add pcm_start/stop() functions for streams
Change-Id: Iba1dd4e6adc0be68008b44978d55231c584e92c4
Update to latest tinyalsa for 32_LE support
bc03b62 pcm: fix TODOs for 32 bit support
Change-Id: I9f4d83c808a664aed5cefae271e3ad7b5c522c99
bc03b62 pcm: fix TODOs for 32 bit support
Change-Id: I9f4d83c808a664aed5cefae271e3ad7b5c522c99
Initial version of tinyalsa
From git://github.com/tinyalsa/tinyalsa.git 193b1c3b
Change-Id: I8971581d4867bd785ac628638679d2c09c79169f
From git://github.com/tinyalsa/tinyalsa.git 193b1c3b
Change-Id: I8971581d4867bd785ac628638679d2c09c79169f
Initial empty repository