mirror of https://gitee.com/openkylin/linux.git
drm/radeon: fix audio disable on dce6+
Properly clear the enable bit when audio disable is requested. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
d965441342
commit
d7eb0a0940
|
@ -283,7 +283,7 @@ static void dce6_audio_enable(struct radeon_device *rdev,
|
|||
bool enable)
|
||||
{
|
||||
WREG32_ENDPOINT(pin->offset, AZ_F0_CODEC_PIN_CONTROL_HOTPLUG_CONTROL,
|
||||
AUDIO_ENABLED);
|
||||
enable ? AUDIO_ENABLED : 0);
|
||||
DRM_INFO("%s audio %d support\n", enable ? "Enabling" : "Disabling", pin->id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue