]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: hdmi: Fix audio to work with any pixel clock rate
authorAlban Bedel <alban.bedel@avionic-design.de>
Wed, 14 Dec 2016 17:20:39 +0000 (18:20 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 16 Jan 2019 12:11:45 +0000 (13:11 +0100)
commit12037a0f6ac0002a8335a511a64a581307bd3b21
tree35ad0a5cbe0fab5cae9e283e92993bcce6d63c35
parent0457ffd888a44ae02b8b7cce123ebe116d0342f1
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: Alban Bedel <alban.bedel@avionic-design.de>
[treding@nvidia.com: fix uninitialized variable warning]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hdmi.c