Clean up asoundlib.h header file

Remove unused constants and unimplemented functions.
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>
Tinyalsa: standardize error message for wrong input value

Currently, if a user sets a mixer with a percentage value
greater than the maximum, tinyalsa does not inform the user
about this "error" and silently replaces the user's value
by the maximum. However, if a user sets a mixer with an
integer value greater than the maximum, tinyalsa informs
the user with an error.

This patch purpose is to define the same behaviour in both
quoted cases: user is informed through an error.

Change-Id: I79547758266d1eb08a65d7b1355ec9859f3b27bb
Signed-off-by: Baptiste Robert <baptistex.robert@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
tinyalsa: unable to set BYTE mixer

tinyalsa set mixer function didn't support BYTE element
type

Add BYTE element type support

Change-Id: I95d1d82150805f16cc5103bac9c9c9500210bbbf
Signed-off-by: David Coutherut <davidx.coutherut@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>