sound: add sound control to increase headphones, speaker and mic gain.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
disabled: faux sound control
msm: mdss: add support to validate pixel extension calculations

If a layer needs a scaling than its pixel extension values are calculated
in the user-space library and passed down to driver. Currently driver
blindly programs these settings to HW without validating for correctness.
This leads to HW hangs and stability issues. Add a proper sanitization
checks for pixel extension and report error back to user-space if any.

Change-Id: I086cf0b23fbccd37a23bb509f067bffdf396c247
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>

msm: mdss: fix bug for validating pixel extension calculations

While validating pixel extension calculations from user space,
validate the over fetch pixels with image dimentions in both
horizontal and vertical directions.

Change-Id: I8e39e89d9ace8e26237b3b23ca375456abd804a1
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
msm8974: Update defconfigs for Bacon/Find7

 * Reenable a couple of things we need.

Change-Id: I04a3d6f84aa8d9cc50e055d94a8c7fc70cb98ed2
Revert "msm: mdss: send DCS commands in LP mode by default"

This reverts commit b1824982f98457af6e0543433c8c4a69f7f34d4e.

Change-Id: I961f2ad08c852bba1b2bde6278fdebb2d4d34e44
drivers/mmc/core/core.c disable crc for better performance
VM: lowered latecy to reduce lag
dts: msm8974ac: GPU overclocking to 688MHz
sound: add sound control to increase headphones, speaker and mic gain.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit b285888d953a72a05fdd9ac609d9bcf3f77ccef6)
Revert "sound control: WCD9320: update speaker gain control for Z1"

This reverts commit 2290a2b25ab23a5979b1b93da6a4a6fd05733ad0.
Revert "sound control 3.x: Initial GPL release for WCD9320 Audio Codec"

This reverts commit 1f9b45708e4950c09bcd4fd9bc1b5bd587fed653.
Revert "Sound Control: WCD9320: expose additional controls"

This reverts commit 4143f45e7194cfdee268d81a86646cdd4f211818.
sound: add sound control to increase headphones, speaker and mic gain.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
sound_control: clean the code

* proper 80-char indentation
* add module_exit
* clean up the store functions using proper and modern kstroul
* use unsigned boost vars since we're not accepting negative
values anymore
* remove that stupid and useless version define
sound: wcd9320: tidy up things a little bit. Only accept signed values from now on. The 'headset gain' will only be used to remove some gain noise, increasing it beyond 1 step above the default doesn't make a difference so rather just have it decrease the gain.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
sound: wcd9320: implement separate locks to prevent derps

* playback, speaker and record locks only to the changed
register values, we don't need the locks to go through other
registers
* this fixes a bug where a user adjusted the headphones gain
and speaker and/or mic would stop working because the lock was
enabled and the switch case would return earlier than it should
* qualcomm, up yours

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>