]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: fix DP audio settings
authorCharlene Liu <charlene.liu@amd.com>
Thu, 18 Jan 2024 23:25:23 +0000 (18:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Jan 2024 20:46:07 +0000 (15:46 -0500)
commit2ba36e18566b2c5b77bbdf06bd7e77f994fa0ff5
tree9fd15512f86f68a721282e1d0944b265bd148195
parent5024ae7fa88c1236b12607a84116af37245c0e59
drm/amd/display: fix DP audio settings

[why]
Audio channel layout for 5.1ch is not correct

[how]
Add the audio layout for 5.1ch (channel_count = 6).
Add divided by zero check.

Reviewed-by: Zhan Liu <zhan.liu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_audio.c