Explorar el Código

drm/amd/amdgpu: Don't proceed into audio_fini if audio is disabled (DCEv8)

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Tom St Denis hace 9 años
padre
commit
84cffef127
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      drivers/gpu/drm/amd/amdgpu/dce_v8_0.c

+ 3 - 0
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c

@@ -1639,6 +1639,9 @@ static void dce_v8_0_audio_fini(struct amdgpu_device *adev)
 {
 {
 	int i;
 	int i;
 
 
+	if (!amdgpu_audio)
+		return;
+
 	if (!adev->mode_info.audio.enabled)
 	if (!adev->mode_info.audio.enabled)
 		return;
 		return;