diff options
author | Tom St Denis | 2016-03-03 15:20:10 +0100 |
---|---|---|
committer | Alex Deucher | 2016-03-08 17:01:53 +0100 |
commit | 441ce96f14075f7c5e2995f07e7f037cc43c4a08 (patch) | |
tree | cbc3280ce300de199c21a02e4cc09dbce4c50d45 /drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | |
parent | drm/amd/amdgpu: Fix indentation in dce_v11_0_crtc_do_set_base() (diff) | |
download | kernel-qcow2-linux-441ce96f14075f7c5e2995f07e7f037cc43c4a08.tar.gz kernel-qcow2-linux-441ce96f14075f7c5e2995f07e7f037cc43c4a08.tar.xz kernel-qcow2-linux-441ce96f14075f7c5e2995f07e7f037cc43c4a08.zip |
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: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_v10_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c index b8cb411918ab..199b95fff046 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c @@ -1668,6 +1668,9 @@ static void dce_v10_0_audio_fini(struct amdgpu_device *adev) { int i; + if (!amdgpu_audio) + return; + if (!adev->mode_info.audio.enabled) return; |