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: 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.
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>
Add capability to set one value of a byte mixer

The mixer_ctl_set_value function doesn't support setting byte controls which is
necessary for 1-byte-long byte controls.

Change-Id: Iadd17fe2201e44b79d0a1eb16a003f6139bdd469
Signed-off-by: David Coutherut <davidx.coutherut@intel.com>
Signed-off-by: David Wagner <david.wagner@intel.com>
Author-Tracking-BZ: 115560