Asoc: msm: 8064: Set channel number based on recording mode

The shared channel number can be overwritten by front-end
DAI's channel setting. Add fixup function to set the correct
channel number based on recording mode in the machine driver.

Signed-off-by: SathishKumar Mani <smani@codeaurora.org>
BUG-ID: 7313016
ASoC: wcd9310: force slimbus ports to disconnect during error cases

With shared data channel architecture, SLIMBUS driver
only removes slimbus channel when all clients vote to
have channel removed. In case of subsystem restart,
client such as MDM can go down without withdrawing
vote. During CODEC path shutdown, CODEC driver will
receive slimbus slave interrupt in time indicating
port disconnection because slimbus channel has not
be been voted off. Then, CODEC driver blindly
shutdown rest of CODEC path. This results in
overflow error on Rx path and underflow error on
Tx path. In case of time out waiting for port disconnect
interrupts to arrive, force ports to disconnect

Signed-off-by: SathishKumar Mani <smani@codeaurora.org>
BUG-ID: 7313016
mako: vibrator: clean up codes

remove unnessary codes and clean up.

Change-Id: I10d281f6cb1f7dc6cad2cac34bd276875cc50c0c
mako: vibrator: fix the unbalanced voting XO on/off and set gpiomux

It caused increasing the rock bottom current. If XO on is called twice and
XO off is called once, in that case XO clock couldn't be off. So voting
XO should be balanced.

And set the pwm mode when enabling vibtatior. In other case, set the gpio
mode. It prevents the current leakage by PWM. This is controlled by
gpio_requeset and gpio_free.

b/7242206

Change-Id: I8a6ce9b9beb9f981fb7e2db8c6510fa14478b13f
mako: camera: change the vcm_en for rev.1.1

GPIO 17 is used for WLC in Rev 1.1 or later. So we should change
the vcm_en

OLD             : PMIC8921 GPIO_17
Rev 1.1 or later: PMIC8921 GPIO_20 (GPIO_17 is used by WLC)

Change-Id: I2af9d06abe4f07313d46831ce67ee379ea1939e3
mako: power: wlc: support for rev1.1

There is gpio change in rev1.1 for wireless charger.
So this patch supports for both rev1.1 and others.

Change-Id: Id9c604509f500c23243823310835691d2375d328
msm: camera: increase the v4l2 event-queue size

Due to many SOF/REG and other event updates, some of the commands are dropping
off the queues. This patch increases the queue size to avoid this issue.

Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Revert "binder: Quiet binder"

This reverts commit 6764fd9f8a0d1cb1f9bbff4100fda0df6aeafafc.

Conflicts:

	drivers/staging/android/binder.c
Staging: android: binder: Add some missing binder_stat_br calls

Cached thread return errors, death notifications and new looper
requests were not included in the stats.

Change-Id: Iabe14b351b662d3f63009ecb3900f92fc3d72cc4
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Staging: android: binder: Add some tracepoints

Add tracepoints:
- ioctl entry and exit
- Main binder lock: lock, locked and unlock
- Command and return buffer opcodes
- Transaction: create and receive
- Transaction buffer: create and free
- Object and file descriptor transfer
- binder_update_page_range

Change-Id: Ib09ae78b0b8b75062325318e2307afd71b7c4458
Signed-off-by: Arve Hjønnevåg <arve@android.com>
sync: dump sync state of fence errors

Change-Id: I297a43aadf83504993040ea875c7f22d988628f1
Signed-off-by: Erik Gilling <konkers@android.com>
sync: update new fence status with sync_fence_signal_pt

If a fence's pt is signaled before sync_fence_create is called, the fence
will never transition into the signaled state.  This also address a tiny
race if a merged fence's pt after sync_fence_get_status checks it's status
and before fence->status is updated.

Change-Id: Ic8e292a323db26c6f04cb4757d920278b3125ff6
Signed-off-by: Erik Gilling <konkers@android.com>
sync: use proper barriers when waiting indefinitely

The previous fix only addressed waiting with a timeout.

Change-Id: I8ad735d2d0dfdd53592904e8a54f5689cb5eaa5e
Signed-off-by: Erik Gilling <konkers@android.com>
sync: refactor sync debug printing

Move driver callbacks to fill strings instead of using seq_files.  This
will allow those values to be used in a future tracepoint patch.

Change-Id: I9b706343e35b11124141fe520e520514a32003d2
Signed-off-by: Erik Gilling <konkers@android.com>
sw_sync: convert to new value_str debug ops

Change-Id: I9bad0cac1198043e04637641feb8112e2e7a9d11
Signed-off-by: Erik Gilling <konkers@android.com>
sync: add tracepoint support

Change-Id: I181326db4247009161557e45444c9b3548b83d25
Signed-off-by: Erik Gilling <konkers@android.com>
msm: mdp: Initialize vsync sysfs in probe

Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
audio: waking up when ear_sense gpio is detected for rev1.1

To wake up during phone sleep, wakeup variable is enable for rev1.1

Change-Id: I2cb1c4de7126eab5fc0f44235e306712b927d606
switch: fsa8008: use mic_bias_en only if gpio is valid

Some device might not use the mic_bias_en. So use mic_bias_en only if
gpio is valid.

Change-Id: I7f55a960191ed154d4cfdda7647d81c41653eced
mako: fsa8008: not use mic_bias_en in rev 1.0 or later

Old mako device used the external LDO, not pmic8921.
So it needed to control the external LDO by mic_bias_en.
Rev. 1.0 uses the pmic8921. So mic_bias_en is not needed anymore.

Change-Id: Idb3a1466e7e4d80641af3cd62ceb2e0dce4307e2