ASoC: OMAP: HDMI: Defer audio transfer start

Defer audio transfer after HDMI AUDIO wrapper is enabled.
If audio transmit was started along with audio wrapper enabling,
spurious data (zeros) was sent at the beginning of the transfer
as part of the of audio sample packets, due an AUDIO FIFO UNDERFLOW,
which was shifting audio channels.

Change-Id: I48d8c02c0467dd3158ac748eb0720173d3b209ca
Signed-off-by: Axel Castaneda Gonzalez <x0055901@ti.com>
(cherry picked from commit f51c66d7d95c8188658973e29b1607b1fed4a52b)
gpu: pvr: Update to DDK 1.8@873556

 - Allow SGX compositions requiring implicit synchronization to correctly
   synchronize with more than 8 buffers. This feature has been tested
   with 16 buffers.
 - Enable kernel driver to decode SGX firmware status codes.
   Fixes http://b/6168368

Change-Id: I047b35d5a7f6ddf3e6fd6af5130cce1207499e25
(cherry picked from commit e3dd212d367f2e3f42fbf00d7da95d7f94f6cc76)
gpu: pvr: Update to DDK 1.8@900138.

 - Fixed "XPROC workaround in a bad state" messages, issue
   http://b/5806132.
 - Fixed missing GPL header in sgx_ukernel_status_codes.h.

Change-Id: I0f09634f0ac3cbc2fcacee81a79c3e28b67aea9e
(cherry picked from commit bdaa4b6bd2dac47ddadcae0d24cd0c88b6eb6ffd)
drivers: mhl: Add routines for cbus error interrupts

MHL driver only warns when it gets cbus error interrupts
(e.g, ddc abort,response abort or request abort error).

Adding routines to handle these error interrupts in
more appropriate way.

Change-Id: Id38b110491392b1d59b3570c82a62bf2009d4dd7
Signed-off-by: Dharam Kumar <dharam.kr@samsung.com>
(cherry picked from commit 52d772c27114c84792afc02febfa0b65e7cbf84b)
drivers: mhl: support additional cbus commands

- Added CBUS interrupt & status register offsets(used by CBUS
  commands). Refer Table 18 in PRM or Table 7-20 in MHL Specs 1.1

- list of cbus commands[MHL Specs 1.1, Table 7.3]

- modified existing sii9234_msc_event function to perform SET_INT,
  WRITE_STAT, READ_DEVCAP etc.

Change-Id: If116484294630b45c5aa513f7381b5219dace889
Signed-off-by: Dharam Kumar <dharam.kr@samsung.com>
(cherry picked from commit 15bf0da4cf3eca7d279b7a51bc488f3c5ded020e)
drivers: mhl: add link_mode flag and handle PATH_EN changes

Please refer MHL 1.1 specs[section 7.8.3.2].

What this patch does:
"On detection of the Sink writing PATH_EN{SINK} = 1,Source
should write PATH_EN{SOURCE} = 1. On detection of the Sink
writing PATH_EN{SINK} = 0, the source shall write PATH_EN{SOURCE} = 0."

TODO:
"Source may only enable its TMDS output after the sink writes PATH_EN{SINK} = 1
and shall disable its TMDS output after the sink writes PATH_EN{SINK} = 0".
Currently, we are not disabling the TMDS output on the basis of
PATH_EN{SINK} changes.

Change-Id: I5f03de6d721485fc7ed443328c8e5714099e3e18
Signed-off-by: Dharam Kumar <dharam.kr@samsung.com>
(cherry picked from commit f3dbeac4c287169ea6b826094c880949b50ad9c5)
drivers: mhl: handling glitch in RSEN

As per MHL specs 1.1, Source should be able to
handle glitch in RSEN signal.

Hence,when we see RSEN as low,we are sleeping for
DEGLITCH time period, If RSEN stays low even after
DEGLITCH time, then disconnection routines should be called.

Change-Id: Id8624d41cb60cc3a192581930ca322ad87fb14fd
Signed-off-by: Dharam Kumar <dharam.kr@samsung.com>
(cherry picked from commit 2daf80c8ca247f7dff2647079e07e2b94a5ad240)
drivers: mhl: retry detection if discovery process fails

"On failed completion of the wake sequence and discovery pulse
process, a Source should reattempt discovery by re-checking
impedance for proper CBUS discovery and then preceding through
the states to retry the discovery pulse process.

This loop of states should be repeated - reattempting discovery
using wake and discovery pulse sequences - multiple times
for as long as the Source requirement for discovery persists."
[MHL Specs 1.1 , Notes on Table 8-4]

Change-Id: Icfb5b9783e91a784d67b3f44f4c9b5135604356a
Signed-off-by: Dharam Kumar <dharam.kr@samsung.com>
(cherry picked from commit 3d553490678a1391ded2a513d00e5d9e38e80564)
sii9234: delegate all devcap reads to msc helper thread

Detection callback now schedules an artificial DEVCAP_READ event instead
of directly issuing devcap read.  Prevents deadlock when detection
callback tries to read devcap while msc helper is servicing requests.

Change-Id: If82cde6be89ffc550ecd22d5cd17981835fc9d05
Signed-off-by: Greg Hackmann <ghackmann@google.com>
(cherry picked from commit d02a6db4497db5be864f49a2f17552dfd28f665c)