]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Initialize DAC in DCE link encoder using VBIOS
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 2 Feb 2026 11:25:05 +0000 (12:25 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Feb 2026 17:16:12 +0000 (12:16 -0500)
commite2a024345bce78a8e1ed7d9e84c859b05979e41e
treee675f3d87adafab5fed5ad2f5df06cb847ba2a96
parente021ee995056ee7e58114edd92bcd4578d8b4bb5
drm/amd/display: Initialize DAC in DCE link encoder using VBIOS

The VBIOS DAC1EncoderControl() function can initialize the DAC,
by writing board-specific values to certain registers.
Call this at link encoder hardware initialization time similarly
to how the equivalent UNIPHYTransmitterControl initialization
is done.

This fixes DAC output on the Radeon HD 7790.

Also remove the ENCODER_CONTROL_SETUP enum from the
dac_encoder_control_prepare_params function which is actually
not a supported operation for DAC encoders.

Fixes: 0fbe321a93ce ("drm/amd/display: Implement DCE analog link encoders (v2)")
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Mauro Rossi <issor.oruam@gmail.com>
Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/command_table.c
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c