Clean up asoundlib.h header file

Remove unused constants and unimplemented functions.
tinycap: support streaming captured PCM to stdout

It is sometimes useful for testing to be able to stream the
captured PCM to another tool instead of being forced to save
it to a WAV file.

Using '--' instead of the target filename will send the raw
PCM to stdout (without any header).

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
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
add support for mmap read
tinymix: Add support for setting/getting a binary control

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Nariman Poushin <nariman@opensource.wolfsonmicro.com>
tinymix: Improve detect of integer values

Tinymix detected integer values when setting controls simply by calling
isdigit on the first character of the value being set. This causes
problems with enumerated controls whos values start with digits. This
patch improves this to provide more robust detection of integer values.
tinyalsa: add separate call for pcm prepare

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
Merge pull request #39 from dawagner/separate-pcm-prepare

Add separate call for pcm prepare
Merge pull request #21 from quantumdream/master

Setting binary controls
Merge pull request #23 from roml/cleanup

Clean up asoundlib.h header file
mixer: Control input value in mixer_ctl_set_value

When user want to set a mixer control with a value out of range,
the mixer control will be set at its maximum
Merge pull request #31 from rfvirgil/master

tinycap: support streaming captured PCM to stdout
Mixer: Check validity of input value

When the user wants to set a mixer with a value greater
than the maximum or smaller than the minimum, the mixer
is set at an undefined value.

This patch set purpose is to return a error if the input
value is out of range.

Signed-off-by: Baptiste Robert <baptistex.robert@intel.com>
Signed-off-by: David Wagner <david.wagner@intel.com>
Author-Tracking-BZ: 129089
Merge branch 'master' of git://github.com/charleskeepax/tinyalsa into charleskeepax-master

Conflicts:
	tinymix.c
Merge branch 'charleskeepax-master'
Merge pull request #40 from dawagner/check-mixer-input-value

Mixer: Check validity of input value
Merge pull request #33 from gkasten/CL_avsync

pcm_get_htimestamp can now use CLOCK_MONOTONIC
Merge pull request #34 from elaurent/master

add support for mmap read
Update tinypcminfo to display format information

Change-Id: I0e6a04da5a4b122a3748b16c7eb01c4a224c3d84
Signed-off-by: Andy Hung <hunga@google.com>