diff options
author | Tai Man <taiman.wong@amd.com> | 2019-06-08 00:32:27 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-07-18 22:17:19 +0300 |
commit | 74eda776d7a4e69ec7aa1ce30a87636f14220fbb (patch) | |
tree | e2a2976c5033d20480609c2bf0165f0f06f6adb0 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 1ca068ed34d6b39d336c1b0d618ed73ba8f04548 (diff) | |
download | linux-74eda776d7a4e69ec7aa1ce30a87636f14220fbb.tar.xz |
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions