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:
Родитель
d965441342
Коммит
d7eb0a0940
|
@ -283,7 +283,7 @@ static void dce6_audio_enable(struct radeon_device *rdev,
|
||||||
bool enable)
|
bool enable)
|
||||||
{
|
{
|
||||||
WREG32_ENDPOINT(pin->offset, AZ_F0_CODEC_PIN_CONTROL_HOTPLUG_CONTROL,
|
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);
|
DRM_INFO("%s audio %d support\n", enable ? "Enabling" : "Disabling", pin->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче