.. | .. |
---|
23 | 23 | * |
---|
24 | 24 | */ |
---|
25 | 25 | |
---|
| 26 | +#include <linux/slab.h> |
---|
| 27 | + |
---|
26 | 28 | #include "dm_services.h" |
---|
27 | 29 | #include "dm_services_types.h" |
---|
28 | 30 | |
---|
.. | .. |
---|
82 | 84 | *enc = NULL; |
---|
83 | 85 | } |
---|
84 | 86 | |
---|
| 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 | +} |
---|
85 | 95 | |
---|
86 | 96 | static const struct link_encoder_funcs virtual_lnk_enc_funcs = { |
---|
87 | 97 | .validate_output_with_stream = |
---|
.. | .. |
---|
92 | 102 | .enable_dp_output = virtual_link_encoder_enable_dp_output, |
---|
93 | 103 | .enable_dp_mst_output = virtual_link_encoder_enable_dp_mst_output, |
---|
94 | 104 | .disable_output = virtual_link_encoder_disable_output, |
---|
| 105 | + .get_max_link_cap = virtual_link_encoder_get_max_link_cap, |
---|
95 | 106 | .dp_set_lane_settings = virtual_link_encoder_dp_set_lane_settings, |
---|
96 | 107 | .dp_set_phy_pattern = virtual_link_encoder_dp_set_phy_pattern, |
---|
97 | 108 | .update_mst_stream_allocation_table = |
---|