| .. | .. |
|---|
| 23 | 23 | * |
|---|
| 24 | 24 | */ |
|---|
| 25 | 25 | |
|---|
| 26 | +#include <linux/slab.h> |
|---|
| 27 | + |
|---|
| 26 | 28 | #include "dm_services.h" |
|---|
| 27 | 29 | #include "virtual_stream_encoder.h" |
|---|
| 28 | 30 | |
|---|
| 29 | 31 | static void virtual_stream_encoder_dp_set_stream_attribute( |
|---|
| 30 | 32 | struct stream_encoder *enc, |
|---|
| 31 | 33 | struct dc_crtc_timing *crtc_timing, |
|---|
| 32 | | - enum dc_color_space output_color_space) {} |
|---|
| 34 | + enum dc_color_space output_color_space, |
|---|
| 35 | + bool use_vsc_sdp_for_colorimetry, |
|---|
| 36 | + uint32_t enable_sdp_splitting) {} |
|---|
| 33 | 37 | |
|---|
| 34 | 38 | static void virtual_stream_encoder_hdmi_set_stream_attribute( |
|---|
| 35 | 39 | struct stream_encoder *enc, |
|---|
| .. | .. |
|---|
| 42 | 46 | struct dc_crtc_timing *crtc_timing, |
|---|
| 43 | 47 | bool is_dual_link) {} |
|---|
| 44 | 48 | |
|---|
| 45 | | -static void virtual_stream_encoder_set_mst_bandwidth( |
|---|
| 49 | +static void virtual_stream_encoder_set_throttled_vcp_size( |
|---|
| 46 | 50 | struct stream_encoder *enc, |
|---|
| 47 | | - struct fixed31_32 avg_time_slots_per_mtp) {} |
|---|
| 51 | + struct fixed31_32 avg_time_slots_per_mtp) |
|---|
| 52 | +{} |
|---|
| 48 | 53 | |
|---|
| 49 | 54 | static void virtual_stream_encoder_update_hdmi_info_packets( |
|---|
| 50 | 55 | struct stream_encoder *enc, |
|---|
| .. | .. |
|---|
| 74 | 79 | struct stream_encoder *enc, |
|---|
| 75 | 80 | bool mute) {} |
|---|
| 76 | 81 | |
|---|
| 82 | +static void virtual_stream_encoder_reset_hdmi_stream_attribute( |
|---|
| 83 | + struct stream_encoder *enc) |
|---|
| 84 | +{} |
|---|
| 85 | + |
|---|
| 86 | +static void virtual_enc_dp_set_odm_combine( |
|---|
| 87 | + struct stream_encoder *enc, |
|---|
| 88 | + bool odm_combine) |
|---|
| 89 | +{} |
|---|
| 90 | + |
|---|
| 91 | +static void virtual_dig_connect_to_otg( |
|---|
| 92 | + struct stream_encoder *enc, |
|---|
| 93 | + int tg_inst) |
|---|
| 94 | +{} |
|---|
| 95 | + |
|---|
| 96 | +static void virtual_setup_stereo_sync( |
|---|
| 97 | + struct stream_encoder *enc, |
|---|
| 98 | + int tg_inst, |
|---|
| 99 | + bool enable) |
|---|
| 100 | +{} |
|---|
| 101 | + |
|---|
| 102 | +static void virtual_stream_encoder_set_dsc_pps_info_packet( |
|---|
| 103 | + struct stream_encoder *enc, |
|---|
| 104 | + bool enable, |
|---|
| 105 | + uint8_t *dsc_packed_pps) |
|---|
| 106 | +{} |
|---|
| 107 | + |
|---|
| 77 | 108 | static const struct stream_encoder_funcs virtual_str_enc_funcs = { |
|---|
| 109 | + .dp_set_odm_combine = |
|---|
| 110 | + virtual_enc_dp_set_odm_combine, |
|---|
| 78 | 111 | .dp_set_stream_attribute = |
|---|
| 79 | 112 | virtual_stream_encoder_dp_set_stream_attribute, |
|---|
| 80 | 113 | .hdmi_set_stream_attribute = |
|---|
| 81 | 114 | virtual_stream_encoder_hdmi_set_stream_attribute, |
|---|
| 82 | 115 | .dvi_set_stream_attribute = |
|---|
| 83 | 116 | virtual_stream_encoder_dvi_set_stream_attribute, |
|---|
| 84 | | - .set_mst_bandwidth = |
|---|
| 85 | | - virtual_stream_encoder_set_mst_bandwidth, |
|---|
| 117 | + .set_throttled_vcp_size = |
|---|
| 118 | + virtual_stream_encoder_set_throttled_vcp_size, |
|---|
| 86 | 119 | .update_hdmi_info_packets = |
|---|
| 87 | 120 | virtual_stream_encoder_update_hdmi_info_packets, |
|---|
| 88 | 121 | .stop_hdmi_info_packets = |
|---|
| .. | .. |
|---|
| 98 | 131 | |
|---|
| 99 | 132 | .audio_mute_control = virtual_audio_mute_control, |
|---|
| 100 | 133 | .set_avmute = virtual_stream_encoder_set_avmute, |
|---|
| 134 | + .hdmi_reset_stream_attribute = virtual_stream_encoder_reset_hdmi_stream_attribute, |
|---|
| 135 | + .dig_connect_to_otg = virtual_dig_connect_to_otg, |
|---|
| 136 | + .setup_stereo_sync = virtual_setup_stereo_sync, |
|---|
| 137 | + .dp_set_dsc_pps_info_packet = virtual_stream_encoder_set_dsc_pps_info_packet, |
|---|
| 101 | 138 | }; |
|---|
| 102 | 139 | |
|---|
| 103 | 140 | bool virtual_stream_encoder_construct( |
|---|