ASoC: tegra: increase period count/size limits

Bug: 6643209
Signed-off-by: Glenn Kasten <gkasten@google.com>
Change-Id: I1bcc1631c08e6b76460805ff91a7710219b8e045
Compass:Fix magnetic raw data overflow after multiplying factory calibration gain
        which causes magnetic data unstable for application and sensor fusion.

Change data type short to int to avoid overflow.

Change-Id: I008c080f0485a39bc2cd75874f7489125588b4d8
Signed-off-by: sam_chen <sam_chen@asus.com>
Compass: fix Orientation accuracy gets low after suspend/resume.

Only load compass offset while init to avoid compass raw draft without any motion.

BUG ID 6673620

Change-Id: I13c0344c99db6e43065f77e09793d5a9dea96beb
Signed-off-by: sam_chen <sam_chen@asus.com>
Display: tune power on sequence to reduce flicker

Add 20ms sleep after pull high VDD 3.3V to stablize regulator
Reduce the flicker that screen lights up in two halves

BUG ID: 6653137

Change-Id: If36a85f6200da7f717ac577749404909358c4ea7
Sensors: Add an exception handling to kfifo to avoid buffer overflow.

With some cases, it will trigger the bug that kfifo buffer is overflow.
It may have the following two reasons:
1. One data unit is 24 bytes when we enable all three sensors.
   But it is danger 4096 is not fully dividable by 24.
2. kfifo is filled up data completely in some cases.
   So new data couldn't fill it in kfifo buffer and make sensors crazy.

ps. This patch is provided by Ge Gao, Invensense.

Change-Id: Ic2b560ac4dcd51905565c8c2648669e952e76ac1
ASoC: Tegra: check i2s fifo status before stopping.

Check for i2s fifo to get disabled before stopping playback. This
ensures that there is no data in audio cluster pipeline.

BUG ID:6652941

Change-Id: Icfba5421a8ef0070c48f1b67aec04ef067c1eece
Signed-off-by: sam_chen <sam_chen@asus.com>
enable multicast
Touch: Update touch firmware and notify power source

(i) Update firmware to B018.
(ii)Notify USB and AC power source to touch.

Change-Id: I2fa75448ac0ab547e1e4110a7563c967101ced3a
add cyanogenmod_grouper_defconfig

cped from tegra3_android_defconfig
grouper: add cifs module

Change-Id: Iac84f9a29accedd4da57c78036507925b658f5b4
USB: gadget: f_audio_source: Fix error handling and increase packet size

Fixes watchdog reset on USB disconnect
Larger packet size fixes performance in fullspeed mode

Signed-off-by: Mike Lockwood <lockwood@google.com>
USB: gadget: f_audio_source: Fix use after free in audio_unbind

When USB was disconnected, we were freeing our audio_dev struct in audio_unbind
before the audio system had cleaned up, resulting in a hang in audio_pcm_close.
We now statically allocate the audio_dev struct to avoid this problem.

Change-Id: I58ad21eaa20dcf4aa74ee614ef3b6ed2c91d52a1
Signed-off-by: Mike Lockwood <lockwood@google.com>
Add TI's PMIC power tree.

During board initialize, use PMU ID pin to select correctly power tree.

Change-Id: Iff35737cdf2cc389aef704c44c1aa1964871521f
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56775
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Tested-by: Sam hblee <Sam_hblee@asus.com>
upgarde PMU driver to 16r4.

Change-Id: I16a76629d23c4b0c1eead371309e300566d14ab6
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56809
Tested-by: Singhome Lee <singhome_lee@asus.com>
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
mfd: tps6591x: Implement proper power off sequence.

Implementing proper power off sequence.

bug 955418

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit c5211e853cbb31feecfdf9a748846467dacec608)

Change-Id: Id3efaebefbcbb1dee85bb47b56b20b9b6358f421
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56914
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
mfd: tps6591x: Avoid possible race condition

Add a delay to reflect regulator changes in HW

bug 955418

Change-Id: Id9b846b2a4d158b81c067c1e948712bc8a103e11
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56915
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
For power tree of TI PMU, sync the board-grouper-power-ti.c to board-cardhu-power.c

Change-Id: Idc18855561830c5b64d9585efe782c2c829eac53
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56919
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
To avoid warm reboot fail.

The shutdown function of TPS6591 will disable eMMC core power (LDO1),
it will cause warm booting fail.

Change-Id: I2b3ed26f6b5dcf32ec24f1245b342e827e2579ba
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/57195
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
Use the misc function to query PMIC ID.

Change-Id: Ia13e6ca5369b056b3987579f72af3ad0bbdf1750
remove "vdd" from fixed_reg_en_3v3_sys_supply.

Our Nakasi + TI circuit already give NCT a power supply which is alwasy enabled. We don't need
"vdd" from  fixed_reg_en_3v3_sys_supply.

Change-Id: I02b9bf6ee8ee1e2c28bc0a331bc8a9785c943b0e
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/57520
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>