msm: audio: qdsp6v2: Implement tunnel mode support in mp3 driver

Enable tunnel mode support in mp3 driver.

Signed-off-by: Karthik Reddy Katta <akkatta@codeaurora.org>
(cherry picked from commit 1f4349f5f3e6adba073ed82bd35d7154020d5db4)

Change-Id: I43b30a35a61de7417f390017fb0f2114abeb976e
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: audio: qdsp6v2: Fix noise in Tunnel mode Mp3/AAC audio playback

Modify the async_write API to send Encode bitstream buffer address
for non-tunnel mode with skipping meta data. And for tunnel mode
buffer address remains same as there is no meta data for
Tunnel mode and is sent to DSP without any change in this value.

CRs-Fixed: 355368
Signed-off-by: Karthik Reddy Katta <akkatta@codeaurora.org>
(cherry picked from commit 6f09ac97f762ff08f519ab4555c33efbf5501136)

Change-Id: Ia08604d0af1afa84e98c77c73111de689663fb75
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm: audio: qdsp6v2: PCM Encoder is configured to native channel count

Impact:
When the content switches from 5.1 channels to mono. Noise is heard
in one of the channels.

Problem:
At the start of the playback, number of output channels of PCM
Encoder is configured to 2 when the number of channels in the input
stream are greater than 2. This is done to confine maximum output
channels from PCM encoder to 2.

Change:
Modify output channel configuration of PCM encoder to native
channel count as Q6 decoder takes care for converting channel count
to 2 for the clips with channel count greater than 2.

CRs-Fixed: 344426
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
(cherry picked from commit 6b52ecef596c0d318191051179d727880e774bbd)

Change-Id: Id77e123f24820d0dbbad05adc3d3f08780d65c3e
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: qdsp6v2: Reduce the step size of soft volume and soft pause.

With current step size, as there is raise in amplitude levels
abruptly, quality issues are observed. Reduce the step size to
zero to improve the performance.

CRs-fixed: 360715
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
(cherry picked from commit 623b593810a7c7954d8ef45a5f79bc862b8ac066)

Change-Id: Ib2c3d7972d99450c10b617a81fbd020e0b2b0389
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
net: wireless: bcmdhd: Add FW reloading in case of FW hang

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Decrease event wake_lock timeout to 1500 ms

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Fake PNO event to wake up the wpa_supplicant

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Add WIPHY_FLAG_SUPPORTS_FW_ROAM flag

Adding this flag will allow NL80211_ATTR_ROAM_SUPPORT, and will set
  WPA_DRIVER_FLAGS_BSS_SELECTION flag in wpa_supplicant

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Turn interface down (only) in case of FW crash

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Always turn Off wlan power on interface down

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Fix WARN_ON(!res->pub.channel)

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Init locks in dhd_attach() at the beginning

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Merge remote-tracking branch 'kali/android-msm-3.0' into android-msm-3.0-jb
msm: rotator: Call S/W reset on AXI bus error interrupts

Call Rotator S/W Reset when AXI bus error interrupts are
seen during a rotate request

CRs-fixed: 341947
Change-Id: Iab64a79829ca93019cfd54505014ed168cf74464
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
(cherry picked from commit 30cf3eba95df9c6bf90f77b7f4ce40307d106e5d)
msm_fb: hdmi: Disable 1.1_FEATURE

Some displays support Enhanced Link Verfications(1.1_FEATURE)
which makes HDMI Tx to verify Pj on every 16th frame. Three
consecutive Pj mismatch will result in HDCP authentication
failure. If 1.1_FEATURE is supported(this can be detected by
reading BCAPS), it needs to be enabled by writing into AInfo
of display. Default is disbaled.
This change sets HDMI Tx core to disable 1.1_FEATURE by
default so that we don't see Pj mismatch error unless the
feature is enabled.

CRs-fixed: 348752
Change-Id: I996f60b852a7e867e8e13e700beecbac8190a59e
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
(cherry picked from commit 97e2fcf862d913feff157f536ee14cfc5f3197f7)
(cherry picked from commit 88cb4da47697fe407b013554678ec68d7c8ab93c)

Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>
msm_fb: HDMI: Do not add HDCP reauth timer during probe

Currently all HDMI/HDCP timers are initialized in the driver's
probe function with a maximum possible expiration value. However,
the 32-bit jiffies value is initialized in the kernel so as to
wrap 5 minutes after boot. This results in the HDCP timer being
fired 5 minutes after boot even though reauthentication is not
necessary. This change fixes this issue by not starting the HDCP
reauth timer during probe. The timer is only started when an
authentication failure is detected from an existing valid HDCP
session.

CRs-Fixed: 352080
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
(cherry picked from commit ca15287e50fe00dd6526fdc166cb526298099fb2)

Change-Id: Ia3e240c3c0c32b6ef9fa2c58e48a5cadb64791b8
Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>
(cherry picked from commit b44b96003a28d22433731b7d53db57cc5641a052)
Revert "msm_fb: display: increase wfd resolution to 1080p"

This reverts commit f2abd6b55de48bb46e3b5690e463679aea87ba49.

Change-Id: I187b23555f698ab7ca5d2627d1a2937c212597d7
CRs-Fixed: 357690
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
(cherry picked from commit 3c9717a6ed26a8e85466712c75302a1903063675)
(cherry picked from commit 65c1d256e0a8308df3e56f42b3d24ccc802ea4a0)
msm_fb: display: Call footswitch control from overlay dtv on/off

Instead of dtv on and off, call footswitch control during
overlay dtv timing generator on and off calls

Change-Id: I186955d9c6b07608e77b599c23d9a6593faba6e3
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm: display: Add proper flags for secure/non-secure writeback buffers

For MDP writeback buffer allocations, use appropriate heap id flags
for secure and non-secure sessions

Change-Id: I619d0a00325c4ee7f2d86b276c89473f75118ff5
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>