diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2016-03-03 09:20:10 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-08 11:01:53 -0500 |
commit | 441ce96f14075f7c5e2995f07e7f037cc43c4a08 (patch) | |
tree | cbc3280ce300de199c21a02e4cc09dbce4c50d45 /drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | |
parent | e484f8d47965d1fecac3c46977bf1fd3e688b432 (diff) | |
download | lwn-441ce96f14075f7c5e2995f07e7f037cc43c4a08.tar.gz lwn-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; |