hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
....@@ -23,6 +23,8 @@
2323 *
2424 */
2525
26
+#include <linux/slab.h>
27
+
2628 #include "dm_services.h"
2729 #include "dm_services_types.h"
2830
....@@ -82,6 +84,14 @@
8284 *enc = NULL;
8385 }
8486
87
+static void virtual_link_encoder_get_max_link_cap(struct link_encoder *enc,
88
+ struct dc_link_settings *link_settings)
89
+{
90
+ /* Set Default link settings */
91
+ struct dc_link_settings max_link_cap = {LANE_COUNT_FOUR, LINK_RATE_HIGH,
92
+ LINK_SPREAD_05_DOWNSPREAD_30KHZ, false, 0};
93
+ *link_settings = max_link_cap;
94
+}
8595
8696 static const struct link_encoder_funcs virtual_lnk_enc_funcs = {
8797 .validate_output_with_stream =
....@@ -92,6 +102,7 @@
92102 .enable_dp_output = virtual_link_encoder_enable_dp_output,
93103 .enable_dp_mst_output = virtual_link_encoder_enable_dp_mst_output,
94104 .disable_output = virtual_link_encoder_disable_output,
105
+ .get_max_link_cap = virtual_link_encoder_get_max_link_cap,
95106 .dp_set_lane_settings = virtual_link_encoder_dp_set_lane_settings,
96107 .dp_set_phy_pattern = virtual_link_encoder_dp_set_phy_pattern,
97108 .update_mst_stream_allocation_table =