Skip to content
Commit db5adf4d authored by Alban Bedel's avatar Alban Bedel Committed by Thierry Reding
Browse files

drm/tegra: hdmi: Fix audio to work with any pixel clock rate



The audio setting implementation was limited to a few specific pixel
clocks. This prevented HDMI audio from working on several test devices
as they need a pixel clock that is not supported by this implementation.

Fix this by implementing the algorithm provided in the TRM using fixed
point arithmetic. This allows the driver to cope with any sane pixel
clock rate.

Signed-off-by: default avatarAlban Bedel <alban.bedel@avionic-design.de>
[treding@nvidia.com: fix uninitialized variable warning]
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent e3c702dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment