aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2025-08-06 14:47:50 +0000
committerAlex Deucher <[email protected]>2025-08-29 15:13:38 +0000
commit71403f58b4bb6c13b71c05505593a355f697fd94 (patch)
tree593855da1723387cc06caab9628865a9e8068ac6 /drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
parentdrm/amd: Re-enable common modes for eDP and LVDS (diff)
downloadkernel-71403f58b4bb6c13b71c05505593a355f697fd94.tar.gz
kernel-71403f58b4bb6c13b71c05505593a355f697fd94.zip
drm/amdgpu: drop hw access in non-DC audio fini
We already disable the audio pins in hw_fini so there is no need to do it again in sw_fini. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4481 Cc: oushixiong <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 5eeb16ca727f11278b2917fd4311a7d7efb0bbd6) Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_v11_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v11_0.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
index 47e05783c4a0..b01d88d078fa 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
@@ -1511,17 +1511,12 @@ static int dce_v11_0_audio_init(struct amdgpu_device *adev)
static void dce_v11_0_audio_fini(struct amdgpu_device *adev)
{
- int i;
-
if (!amdgpu_audio)
return;
if (!adev->mode_info.audio.enabled)
return;
- for (i = 0; i < adev->mode_info.audio.num_pins; i++)
- dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false);
-
adev->mode_info.audio.enabled = false;
}