Add several defines and structs to allow IPA user space compile.
Change-Id: Icd6fe721bd0572b6c8f0c57dd65da3e7a6e69596
Acked-by: Dmitry Kogan <dmitryk@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
It is possible that the DP core may already be shutdown when a
callback from the audio subsystem is invoked. In such cases, ensure
that the callbacks return gracefully without trying to do any
hardware programming.
CRs-Fixed: 2072592
Change-Id: Ib112c0791852e1c835c739167683f160723b3baa
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Current implementation only checks if the sink is HDCP capable.
In addition, it is required that the source also checks for the
HDCP version supported by the sink prior to initiating HDCP 2.x
authentication sequence.
CRs-Fixed: 2062951
Change-Id: I24901202a0abc2ff4336ab9c6c2fd708a53559f2
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Fix the Y420CMDB EDID block parsing to handle
the case where the block does not include a capability
bitmap.
This case means that all the short video descriptors
support the YUV 420 mode as well.
Also fix the incorrect length check in the parser API.
The capability bitmap has no minimum length field.
Change-Id: I5d9c2d3ac11d5ddad8e36cb7acfebfb41175f4b7
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
Possible user information leaks in post processing LUT get
functions are fixed by properly copying user data.
Change-Id: I529f74a79e5857902177c8054d136b4544370be2
Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
This change adds YUV format support for HDMI.
Also, chooses the best mode for turning on the
sink based on sink source capabilities. This
can be either RGB or YUV. For YUV formats adjust
the pixel clock and also configure the relevant
hardware blocks in SDE.
Change-Id: I48a36a991c194badb3ddca4bbf5bcbc21d838b8f
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
Check if the TV supports deep color and adjust the
pixel clock accordingly before setting the mode. Also
make sure that this pixel clock is within the limits
of the sink.
Change-Id: I3c44c06ea54b6c49e19c8c41d693000f7c3feeb7
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
DVI/HDMI mode of sink could be read from EDID. Now, we set
the mode according to the video format. For a HDMI device,
if we choose VIC mode larger than 127, it would be set as
DVI mode. It would be confused that a HDMI device is treated
as a DVI device, and would lead some issue for display.
CRs-Fixed: 2030216
Change-Id: I122faf6f4f8d7e620bc6ce7ce1b5757caa188b8e
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
Change the array index 'i' of pwrlevels[] to unsigned int, which can't be
decremented beyond zero.
Change-Id: I9b646fccf03437f6facf0d5938f097916d13d2f2
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
Detect frame out of sync based on interfaces, instead of
time to avoid synchronization issues.
Change-Id: I76d9d5a3c83ed8017607fd452e5503260cad659a
Signed-off-by: Ramesh V <ramev@codeaurora.org>
xHCI specs revision 1.1 mentions that if Compliance Transition
Capability (CTC) flag is set, then xHC supports software control
of the transition to Compliance mode. For this, we need to write
a value of 10 to Port Link State(PLS) field of PORTSC register
during dwc3_otg_start_host time after the xhci platform device
has been added. Then the link transitions to compliance state
on detection of first LFPS timeout.
Steps to enable compliance transition:
1. Do not connect host cable
2. echo y > /sys/devices/soc/a800000.ssusb/xhci_link_compliance
3. Connect host cable with breakout fixture and start testing
Steps to disable compliance transition:
1. Disconnect the host cable
2. echo n > /sys/devices/soc/a800000.ssusb/xhci_link_compliance
3. Connect host cable
Change-Id: I73225ccad105414d3ebd60f95138b9ecf65005d4
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
As per design recommendation on clock gating
of MISC block for IPA 3.1, as a workaround,
clock gating for MISC needs to be disabled
using IPA_CLKON_CFG register.
Change-Id: If38741933f2700231977b87f1eaa7b4d95efd478
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
During port reconfiguration, reallocating internal
buffers adds to the reconfiguration delay. This change
ensures that maximum supported size of internal
buffers are allocated to avoid reallocation during
port reconfiguration.
Remove the RECONFIG_HINT command as userspace client
does not use this command.
CRs-Fixed: 2071064
Change-Id: I66b5b472f08b9264841dae4f2339f85e3ba879ff
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Add MM front end DAI links to support concurrent interactive
streams
Change-Id: I9cd95d855f2ddc3345453807e4be235c430b9ef3
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
Add changes to register and receive parameters for pan/scale
and downmix operations.
Change-Id: If0e747304595f9ed3bd19b25e3f4eab2db382a67
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
Add support for set params on ASM/ADM for MFC and
Volume modules. Make PSPD mitrix set param api generic.
Change-Id: I75a5b9e3fd2316b75be41439848f89190944bc36
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
There might be cases where DP cable can be disconnected while
read/write aux transactions are in progress. Avoid retrying
aux transactions if DP cable is disconnected.
Change-Id: Ie6f884c047c6ef3a1584160820e6d41ec0b1e01b
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
No need of having high number of tty port for HSUART which just wastes
resources. Make this optimal based on the use cases.
Change-Id: If82fc1a3457fae7503d7557817ca776f19027da7
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Currently driver is enabling VBUS first and then enable VCONN before
PE_SRC_startup when type C mode is POWER_SUPPLY_TYPEC_SINK_POWERED_CABLE.
On some platforms, enabling VBUS is taking time which is causing VCONN
reaching 2.7V after VBUS reaches VsafeV. This is exceeding 2msec timelimit
mentioned in type C specification and causes type C complaince tests
failure. Hence enable VCONN first and then enable VBUS to pass below
type C compliance tests:
TD 4.8.3 DRP Connect Vconn Accessory Test
TD 4.9.1 Source Suspend Test
Change-Id: I2697acdcaa063f251dd37035475392510037bee5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Temp in trace_temp_notification is not divided with
scaling factor while cpu_node->temp is. Use temp after
scale for better log understanding.
Change-Id: Iadf4a1c39211651fee67cc18f68a65785f28fa58
Signed-off-by: Maria Yu <aiquny@codeaurora.org>