camera: add power mode support

Based on commit 7036d66bec7697160ba1b2e255f1e7fae0c8c435 from CAF,
branch ics_chocolate.

Change-Id: I652d63c33db9a8da4a9f8f613be12877d032de37
Fix typo

Change-Id: I311f608d761987d0c714be9ab81188a3ca8eef61
Fix the build on non-QCOM

Change-Id: Idb8d5c98fbdc01e6063ad0eb224baba66acc813d
Merge pull request #5 from CyanogenMod/cm-10.1

Cm 10.1
audioflinger: Allow mixed use of JB A2DP HALs and ICS policy

Old policies don't address the modules by handle and expect them
all to be scanned for supported devices; new modules stopped
listing supported devices. The combination of a new A2DP with
an old policy left policy unable to find A2DP outputs, so the
new HALs couldn't be used.

So... if an old policy is in use, searching for an A2DP output,
and finds a non-primary HAL that doesn't list any device, assume
it's A2DP and use it.

Change-Id: Ie946c065b5c325afd02ba3437077f634e079b386
Merge pull request #6 from CyanogenMod/cm-10.1

audioflinger: Allow mixed use of JB A2DP HALs and ICS policy
Merge git://github.com/LiquidSmooth/android_frameworks_av into liquid-jb