mdss: ppp: Add support for MDP_BGRX_8888 in mdp3 ppp

Support for MDP_BGRX_8888 is required, so we are adding it in.

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mdss: ppp: Fix ppp parse error out sequence

Put was called on fence twice, second time with a NULL pointer,
which was causing a crash.

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mdss: ppp: free ppp bw when not in use for some time

For every request ppp was toggling on and off bw and clock.
This behavior was not for ideal bw driver and would also increase
the total time to process ppp request. Now ppp request for bw and
keeps it until there has been no additional requests for over
50ms.

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mdss: ppp: Correct ppp bw request

Integer overflow occurred in calculating ib, this value was then
given to bw request resulting in an invalid request.

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mdss: ppp: Fix arithmetic error

Width was not calculated properly. This would cause ppp to go
into bad state and hang.

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mdss: ppp: Correct bg start address cacluation

Calculation for bg address offset when there is a rotation or flip
has been corrected.

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mdss: ppp: Remove unnecessary code from ppp

This code should have never been there in the first place.

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mdss: ppp: Increase accuracy of scaling factor calculation in ppp

Due to the scaling factor not being accurate enough the pixel
repetition logic for yuv content did not match the scaling logic.
With a more accurate scaling factor we are avoiding problematic
cases with scaling yuv content.

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ASoC: msm: Add routing controls for SW Listen

Certain codecs will not have HW MAD that can be
used for Listen feature. In such cases Listen is
implemented using SW MAD in ADSP. This change will
enable user space to use SW MAD in ADSP.

Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
rtmutex: Fix initialization

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>