hal: Squashed collection of fixes

 * Remove unnecessary ifdefs for PCM offload
 * Remove unnecessary property for 24-bit support (use audio policy)
 * Clean up warnings

 * Also includes these patches from Google:

audio: fix set_parameters return value.

xxx_set_parameters functions were returning the status
returned by str_parms_create_str() which is incorrect.
These functions should return 0 when no error occurs.

Change-Id: Ib4a7ac427e49f5500c99902f86d2d69d5843eda0

Scan and verify audio device parameters on open

Scanning is default disabled at this time.
Verbose logs will display device params found.

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

audio: deprecate audio_stream_frame_size()

Bug: 15000850.
Change-Id: I1bbe614c241befa24513a2b583594680e32fd954
hal: Support the audio amplifier hook

* Original legacy HAL commit:
  Ib236598a5888b2af19bcfb81e285f644a0e84c0d
* Example: http://review.cyanogenmod.org/38221

Change-Id: Ic944a9f7059c78b79322dae9c787cdd8bb029cff
hal: use 0 as default return value for out_get_render_position

- Initialize default return value of out_get_render_position to
  0(NO_ERROR).
- Default value(NO_ERROR) will be used if timestamp query happens
  before compress driver is opened. Return 0(NO_ERROR) in this case
  to avoid playback failures.

Change-Id: I0f8b2e0f19cfe736a19934ddef18016599ec582c
CRs-Fixed: 756508
hal: Upstream updates for samplerate/bitwidth

 * Clean up sample rate choice code
 * Choose correct rates for specific devices when appropriate
 * Kill logspam

Change-Id: I39ea6801834fe8e3cb6b0a40ba6ff649c5ab1b1d
hal: Add support for listen playback concurrency

Add support for concurrency handling between number of
listen capture session and playback activity.

Change-Id: I4a0656f240c62f2cc6266a714a96fdcdc13ae9d8
post_proc: Fix bassboost/virtualizer not disabled on speaker

When output is unintended device, there's no need to query enable_flag
before setting effect to disabled state. There's possiblity that
enable_flag is 0 as initialized value, which hinder effects from being
disabled.

Change-Id: Ib90c0ad0982dc8274129bb1bed7861e11670fbdb
hal: Clean up compilation warnings

Change-Id: I3857f565dd7a2f3ce3a1cbb783eb3d67fb024e3e
hal: Invert standard build flags

 * Always include these unless explicitly negated

Change-Id: I3931ef089dddcd9ac9f61d8b7e870cf916a4e47d
hal: Kill useless logspam

Change-Id: I540e3e22670c192d440697c0ae284225427711e0
hal: Remove samplerate checks for speaker

 * This is causing mass chaos, and is not necessary with the floating
   point mixer.

Change-Id: I60285e8b44566b69deb5113772a982c875d4f727
hal: Be specific about supported offload formats

 * We need to look at the subformats here since certain combinations
   are not valid.
 * Fixes AAC offload with Tidal.

Change-Id: Ice41aeb7e011a4421e52b02a6e53b6bc36f0b9c6