audio: fix output flag test in open_output_stream

If flag AUDIO_OUTPUT_FLAG_DIRECT is set, we should only
try to open a multi channel HDMI PCM output if flag
AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD is not set.

Bug: 8174410.
Change-Id: I63fe6cabca590e70c077dea13c86c6948700e606
am 02290055: Merge "voice_processing: do not use GNU old-style field designators"

* commit '022900556d6c3512cc841ea5e93e0597b6dab696':
  voice_processing: do not use GNU old-style field designators
hal: Fix for Audio Route issue when sound path changes

- if you make an outgoing call as mp3 playback is runnign with headset,
  Right side of headset is not functional when keep changing sound path
  from headset to speaker
- Fix the issue by separating loop related of disable/enable_snd_device

Bug: 11232052
Change-Id: Id02a6d7221c77cf4003d97749d75a062d8575d02
am 866d5ff1: hal: Fix for Audio Route issue when sound path changes

* commit '866d5ff1463591e276b7f138c42466d9832c47d4':
  hal: Fix for Audio Route issue when sound path changes
Merge "audio: fix output flag test in open_output_stream" into klp-dev
am a16217ce: Merge "audio: fix output flag test in open_output_stream" into klp-dev

* commit 'a16217ce0f296f69110ebd2cd773a2751c883c7d':
  audio: fix output flag test in open_output_stream
hal: Fix the audio loss issue on codec back end

- Start music playback, plug in and plug out headset and press
  'Next' button in the Music app immediately. Repeating these steps
  result complete loss of audio on HW codec.
- When headset is pluged out and Next is pressed immediately, the
  audio HAL triggers audio routing change from Headset to Speaker,
  and closure of compress playback driver. The later is not lock
  protected which result un protected access of back end information
  in the ALSA framework. This leads to incorrect routing and hence
  loss of audio. It is also observed that sometimes it could lead
  to crash in kernel and phone reboots.
- Fix by ensuring that the kernel driver close is also lock protected
  along with other routing events.

Bug: 11088400
Change-Id: I785effb09e5cef7ba20ee43e0ef91dc296d4e58a
am 8bba9e95: hal: Fix the audio loss issue on codec back end

* commit '8bba9e957f56100d4e1464d576121273ffa434eb':
  hal: Fix the audio loss issue on codec back end
Merge commit '1ed341977485618189efe926120b291f0df3d33a' into HEAD
Merge branch 'master' of https://android.googlesource.com/platform/hardware/qcom/audio into kk-devel