ASoC: msm: qdsp6v2: extra low latency mode change for audio capture

For low latency audio capture sessions adm should be opened
in low latency mode. This change checks for low latency
mode and passes the info to ADM.

Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
Reduce min capture period size from 320 to 64

Change-Id: I8d6ed9d06e49561e9a9db51940b997f321a1ae87
Signed-off-by: Dan Trifan <jimsth@gmail.com>
msm: camera: Directly use stride from buffer_plane_info

stride is already in the unit of bytes. Just need to convert
it to units of 64-bit words.

Bug: 14395767
Change-Id: I57960371911c492cab7d5ca5f710ca0f16572d77
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>

Signed-off-by: Dan Trifan <jimsth@gmail.com>
arm/dt: msm8974: Enable Microphone Activity Detection

Add Microphone Activity Detection(MAD)'s slimbus device ID and configure
MCLK as a supply of MAD to add MAD support.

Reference CAF commit: 43a3f2d086f6f37acc91fc96cf6d4e887da880d7

Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
video: slimport: Fix the case of TV power off

When slimport is connected and TV is off.
slimport will keep seeking for hdmi connection and not notify it.
For the case of this, when connection lost,
Call power down and init, to initialize and wait for connection

Change-Id: I9bbf8b82d77ee69fb758adf8f1805fc88f17700a
Signed-off-by: Se Hun Kim <sean2.kim@lge.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
video: slimport: Fix unblanced IRQ enable

If irq_enabled is set again, it causes the unblanced IRQ enable problem and
slimport would be not working properly. So if irq_enabled is set again,
In order to fix the problem, disable the irq and initialize the flags.

Change-Id: I27ad8ae7d553e515e15dd87744c221dbbb3a0717
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
video: slimport: Set/clear sp_tx_pd_mode in the power control function

sp_tx_pd_mode is the flag if tx power is down or not. So it should be
controlled in the power control function.

Change-Id: I394acbd6c6125dce8725aa81193b7be2abdf47b0
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
msm: mdss: hdmi: Ensure the audio has completed its processing

Before hdmi tx core is off, the audio should be completed its processing.

Change-Id: Ida370027fdcbf88fcbe6bc4ae9c2a48a5476e096
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
video: slimport: Do not access the sp registers after power down

The burst i2c errors sometimes causes a watchdog reset. The i2c errors
are caused by accessing the sp registers after SP is power down. So
do not access the sp register after power down to avoid the watchdog reset.

Change-Id: If64b0bf6f437292f356fa165d4203d522c26cfe6
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>