gpu: msm: remove device-specific adreno directory
video: msm: remove msm_8x60 directory
include: linux: msm_vidc_enc: revert HTC's weird pbuffer definition
genlock: undo HTC genlock changes
various: compilation fixes for gcc 4.6

These changes are required to compile successfully with
gcc version 4.6.

The -Wno-address option is applied to some files to
bypass a warning triggered by an rcu macro. The
warning is fixed cleanly upstream, but that fix is too
risky to backport, so it is better to just silence it
this way.

Change-Id: I787ad2db6e649d29874b7b624c2b28f686236466
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-8930.c
	arch/arm/mach-msm/scm.c
various: fix warnings for kernel compile

These changes suppress or fix warnings, in particular
-Wno-cpp, -Wenum-compare, -Wunused-value
arm: Allow CPU-supported unaligned accesses

This change reconfigures the CPU to allow CPU-supported aligned
accesses, which are generally faster than software-only fixups,
resulting in fewer alignment exceptions.

Signed-off-by: Brent DeGraaf <bdegraaf@codeaurora.org>
msm: acpuclock-8960: allow 192MHz minimum voltage
drivers: usb: reset USB drivers back to CAF

Undo HTC changes to the Android USB gadget driver, reset back to CAF at
initial import of HTC drivers. This brings Android USB gadget driver
back in line with CAF at commit id:
8987911c69d7e3e79da6f9b53d733d7d74f20775
"msm: video: Update macros to use readl/writel".
usb: core: remove dangling reference to undefined variable
base: genlock: Use a signed long for the result from wait_timeout

interruptible_wait_timeout returns a signed long, so make sure that
we use a signed long to hold the result. Using an unsigned value would
horribly misinterpet an error such as -ERESTARTSYS.

CRs-Fixed: 341347
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
(cherry picked from commit be669bc92358653a46c63f2352e6d981f9ed3bdf)

Change-Id: Ifcf555f8719f9c74fdb6d8b5cf2a32582988335b
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
base: genlock: allow synchronization with a single gralloc handle

In order to support synchronization in a process with a single
gralloc handle we require the ability to write lock a buffer
while it is already read locked by the same handle. This change
extends the concept of an exclusive write lock or recursive read
locks to a genlock handle (rather than the genlock lock).
Genlock cannot provide deadlock protection because the same
handle can be used simultaneously by a producer and consumer.
In practice an error will still be generated when the timeout
expires.

CRs-fixed: 356263

Signed-off-by: Jeff Boody <jboody@codeaurora.org>
(cherry picked from commit 6d9076fe46bcba71986a25cf357e71a4d83958c1)

Change-Id: I5d02591586023f4b622915522e2e038c16c9f2f2
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
base: genlock: remove BIT macro usage

The BIT macro is not defined for !_KERNEL_ resulting in compile errors.

CRs-fixed: 356263
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
(cherry picked from commit 0977510e0f72b2f1a24f41d5154c2f1b80c96d9a)

Change-Id: Iaf188a1af838c98ca30ce216d7be8ddf85db700c
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
base: genlock: protect kref counting with spinlock

A race condition exists where the attach may not kref_get
before the kref_put finished. The genlock_file_lock was
originally added to protect against this case however it
was not protecting the kref.

CRs-fixed: 359649
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
(cherry picked from commit d6f534fc51eb5fc23d08dacceecd42a4b98747a6)

Change-Id: I4115ea1cc39ebe38ad0032ebf86871ac9d23a312
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
base: genlock: add magic to protect attach from non-genlock file

It is possible for user space to attempt to attach a valid fd that
does not correspond to a genlock file. This change adds a magic to
the kernel private data that is used for validation.

CRs-fixed: 359649
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
(cherry picked from commit 507a9d3354b24e7cc7f22e9695339de6df317fc1)

Change-Id: Ice93bfc904f61431688f03027a4090ceb7b9289a
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm-pcm-lpa: 8960: Issue EOS to DSP after playback is complete

Issue an EOS command to ensure that dsp is completely flushed
before closing the stream. This command is only issued if the
the routing is still enabled.

Change-Id: Id36f2b1a2e5e3fef5dcde759277f3ca4417c17e7
CRs-Fixed: 331532
Signed-off-by: Tejas Shikhare <tshikhar@codeaurora.org>
(cherry picked from commit 6fd0e00adcfe46b5b6a82d215e39a70e7b9af612)

Conflicts:
	sound/soc/msm/msm-pcm-lpa.c
	sound/soc/msm/msm-pcm-routing.c
	sound/soc/msm/msm-pcm-routing.h
ASoC: msm: Add HDMI hostless front end driver

Add ALSA HDMI hostless front end driver. It is used to configure
AFE to route audio sample from mic input to HDMI output. It is used
for internal loopback, where HOST doesn't send audio sample to the DSP.

Change-Id: I07020075a456795a632be5901c47e3f114a9f534
Signed-off-by: Alex Wong <waiw@codeaurora.org>
(cherry picked from commit b3d06a032fccae8198173d3ff9472fbcf77e6e5b)
ASoC: msm: add AUXPCM hostless PCM support

There are use cases that require AUXPCM ports to be
enabld without application processor feeding
or capturing audio data. Add routing definition to
enable these type of use cases on AUXPCM ports.

Change-Id: If5d80df55e37f67cbab7f8b8e826a50908b87b0b
Signed-off-by: Patrick Lai <plai@codeaurora.org>
(cherry picked from commit e66c31a738dfe62cdb5b16201f56afc07a62d53e)
ASoC: msm8960: enable AUXPCM hostless PCM

Enable use cases that only require AUXPCM ports to be enabled
without further intervention of application processor in term
of feeding or capturing audio data.

Change-Id: I4b503df26b3f78d9bfea0e02e0e602d5f0176fc8
Signed-off-by: Patrick Lai <plai@codeaurora.org>
(cherry picked from commit 9b56e1da35e2e9735ea351c835a6e1817e652e32)
ASoC: msm: 8960: Add routing controls for AUX PCM loopback.

Add port Mixer to route from AUX PCM TX port to AUX PCM RX in
order to support loopback from TX to RX on AUX PCM Interface

Change-Id: I364bfecca7342c9f358c048b4a6b3e6799f349f0
Signed-off-by: Patrick Lai <plai@codeaurora.org>
(cherry picked from commit 897baf9ab7dc56fd0bdced28c545a703c4a9a5bb)