]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2026 23:01:38 +0000 (15:01 -0800)
commit53841c4864cbbcaec3d5b2262298985b213d5aa6
tree1ed427cd980800a546e23a8407c25a8a268b42db
parent28843646b37d4d2f677d767243d41769779ea0cd
drm/amd/display: Initialize DAC in DCE link encoder using VBIOS

[ Upstream commit e2a024345bce78a8e1ed7d9e84c859b05979e41e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/bios/command_table.c
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c