msm8960_adp_defconfig: Adding netfilter configs and associated data config

Required to bring up data functionality.

CRs-Fixed: 663830
Change-Id: I9b272ebff58e470cb9b07bed467efd2219961e15
Signed-off-by: Harout Hedeshian <harouth@codeaurora.org>
ASoC: msm: Add PCM loopback device entry for APQ8064

Add device entry for PCM loopback in APQ8064 to support the use case
that audio is loopback from ASM.

Change-Id: I4ca845ec8ea4a6685f4d00e1949b42ebaa0a4379
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
ASOC: msm: Enable volume mixer for hfp

Enable volume mixer for HFP in afe loopback for audio
TX from AUX PCM interface.

Change-Id: I75e988266bd692d6d637a8f393c87b9ce25fa72b
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
ASoC: msm: Update to support for new ASM loopback API

Add the support to new ASM loopback which can support different
audio sample bit width.

Change-Id: Id11923b5204def69cb66270fefc0e405233b9781
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
ASoC: msm: Add routing for HFP using AFE and ASM Loopback

HFP hostless driver is used to loopback BT data into
I2S interfaces. And asm loopback MM6 is used for looping
data from mic to BT so that pre_proc effects can be
added.

Change-Id: I03bb5f7a4edf3bcbeeac6501136ff1eb5c3f9195
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
Merge "ASoC: msm: Add PCM loopback device entry for APQ8064"
Merge "ASOC: msm: Enable volume mixer for hfp"
Merge "ASoC: msm: Update to support for new ASM loopback API"
Merge "ASoC: msm: Add routing for HFP using AFE and ASM Loopback"
msm: vfe: check for null sensor control

Add null check to make sure that the sensor control data is intialized
before it is accessed by the vfe.

Change-Id: Ic9bfc193a1791626d5c7ac956ac3f900c73756fb
Signed-off-by: Joveen Joseph Thomas <joveenthomas@codeaurora.org>
ASoC: apq8064-auto: Add support for HFP

Add HFP support for AFE and ASM loopbacks by adding the audio Frond
End HFP related Dais to audio DAI links.

Change-Id: I78693bfd444c11834279e2cbbebaf094cb125475
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
Merge "msm: vfe: check for null sensor control"
Merge "ASoC: apq8064-auto: Add support for HFP"
ASoC: dapm: Disable dapm runtime update

Disable the dapm runtime update to prevent the active widget
disabled by the update.

Change-Id: Ifbe08e259938b4e88f9e449f17c4b46a0f3a1efd
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
Merge "msm8960_adp_defconfig: Adding netfilter configs and associated data config"
Merge "ASoC: dapm: Disable dapm runtime update"
n_tty: Fix n_tty_write crash when echoing in raw mode

The tty atomic_write_lock does not provide an exclusion guarantee for
the tty driver if the termios settings are LECHO & !OPOST. And since
it is unexpected and not allowed to call TTY buffer helpers like
tty_insert_flip_string concurrently, this may lead to crashes when
concurrect writers call pty_write. In that case the following two
writers:
* the ECHOing from a workqueue and
* pty_write from the process
race and can overflow the corresponding TTY buffer like follows.

If we look into tty_insert_flip_string_fixed_flag, there is:
  int space = __tty_buffer_request_room(port, goal, flags);
  struct tty_buffer *tb = port->buf.tail;
  ...
  memcpy(char_buf_ptr(tb, tb->used), chars, space);
  ...
  tb->used += space;

so the race of the two can result in something like this:
          A                             B
   __tty_buffer_request_room
                                  __tty_buffer_request_room
   memcpy(buf(tb->used), ...)
   tb->used += space;
                                 memcpy(buf(tb->used), ...) ->BOOM

B's memcpy is past the tty_buffer due to the previous A's tb->used
increment.

Since the N_TTY line discipline input processing can output
concurrently with a tty write, obtain the N_TTY ldisc output_lock to
serialize echo output with normal tty writes. This ensures the tty
buffer helper tty_insert_flip_string is not called concurrently and
everything is fine.

Note that this is nicely reproducible by an ordinary user using
forkpty and some setup around that (raw termios + ECHO). And it is
present in kernels at least after commit
d945cb9cce20ac7143c2de8d88b187f62db99bdc (pty: Rework the pty layer to
use the normal buffering logic) in 2.6.31-rc3.

js: add more info to the commit log
js: switch to bool
js: lock unconditionally
js: lock only the tty->ops->write call

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I9e235db6ec2bb950f26bd8a23f6145dab5dc0a15
Git-commit: 4291086b1f081b869c6d79e5b7441633dc3ace00
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Avijit Kanti Das <avijitnsec@codeaurora.org>
[rsiddoji@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Ravi Kumar S <rsiddoji@codeaurora.org>
Merge "n_tty: Fix n_tty_write crash when echoing in raw mode"
msm: board-8064: HFP support for adp-m platform

Configure adp-m platform to enable HFP.

Change-Id: I7ee21f8422575c995c78b1211dac3f55d27eea16
Signed-off-by: Joveen Joseph Thomas <joveenthomas@codeaurora.org>
msm: board-apq8064: Add audio support for m-platform

Add audio support for m-platform to enable AUX PCM and
MI2S RX device.

Change-Id: I85cd0837451f294a59d5b27aed9b9c2428d3bf1e
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>