ASoC: msm: reduce period_bytes_min for voice call

- Allow smaller buffer size for voice call to
  comply with MR1 audio HAL

Change-Id: Iaffca753ad07889b08ae4b6154e8d596950a979e
Signed-off-by: Mingming Yin <mingming@codeaurora.org>
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

Change-Id: Ia6c65bf9560f2944b9e5f065cfcd1526e30efb68
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>
mfd: pm8xxx-irq: mask non requested interrupt

When a non requested interrupt triggers, the genirq ends up calling
mask or mask_ack callback. This callback is expected to mask that
interrupt so it doesn't trigger us further.

There is a bug in the pm8xxx-irq driver where config[] entry for an
unrequested irq remains empty. So the mask or the mask_ack callback
ends up masking 0th interrupt.

Fix the mask and mask_ack callback to check if config[] is empty, if
so fill it in right then and mask the irq.

CRs-Fixed: 345691
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
(cherry picked from commit 9d10de3ef36e2e649f032b2bfffec7b5b01b8655)

Change-Id: If39defd23ef73911e690f556bc225ae9c80662c9
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
kernel: reduce sleep duration in wait_task_inactive

Sleeping for an entire tick adds unnecessary latency to
hotplugging a cpu (cpu_up).

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
(cherry picked from commit 099aa69b9cfb6f4c5b56dd1d1d06ce9ef92cf2d5)

Change-Id: Ic3dd51cb4d5b9acdc1ee3270e87d8ff0cc2e8287
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm: qdsp5v2: Fix for noise issue during VOIP call

Driver discards the downlink packets when input queue is full.
Added code to block processing of downlink packets in the write()
till a input queue free slot is available for write.

(Taken from ICS Change-Id: I1198d9d9a98f27d3bd74a7e2fef647373e6d56cf)

Change-Id: Iffa54c378725147d0a9716e902d35ce9ce3f9dae
Signed-off-by: Shashi Kumar <sulege@codeaurora.org>
framebuffer: add a pollable sysfs entry for display status

Wakeup the userspace poll on change of display status. The
userspace then may take action to change the
power/performance characteristics of the device.

Change-Id: I9bd11f3d895d3d83230104f5d8dcd1deeaa754cd
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
htc: remove 35mm bitmask @Kali-

this is an ugly hack needed to get headset recognized by f/b
as on ICS HeadsetObserver was converted to a more generic
WiredAccessoryObserver and do not like the htc 35mm bitmask

Change-Id: I97871da1430e54bae607ec639072f1c1c73bc0b5