Asoc: codec: rt5640: increase lineout output gain +1.875dB for B-dock sample.

1.where measure result:
  Vrms:0.242 V
  Vp-p:0.724 V

Change-Id: I3e17671bebe0fea0e5a64d3b287e7c86a29ab7c1
Revert "Asoc: codec: rt5640: increase lineout output gain +1.875dB for B-dock sample."

This reverts commit 273ea66a1a14f9b5c454a0ff8c2e8bdd22ee80b7

Change-Id: I9cb92323299d17806aed5439ccf9c3c6798bce59
arm: tegra: grouper: Increase MC_EMEM_ARB_OUTSTANDING_REQ to resolve underflow in low emc freq.

New outstanding request is updated in the emc dvfs table:
* 25.5Mhz: 20
* 51Mhz: 20
* 102Mhz: 30

Bug 1057414

Change-Id: I4d72b0db586ad99d6a6758737d87b3f68e6a47c4
Signed-off-by: Haley Teng <hteng@nvidia.com>
drivers: usb: core: reduce the resume time for HSIC controller.

Change-Id: If7123e444410babd4a04abeaf471098dfb026db1
arch: arm: xmm: repeat to push the crash pin and force to change the crash mode.

Change-Id: I04b6ae83efe8a99baefe20e2a623731fbfb8bb7d
bluesleep: implement to support bluedroid

"#define BT_BLUEDROID_SUPPORT 1" -> support BlueDroid
"#define BT_BLUEDROID_SUPPORT 0" -> support BlueZ

Since BlueDroid does not use kernel space HCI driver now, we add the
below 2 /proc nodes to make BlueDroid able to send HCI events to
bluesleep driver.

write 1 to /proc/bluetooth/sleep/lpm -> equivalent to HCI_DEV_REG event
write 0 to /proc/bluetooth/sleep/lpm -> equivalent to HCI_DEV_UNREG event
write 1 to /proc/bluetooth/sleep/btwrite -> equivalent to HCI_DEV_WRITE event

Signed-off-by: Haley Teng <hteng@nvidia.com>
arm: tegra: grouper: setup uart_c as bluetooth uart port for bluesleep

Signed-off-by: Haley Teng <hteng@nvidia.com>
Power on/off sequence tuning for Himax T-con IC

Change-Id: I908e0b1233f4951c92d49b952a94f9e285c24424
SoC: tegra: headset: fix speaker silent issue after inserting and removing headset rapidly.

Speaker could get silent if insert and remove headphone rapidly,
or even just normally insert and remove headphone during system suspend.

The "AUX" and "speaker" dapm mixer control was for dock function but causes such issue,
now remove them from kernel and redesign in HAL to satisfy both audio and dock functions.

Bug: 7388692
Change-Id: Iaa2dc40575ee3a6c9ddcd49f5dd1a92e94c20655
Signed-off-by: able_liao <able_liao@asus.com>
Sensors: Fix an improper type definition when loading compass gain.

To load compass gain with a correct type, we should fix it to 'int'.
This should be common fix but partial related to bug 7355959.

Bug: 7355959

Change-Id: I3514618a47cedd5354d1d4b26d30a8026e02e6f3
7377546 Add dock switch device to support daydream mode.

Nakasi should start Sleep Mode / Dream when placed in Dock

Change-Id: I7545377b7a4e5e6d52d0208af6ac3f7bb2fd86e3
Revert "7377546 Add dock switch device to support daydream mode."

This reverts commit e8ee95ced1d5d7cff90074589066b6f82145342b.

Change-Id: I12f7deb0eab18b712ff0cdb1c3274a23664c5c9d
Revert "ASoC: codec: rt5640: change lineout route to output mixer and set path gain to -1.875dB."

This reverts commit 2a6888f052b9fdcadbc6ea13415f35ce5caa9dbc.

Change-Id: Idcf6de88a3789210336d6cf3f3519d2d0fa7aa98
ASoC: tegra: headset: improve dock switch code

Remove all audio routing and use two switch devices
to signal userspace of dock changes. Routing can
then be done in userspace for the dock.

Change-Id: Id73a5ea6754a780897bc23aec02157749a3a5fd6
Signed-off-by: Simon Wilson <simonwilson@google.com>
Sensors: Revise compass compensation mechanism to fix non-linear issue.

Revise the equation of compass compensation to
make the data moving curve more linear when rotating.
This fixes that the Orientation data variation doesn't match the degrees
that the device actually has been rotated.

Bug: 7395562
Change-Id: Ib628920066adc8250e901a40e69ee5fc2364298c
Fix al3010 power on fail in late_resume function

When interval time is too short between al3101_early_suspend() and al3010_late_resume().
It will cause driver fail to set power on. So , add 5ms delay to fix this issue.

Change-Id: I2523b41384b47cbb23100fdf7f451f54bdeaed19
net: wireless: bcmdhd: Fix BSSID report for disassoc

Change-Id: I5e3b01a1a471e5983ab934fc9d65802a389ab1af
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Fix WD wakelock behavior

Change-Id: I7ebae2be248cbb4bc98e2b448641f65b77a320f4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Conflicts:

	drivers/net/wireless/bcmdhd/dhd_linux.c
net: wireless: bcmdhd: Prevent HT Avail timeout to frozen deice while asleep.

Change-Id: I6ccd035539a3a3074b7ff1e06854ce396d784fc4
kernel/sys.c: fix stack memory content leak via UNAME26

Calling uname() with the UNAME26 personality set allows a leak of kernel
stack contents.  This fixes it by defensively calculating the length of
copy_to_user() call, making the len argument unsigned, and initializing
the stack buffer to zero (now technically unneeded, but hey, overkill).

CVE-2012-0957

Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: PaX Team <pageexec@freemail.hu>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>