This fixes CYAN-4505 (Sound cuts out at low volume) [1].
One might think that the digital noise gate (DNG) is better left enabled to
reduce the static noise but in my tests, only the "payload" audio was cut off,
while the static continued. For me it seems that this feature of the sound chip
was not intended for use in a smartphone.
[1]: https://jira.cyanogenmod.org/browse/CYAN-4506.
Change-Id: I4e41c594695f85574ed35e2aef59d6b768403606
credits to CyanogenMods other device maintainers (saw it on hammerhead)
this fixes m4a playback on Google Play Music for example.
Signed off by Myself5, Carbon Rom i9100 Device Maintainer
Thanks to Scott B for guiding me to this fix.
Change-Id: If457524ab66de2c7e2c6f9de43345111ee08b3b8
This partially reverts commit 99d12c6a90,
we want to reuse some of it. The implementation appears to be fully
compatible with smdk4412's, so let's make this a common thing at
some point
Change-Id: I080484ad010f881a22a4486a6c082d0fbc17a529
* Enable video mode for camera
* Update sports scene name (Thanks to Mark Campbell-Smith <mcampbellsmith@gmail.com>)
The 'sports' scene mode has been renamed to 'action' scene mode
to match the 4.4 camera configuration
Change-Id: I453847256ad26197a90d44897844e78fe86732c1
* 4.4 introduces a new daemon, healthd, that handles battery status
- resides in: /system/core/healthd
- BatteryMonitor.cpp iterates through all the *directories* under
/sys/class/power_supply looking for a file called 'type'
- if the type == Battery, it assumes this is the location for the
battery stats for the device. Only the first directory that matches
this criteria is used.
- on msm8660/d2/jf/s2 kernels, this search results in:
/sys/class/power_supply/fuelgauge.
- To determine capacity, healthd looks at the contents of the
'capacity' file under this discovered base path. This results
in /sys/class/power_supply/fuelgauge/capacity on msm8660/d2/jf/s2
kernels.
- Unfortunately, this is the wrong path. The capacity file at this
location returns a large negative number.
- Other paths like status, voltage_now, and present are also
incorrectly determined.
* For comparison, in 4.3 battery statistics gathering was handled by
frameworks/base/services/jni/com_android_server_BatteryService.cpp
- BatteryService does a similar search for a file called 'type' with
the contents of 'Battery'
- But the search logic is different here: it takes the *last* path that
matches the criteria.
- This results in the correct /sys/class/power_supply/battery
* This patch overrides the discovery mechanism for battery status completely.
Change-Id: I4579c92bba5596eef4dac67b8c0687be50a1d2f5