提交 441ce96f 编写于 作者: T Tom St Denis 提交者: Alex Deucher

drm/amd/amdgpu: Don't proceed in audio_fini if disabled (DCEv10)

If audio is disabled we shouldn't proceed into the fini function.
Signed-off-by: NTom St Denis <tom.stdenis@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 e484f8d4
...@@ -1668,6 +1668,9 @@ static void dce_v10_0_audio_fini(struct amdgpu_device *adev) ...@@ -1668,6 +1668,9 @@ static void dce_v10_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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册