1*b843c749SSergey Zigachev /*
2*b843c749SSergey Zigachev * Copyright 2012-15 Advanced Micro Devices, Inc.
3*b843c749SSergey Zigachev *
4*b843c749SSergey Zigachev * Permission is hereby granted, free of charge, to any person obtaining a
5*b843c749SSergey Zigachev * copy of this software and associated documentation files (the "Software"),
6*b843c749SSergey Zigachev * to deal in the Software without restriction, including without limitation
7*b843c749SSergey Zigachev * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*b843c749SSergey Zigachev * and/or sell copies of the Software, and to permit persons to whom the
9*b843c749SSergey Zigachev * Software is furnished to do so, subject to the following conditions:
10*b843c749SSergey Zigachev *
11*b843c749SSergey Zigachev * The above copyright notice and this permission notice shall be included in
12*b843c749SSergey Zigachev * all copies or substantial portions of the Software.
13*b843c749SSergey Zigachev *
14*b843c749SSergey Zigachev * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*b843c749SSergey Zigachev * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*b843c749SSergey Zigachev * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17*b843c749SSergey Zigachev * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*b843c749SSergey Zigachev * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*b843c749SSergey Zigachev * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*b843c749SSergey Zigachev * OTHER DEALINGS IN THE SOFTWARE.
21*b843c749SSergey Zigachev *
22*b843c749SSergey Zigachev * Authors: AMD
23*b843c749SSergey Zigachev *
24*b843c749SSergey Zigachev */
25*b843c749SSergey Zigachev
26*b843c749SSergey Zigachev #include "dm_services.h"
27*b843c749SSergey Zigachev #include "dc.h"
28*b843c749SSergey Zigachev #include "core_types.h"
29*b843c749SSergey Zigachev #include "resource.h"
30*b843c749SSergey Zigachev #include "ipp.h"
31*b843c749SSergey Zigachev #include "timing_generator.h"
32*b843c749SSergey Zigachev
33*b843c749SSergey Zigachev #define DC_LOGGER dc->ctx->logger
34*b843c749SSergey Zigachev
35*b843c749SSergey Zigachev /*******************************************************************************
36*b843c749SSergey Zigachev * Private functions
37*b843c749SSergey Zigachev ******************************************************************************/
update_stream_signal(struct dc_stream_state * stream)38*b843c749SSergey Zigachev void update_stream_signal(struct dc_stream_state *stream)
39*b843c749SSergey Zigachev {
40*b843c749SSergey Zigachev
41*b843c749SSergey Zigachev struct dc_sink *dc_sink = stream->sink;
42*b843c749SSergey Zigachev
43*b843c749SSergey Zigachev if (dc_sink->sink_signal == SIGNAL_TYPE_NONE)
44*b843c749SSergey Zigachev stream->signal = stream->sink->link->connector_signal;
45*b843c749SSergey Zigachev else
46*b843c749SSergey Zigachev stream->signal = dc_sink->sink_signal;
47*b843c749SSergey Zigachev
48*b843c749SSergey Zigachev if (dc_is_dvi_signal(stream->signal)) {
49*b843c749SSergey Zigachev if (stream->ctx->dc->caps.dual_link_dvi &&
50*b843c749SSergey Zigachev stream->timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK &&
51*b843c749SSergey Zigachev stream->sink->sink_signal != SIGNAL_TYPE_DVI_SINGLE_LINK)
52*b843c749SSergey Zigachev stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
53*b843c749SSergey Zigachev else
54*b843c749SSergey Zigachev stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
55*b843c749SSergey Zigachev }
56*b843c749SSergey Zigachev }
57*b843c749SSergey Zigachev
construct(struct dc_stream_state * stream,struct dc_sink * dc_sink_data)58*b843c749SSergey Zigachev static void construct(struct dc_stream_state *stream,
59*b843c749SSergey Zigachev struct dc_sink *dc_sink_data)
60*b843c749SSergey Zigachev {
61*b843c749SSergey Zigachev uint32_t i = 0;
62*b843c749SSergey Zigachev
63*b843c749SSergey Zigachev stream->sink = dc_sink_data;
64*b843c749SSergey Zigachev stream->ctx = stream->sink->ctx;
65*b843c749SSergey Zigachev
66*b843c749SSergey Zigachev dc_sink_retain(dc_sink_data);
67*b843c749SSergey Zigachev
68*b843c749SSergey Zigachev /* Copy audio modes */
69*b843c749SSergey Zigachev /* TODO - Remove this translation */
70*b843c749SSergey Zigachev for (i = 0; i < (dc_sink_data->edid_caps.audio_mode_count); i++)
71*b843c749SSergey Zigachev {
72*b843c749SSergey Zigachev stream->audio_info.modes[i].channel_count = dc_sink_data->edid_caps.audio_modes[i].channel_count;
73*b843c749SSergey Zigachev stream->audio_info.modes[i].format_code = dc_sink_data->edid_caps.audio_modes[i].format_code;
74*b843c749SSergey Zigachev stream->audio_info.modes[i].sample_rates.all = dc_sink_data->edid_caps.audio_modes[i].sample_rate;
75*b843c749SSergey Zigachev stream->audio_info.modes[i].sample_size = dc_sink_data->edid_caps.audio_modes[i].sample_size;
76*b843c749SSergey Zigachev }
77*b843c749SSergey Zigachev stream->audio_info.mode_count = dc_sink_data->edid_caps.audio_mode_count;
78*b843c749SSergey Zigachev stream->audio_info.audio_latency = dc_sink_data->edid_caps.audio_latency;
79*b843c749SSergey Zigachev stream->audio_info.video_latency = dc_sink_data->edid_caps.video_latency;
80*b843c749SSergey Zigachev memmove(
81*b843c749SSergey Zigachev stream->audio_info.display_name,
82*b843c749SSergey Zigachev dc_sink_data->edid_caps.display_name,
83*b843c749SSergey Zigachev AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS);
84*b843c749SSergey Zigachev stream->audio_info.manufacture_id = dc_sink_data->edid_caps.manufacturer_id;
85*b843c749SSergey Zigachev stream->audio_info.product_id = dc_sink_data->edid_caps.product_id;
86*b843c749SSergey Zigachev stream->audio_info.flags.all = dc_sink_data->edid_caps.speaker_flags;
87*b843c749SSergey Zigachev
88*b843c749SSergey Zigachev if (dc_sink_data->dc_container_id != NULL) {
89*b843c749SSergey Zigachev struct dc_container_id *dc_container_id = dc_sink_data->dc_container_id;
90*b843c749SSergey Zigachev
91*b843c749SSergey Zigachev stream->audio_info.port_id[0] = dc_container_id->portId[0];
92*b843c749SSergey Zigachev stream->audio_info.port_id[1] = dc_container_id->portId[1];
93*b843c749SSergey Zigachev } else {
94*b843c749SSergey Zigachev /* TODO - WindowDM has implemented,
95*b843c749SSergey Zigachev other DMs need Unhardcode port_id */
96*b843c749SSergey Zigachev stream->audio_info.port_id[0] = 0x5558859e;
97*b843c749SSergey Zigachev stream->audio_info.port_id[1] = 0xd989449;
98*b843c749SSergey Zigachev }
99*b843c749SSergey Zigachev
100*b843c749SSergey Zigachev /* EDID CAP translation for HDMI 2.0 */
101*b843c749SSergey Zigachev stream->timing.flags.LTE_340MCSC_SCRAMBLE = dc_sink_data->edid_caps.lte_340mcsc_scramble;
102*b843c749SSergey Zigachev
103*b843c749SSergey Zigachev stream->status.link = stream->sink->link;
104*b843c749SSergey Zigachev
105*b843c749SSergey Zigachev update_stream_signal(stream);
106*b843c749SSergey Zigachev
107*b843c749SSergey Zigachev stream->out_transfer_func = dc_create_transfer_func();
108*b843c749SSergey Zigachev stream->out_transfer_func->type = TF_TYPE_BYPASS;
109*b843c749SSergey Zigachev }
110*b843c749SSergey Zigachev
destruct(struct dc_stream_state * stream)111*b843c749SSergey Zigachev static void destruct(struct dc_stream_state *stream)
112*b843c749SSergey Zigachev {
113*b843c749SSergey Zigachev dc_sink_release(stream->sink);
114*b843c749SSergey Zigachev if (stream->out_transfer_func != NULL) {
115*b843c749SSergey Zigachev dc_transfer_func_release(stream->out_transfer_func);
116*b843c749SSergey Zigachev stream->out_transfer_func = NULL;
117*b843c749SSergey Zigachev }
118*b843c749SSergey Zigachev }
119*b843c749SSergey Zigachev
dc_stream_retain(struct dc_stream_state * stream)120*b843c749SSergey Zigachev void dc_stream_retain(struct dc_stream_state *stream)
121*b843c749SSergey Zigachev {
122*b843c749SSergey Zigachev kref_get(&stream->refcount);
123*b843c749SSergey Zigachev }
124*b843c749SSergey Zigachev
dc_stream_free(struct kref * kref)125*b843c749SSergey Zigachev static void dc_stream_free(struct kref *kref)
126*b843c749SSergey Zigachev {
127*b843c749SSergey Zigachev struct dc_stream_state *stream = container_of(kref, struct dc_stream_state, refcount);
128*b843c749SSergey Zigachev
129*b843c749SSergey Zigachev destruct(stream);
130*b843c749SSergey Zigachev kfree(stream);
131*b843c749SSergey Zigachev }
132*b843c749SSergey Zigachev
dc_stream_release(struct dc_stream_state * stream)133*b843c749SSergey Zigachev void dc_stream_release(struct dc_stream_state *stream)
134*b843c749SSergey Zigachev {
135*b843c749SSergey Zigachev if (stream != NULL) {
136*b843c749SSergey Zigachev kref_put(&stream->refcount, dc_stream_free);
137*b843c749SSergey Zigachev }
138*b843c749SSergey Zigachev }
139*b843c749SSergey Zigachev
dc_create_stream_for_sink(struct dc_sink * sink)140*b843c749SSergey Zigachev struct dc_stream_state *dc_create_stream_for_sink(
141*b843c749SSergey Zigachev struct dc_sink *sink)
142*b843c749SSergey Zigachev {
143*b843c749SSergey Zigachev struct dc_stream_state *stream;
144*b843c749SSergey Zigachev
145*b843c749SSergey Zigachev if (sink == NULL)
146*b843c749SSergey Zigachev return NULL;
147*b843c749SSergey Zigachev
148*b843c749SSergey Zigachev stream = kzalloc(sizeof(struct dc_stream_state), GFP_KERNEL);
149*b843c749SSergey Zigachev if (stream == NULL)
150*b843c749SSergey Zigachev return NULL;
151*b843c749SSergey Zigachev
152*b843c749SSergey Zigachev construct(stream, sink);
153*b843c749SSergey Zigachev
154*b843c749SSergey Zigachev kref_init(&stream->refcount);
155*b843c749SSergey Zigachev
156*b843c749SSergey Zigachev return stream;
157*b843c749SSergey Zigachev }
158*b843c749SSergey Zigachev
dc_stream_get_status(struct dc_stream_state * stream)159*b843c749SSergey Zigachev struct dc_stream_status *dc_stream_get_status(
160*b843c749SSergey Zigachev struct dc_stream_state *stream)
161*b843c749SSergey Zigachev {
162*b843c749SSergey Zigachev uint8_t i;
163*b843c749SSergey Zigachev struct dc *dc = stream->ctx->dc;
164*b843c749SSergey Zigachev
165*b843c749SSergey Zigachev for (i = 0; i < dc->current_state->stream_count; i++) {
166*b843c749SSergey Zigachev if (stream == dc->current_state->streams[i])
167*b843c749SSergey Zigachev return &dc->current_state->stream_status[i];
168*b843c749SSergey Zigachev }
169*b843c749SSergey Zigachev
170*b843c749SSergey Zigachev return NULL;
171*b843c749SSergey Zigachev }
172*b843c749SSergey Zigachev
173*b843c749SSergey Zigachev /**
174*b843c749SSergey Zigachev * Update the cursor attributes and set cursor surface address
175*b843c749SSergey Zigachev */
dc_stream_set_cursor_attributes(struct dc_stream_state * stream,const struct dc_cursor_attributes * attributes)176*b843c749SSergey Zigachev bool dc_stream_set_cursor_attributes(
177*b843c749SSergey Zigachev struct dc_stream_state *stream,
178*b843c749SSergey Zigachev const struct dc_cursor_attributes *attributes)
179*b843c749SSergey Zigachev {
180*b843c749SSergey Zigachev int i;
181*b843c749SSergey Zigachev struct dc *core_dc;
182*b843c749SSergey Zigachev struct resource_context *res_ctx;
183*b843c749SSergey Zigachev struct pipe_ctx *pipe_to_program = NULL;
184*b843c749SSergey Zigachev
185*b843c749SSergey Zigachev if (NULL == stream) {
186*b843c749SSergey Zigachev dm_error("DC: dc_stream is NULL!\n");
187*b843c749SSergey Zigachev return false;
188*b843c749SSergey Zigachev }
189*b843c749SSergey Zigachev if (NULL == attributes) {
190*b843c749SSergey Zigachev dm_error("DC: attributes is NULL!\n");
191*b843c749SSergey Zigachev return false;
192*b843c749SSergey Zigachev }
193*b843c749SSergey Zigachev
194*b843c749SSergey Zigachev if (attributes->address.quad_part == 0) {
195*b843c749SSergey Zigachev dm_output_to_console("DC: Cursor address is 0!\n");
196*b843c749SSergey Zigachev return false;
197*b843c749SSergey Zigachev }
198*b843c749SSergey Zigachev
199*b843c749SSergey Zigachev core_dc = stream->ctx->dc;
200*b843c749SSergey Zigachev res_ctx = &core_dc->current_state->res_ctx;
201*b843c749SSergey Zigachev stream->cursor_attributes = *attributes;
202*b843c749SSergey Zigachev
203*b843c749SSergey Zigachev for (i = 0; i < MAX_PIPES; i++) {
204*b843c749SSergey Zigachev struct pipe_ctx *pipe_ctx = &res_ctx->pipe_ctx[i];
205*b843c749SSergey Zigachev
206*b843c749SSergey Zigachev if (pipe_ctx->stream != stream)
207*b843c749SSergey Zigachev continue;
208*b843c749SSergey Zigachev if (pipe_ctx->top_pipe && pipe_ctx->plane_state != pipe_ctx->top_pipe->plane_state)
209*b843c749SSergey Zigachev continue;
210*b843c749SSergey Zigachev
211*b843c749SSergey Zigachev if (!pipe_to_program) {
212*b843c749SSergey Zigachev pipe_to_program = pipe_ctx;
213*b843c749SSergey Zigachev core_dc->hwss.pipe_control_lock(core_dc, pipe_to_program, true);
214*b843c749SSergey Zigachev }
215*b843c749SSergey Zigachev
216*b843c749SSergey Zigachev core_dc->hwss.set_cursor_attribute(pipe_ctx);
217*b843c749SSergey Zigachev if (core_dc->hwss.set_cursor_sdr_white_level)
218*b843c749SSergey Zigachev core_dc->hwss.set_cursor_sdr_white_level(pipe_ctx);
219*b843c749SSergey Zigachev }
220*b843c749SSergey Zigachev
221*b843c749SSergey Zigachev if (pipe_to_program)
222*b843c749SSergey Zigachev core_dc->hwss.pipe_control_lock(core_dc, pipe_to_program, false);
223*b843c749SSergey Zigachev
224*b843c749SSergey Zigachev return true;
225*b843c749SSergey Zigachev }
226*b843c749SSergey Zigachev
dc_stream_set_cursor_position(struct dc_stream_state * stream,const struct dc_cursor_position * position)227*b843c749SSergey Zigachev bool dc_stream_set_cursor_position(
228*b843c749SSergey Zigachev struct dc_stream_state *stream,
229*b843c749SSergey Zigachev const struct dc_cursor_position *position)
230*b843c749SSergey Zigachev {
231*b843c749SSergey Zigachev int i;
232*b843c749SSergey Zigachev struct dc *core_dc;
233*b843c749SSergey Zigachev struct resource_context *res_ctx;
234*b843c749SSergey Zigachev struct pipe_ctx *pipe_to_program = NULL;
235*b843c749SSergey Zigachev
236*b843c749SSergey Zigachev if (NULL == stream) {
237*b843c749SSergey Zigachev dm_error("DC: dc_stream is NULL!\n");
238*b843c749SSergey Zigachev return false;
239*b843c749SSergey Zigachev }
240*b843c749SSergey Zigachev
241*b843c749SSergey Zigachev if (NULL == position) {
242*b843c749SSergey Zigachev dm_error("DC: cursor position is NULL!\n");
243*b843c749SSergey Zigachev return false;
244*b843c749SSergey Zigachev }
245*b843c749SSergey Zigachev
246*b843c749SSergey Zigachev core_dc = stream->ctx->dc;
247*b843c749SSergey Zigachev res_ctx = &core_dc->current_state->res_ctx;
248*b843c749SSergey Zigachev stream->cursor_position = *position;
249*b843c749SSergey Zigachev
250*b843c749SSergey Zigachev for (i = 0; i < MAX_PIPES; i++) {
251*b843c749SSergey Zigachev struct pipe_ctx *pipe_ctx = &res_ctx->pipe_ctx[i];
252*b843c749SSergey Zigachev
253*b843c749SSergey Zigachev if (pipe_ctx->stream != stream ||
254*b843c749SSergey Zigachev (!pipe_ctx->plane_res.mi && !pipe_ctx->plane_res.hubp) ||
255*b843c749SSergey Zigachev !pipe_ctx->plane_state ||
256*b843c749SSergey Zigachev (!pipe_ctx->plane_res.xfm && !pipe_ctx->plane_res.dpp) ||
257*b843c749SSergey Zigachev !pipe_ctx->plane_res.ipp)
258*b843c749SSergey Zigachev continue;
259*b843c749SSergey Zigachev
260*b843c749SSergey Zigachev if (!pipe_to_program) {
261*b843c749SSergey Zigachev pipe_to_program = pipe_ctx;
262*b843c749SSergey Zigachev core_dc->hwss.pipe_control_lock(core_dc, pipe_to_program, true);
263*b843c749SSergey Zigachev }
264*b843c749SSergey Zigachev
265*b843c749SSergey Zigachev core_dc->hwss.set_cursor_position(pipe_ctx);
266*b843c749SSergey Zigachev }
267*b843c749SSergey Zigachev
268*b843c749SSergey Zigachev if (pipe_to_program)
269*b843c749SSergey Zigachev core_dc->hwss.pipe_control_lock(core_dc, pipe_to_program, false);
270*b843c749SSergey Zigachev
271*b843c749SSergey Zigachev return true;
272*b843c749SSergey Zigachev }
273*b843c749SSergey Zigachev
dc_stream_get_vblank_counter(const struct dc_stream_state * stream)274*b843c749SSergey Zigachev uint32_t dc_stream_get_vblank_counter(const struct dc_stream_state *stream)
275*b843c749SSergey Zigachev {
276*b843c749SSergey Zigachev uint8_t i;
277*b843c749SSergey Zigachev struct dc *core_dc = stream->ctx->dc;
278*b843c749SSergey Zigachev struct resource_context *res_ctx =
279*b843c749SSergey Zigachev &core_dc->current_state->res_ctx;
280*b843c749SSergey Zigachev
281*b843c749SSergey Zigachev for (i = 0; i < MAX_PIPES; i++) {
282*b843c749SSergey Zigachev struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg;
283*b843c749SSergey Zigachev
284*b843c749SSergey Zigachev if (res_ctx->pipe_ctx[i].stream != stream)
285*b843c749SSergey Zigachev continue;
286*b843c749SSergey Zigachev
287*b843c749SSergey Zigachev return tg->funcs->get_frame_count(tg);
288*b843c749SSergey Zigachev }
289*b843c749SSergey Zigachev
290*b843c749SSergey Zigachev return 0;
291*b843c749SSergey Zigachev }
292*b843c749SSergey Zigachev
dc_stream_get_scanoutpos(const struct dc_stream_state * stream,uint32_t * v_blank_start,uint32_t * v_blank_end,uint32_t * h_position,uint32_t * v_position)293*b843c749SSergey Zigachev bool dc_stream_get_scanoutpos(const struct dc_stream_state *stream,
294*b843c749SSergey Zigachev uint32_t *v_blank_start,
295*b843c749SSergey Zigachev uint32_t *v_blank_end,
296*b843c749SSergey Zigachev uint32_t *h_position,
297*b843c749SSergey Zigachev uint32_t *v_position)
298*b843c749SSergey Zigachev {
299*b843c749SSergey Zigachev uint8_t i;
300*b843c749SSergey Zigachev bool ret = false;
301*b843c749SSergey Zigachev struct dc *core_dc = stream->ctx->dc;
302*b843c749SSergey Zigachev struct resource_context *res_ctx =
303*b843c749SSergey Zigachev &core_dc->current_state->res_ctx;
304*b843c749SSergey Zigachev
305*b843c749SSergey Zigachev for (i = 0; i < MAX_PIPES; i++) {
306*b843c749SSergey Zigachev struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg;
307*b843c749SSergey Zigachev
308*b843c749SSergey Zigachev if (res_ctx->pipe_ctx[i].stream != stream)
309*b843c749SSergey Zigachev continue;
310*b843c749SSergey Zigachev
311*b843c749SSergey Zigachev tg->funcs->get_scanoutpos(tg,
312*b843c749SSergey Zigachev v_blank_start,
313*b843c749SSergey Zigachev v_blank_end,
314*b843c749SSergey Zigachev h_position,
315*b843c749SSergey Zigachev v_position);
316*b843c749SSergey Zigachev
317*b843c749SSergey Zigachev ret = true;
318*b843c749SSergey Zigachev break;
319*b843c749SSergey Zigachev }
320*b843c749SSergey Zigachev
321*b843c749SSergey Zigachev return ret;
322*b843c749SSergey Zigachev }
323*b843c749SSergey Zigachev
dc_stream_log(const struct dc * dc,const struct dc_stream_state * stream)324*b843c749SSergey Zigachev void dc_stream_log(const struct dc *dc, const struct dc_stream_state *stream)
325*b843c749SSergey Zigachev {
326*b843c749SSergey Zigachev DC_LOG_DC(
327*b843c749SSergey Zigachev "core_stream 0x%p: src: %d, %d, %d, %d; dst: %d, %d, %d, %d, colorSpace:%d\n",
328*b843c749SSergey Zigachev stream,
329*b843c749SSergey Zigachev stream->src.x,
330*b843c749SSergey Zigachev stream->src.y,
331*b843c749SSergey Zigachev stream->src.width,
332*b843c749SSergey Zigachev stream->src.height,
333*b843c749SSergey Zigachev stream->dst.x,
334*b843c749SSergey Zigachev stream->dst.y,
335*b843c749SSergey Zigachev stream->dst.width,
336*b843c749SSergey Zigachev stream->dst.height,
337*b843c749SSergey Zigachev stream->output_color_space);
338*b843c749SSergey Zigachev DC_LOG_DC(
339*b843c749SSergey Zigachev "\tpix_clk_khz: %d, h_total: %d, v_total: %d, pixelencoder:%d, displaycolorDepth:%d\n",
340*b843c749SSergey Zigachev stream->timing.pix_clk_khz,
341*b843c749SSergey Zigachev stream->timing.h_total,
342*b843c749SSergey Zigachev stream->timing.v_total,
343*b843c749SSergey Zigachev stream->timing.pixel_encoding,
344*b843c749SSergey Zigachev stream->timing.display_color_depth);
345*b843c749SSergey Zigachev DC_LOG_DC(
346*b843c749SSergey Zigachev "\tsink name: %s, serial: %d\n",
347*b843c749SSergey Zigachev stream->sink->edid_caps.display_name,
348*b843c749SSergey Zigachev stream->sink->edid_caps.serial_number);
349*b843c749SSergey Zigachev DC_LOG_DC(
350*b843c749SSergey Zigachev "\tlink: %d\n",
351*b843c749SSergey Zigachev stream->sink->link->link_index);
352*b843c749SSergey Zigachev }
353