audio/8655: Enabling LPA playback by adding AudioSessionOutLPA class

-AAC and MP3 clips are not playing in LPA path.
-Class AudioSessionOutLPA is not defined
-Define and implement AudioSessionOutLPA

Change-Id: Ie34c28d623d6c841bbddcbbe027317b0bd658660
Update copyright to The Linux Foundation

Change-Id: I0772c4c4bca4aaa5ee4537df6c1327fc10f3d29a
7x30 : Port heap mask change to ion

-mp3 clips fails to play intermittently.
-ION fails to register with the driver.
-Heap mask field passes as argument at allocation
time to specify ion heap.

CRs-Fixed: 444197

Change-Id: I35b7f162c906b856b7b4f5ee2270cd10256144bf
audio/msm7630: Add latency support for LPA

-Audio loss for few seconds on headset connection.
-Stream is unmute in checkDeviceMuteStrategies before device switch
occurs.
-Increase delay in tempMute to ensure unmuting happens after device
switch happens. Also change latency for LPA to correct value similar
to that of hpcm.

Change-Id: I539a4726f6b9d53bbfdc5f92a8801d5f14c360eb
CRs-Fixed: 448355
audio/msm7630: Fix for routing camcorded encoded clip audio to wired headset

-Audio not routing to wired headset while playing the camcorder encoded video clip.
-device is not updating and routing when stopInput is called.
-Obtain the available active device by calling getNewDevice() and route to that device.

Change-Id: I163de3ba3c9e1ca9e81263acf8395d6cebdf410a
CRs-fixed: 451142
audio/msm7630 : Stability issue with LPA play back.

- ANR is observed during LPA playback when there is song switch for
  every few seconds
- The song switch does not happen when the song is played till the end
- Native crashes are observed during rapid seek, next and previous
  song switch operations. There is some race condition between write and
  flush which results in adding a buffer multiple times to empty queue.
  This tries to free the buffer multiple times during reset and results
  in native crash. Fix this issue by adding proper mutex in write and
  flush calls which synchronizes these operations and avoids crashes.
  After Pausetimeout, reset is called due to which EOS is posted
  to observer. This results in start or reset operation on a closed
  sink leading to crashes. Avoid posting EOS if reset is already
  called.

Change-Id: Ie171d86f39fc4484710002c4940496dc90fbb05a
CRs-Fixed: 463272
msm7x30: Fixup ifdefs so LPA playback works

Change-Id: Ia389f2c3905ba5062933912150b856e3464c2e13