]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: use encoder's engine id to find matched free audio device
authorTai Man <taiman.wong@amd.com>
Fri, 7 Jun 2019 21:32:27 +0000 (17:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:10 +0000 (14:18 -0500)
commitf97d415b980573afb2868d3477f9fa026d0f7646
tree60c4bde23c0a2b9d754a116893ba73b78cc9a7e7
parent119a9829d7e4a3b182e4c6de1f39db09543d2016
drm/amd/display: use encoder's engine id to find matched free audio device

[Why]
On some platforms, the encoder id 3 is not populated. So the encoders
are not stored in right order as index (id: 0, 1, 2, 4, 5) at pool. This
would cause encoders id 4 & id 5 to fail when finding corresponding
audio device, defaulting to the first available audio device. As result,
we cannot stream audio into two DP ports with encoders id 4 & id 5.

[How]
It need to create enough audio device objects (0 - 5) to perform matching.
Then use encoder engine id to find matched audio device.

Signed-off-by: Tai Man <taiman.wong@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c