]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/amd/display: fix dp stream enable
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Wed, 31 Jul 2019 18:08:45 +0000 (14:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Aug 2019 16:37:31 +0000 (11:37 -0500)
commit1f3324603e39d6a5a7f9f378c980dab390d9a1d5
tree7ffe99b308286b7ac414118e1ac6f5ba0b5d90b8
parent361c61f47a1cd8df26a08ddbb0cbdad72bb1776d
drm/amd/display: fix dp stream enable

A previous odm change broke stream enable by always setting
n_multiply as if odm was on.

This fixes the check for odm by making sure opp count is >1
rather than not 0.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c