hal: Add support for AUDIO_DEVICE_OUT_LINE

Change-Id: I0d1163d7f7716f9a0366f2be245d50adad55b0cc

hal: fix headset path

Inserting HS without mic should select speakerphone mic
      instead of handset mic

Bug: 17307386
Change-Id: I66d3b9037bbf7da5ff4bfebf2567efa3a0866074

hal: updates for DEVICE_OUT_LINE

- support dual-route
- change ACDB ID to 77 for gain tuning independent of headset

Bug 17722311

Change-Id: I5c574dc08e26fa053f60337acb17fb5b73ebbaa1

add line out to device sharing codec backend

AUDIO_DEVICE_OUT_LINE was not listed in
AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND causing a loss of audio when
music was playing over line out and a ringtone playing over lineout and speaker
was stoppped.

Bug: 18903885.
Change-Id: I8c132db9cbfb17842a463600a2d0ced214244b72
2 files changed