libhardware_legacy/wifi: add workaround for ar6000 driver

The ar6000 driver requires the interface to be brought up in order
for scanning to function. Without this change, the supplicant fails
on first activation of wifi, and will only connect successfully
after multiple retries. This workaround is also necessary to fix
Wi-Fi hotspot mode (in conjunction with another change to
system/netd).

Backported from CM7.
Fix build error caused by ar6000 workaround

Some devices don't specify DRIVER_MODULE_NAME or DRIVER_MODULE_PATH.
Add hotspot driver loader support

Change-Id: I1489b7291595a41fea4722f14c7d5937df3208f8
Merge remote branch 'cm/cm-10.1'
Merge remote branch 'cm/cm-10.1'
Merge remote branch 'cm/cm-10.1'
Merge remote branch 'cm/cm-10.1'
qcom-fm: audio: add support for FM feature

-Add set_fm_volume() to set handle fm volume

Change-Id: I2a2c6a60b9855d9360ff8fb90849517e77e5faab

Conflicts:

	audio/AudioPolicyManagerBase.cpp
	include/hardware_legacy/AudioSystemLegacy.h
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1

Conflicts:
	wifi/Android.mk

Change-Id: I3ca6a5f4ed733eb37be748c3445d6831c9b049a0
Fix merge error

Change-Id: Ibb03797d6ee818a7e3db74076be76ed595830063
Merge remote branch 'cm/cm-10.1'
Turn on/off fm radio

Change-Id: I9b0b1413c9169ad7c5767d7fbfce6c4d587a9abc
wifi: add a new "loading" state

Set wlan.driver.status to "loading" in wifi_load_driver to allow
external action being triggered by property change.

Change-Id: Ia4363de4c4e0e1a1c4759f5699fd5ea6e1bc3182
Merge remote-tracking branch 'cm/cm-10.1'
Primary output check for sonification is removed.

- When there are 3 different tracks (Ringtone, Music and Touchtone)
   the device switch happens for touchtones to primary if the primary
   output is active. This can lead to music being played in combo
   due to timing issue.
 - This is mainly because we have a check for, primary output if
   active we return true for SONIFICATION. This will set SONIFICATION
   for touch tones and this device switch will come after music device
   is set.
 - Hence music will start playing as SONIFICATION.
 - We have removed the primar output check for getting device strategy

Change-Id: Ibe2c381a887a49ea8b776fb2148f38b61532d021
CRs-Fixed: 456842
libhardware_legacy: Increase stream mute time

- Increase the stream mute time to avoid audio glitches
  while switching between combo devices.

Change-Id: I8b47e6e8b977b1025310fd2b16b452a6c11005bd
CRs-Fixed: 448577
Merge remote-tracking branch 'cm/cm-10.1'
audio policy: add EVRCB and EVRCWB audio formats

Needed to build MSM7x27a audio HAL

Change-Id: Ibb86d3ae6ec1ea7a82c26fb78e294ceaf984e8b9
audio_policy: Add EVRCB & EVRCWB formats for msm7x27a

Needed to compile audio hal from caf

Change-Id: Ibac3cf0b58de0bb6ee621e0498322318464492a0
Merge remote-tracking branch 'cm/cm-10.1'