CHROMIUM: drm: bridge/dw_hdmi: improved the hdmi audio N/CTS cacluate math
authorYakir Yang <ykk@rock-chips.com>
Wed, 2 Dec 2015 09:50:56 +0000 (17:50 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 19 Jul 2016 07:24:47 +0000 (15:24 +0800)
commitd46288cf0b5fa5313bf373d0fa4cee6a05310fc4
treee3054747da4a392aacdacff7e7f086511272d16b
parent329f1b1ff70cca751c88d04e7aa3d4d2c9830e22
CHROMIUM: drm: bridge/dw_hdmi: improved the hdmi audio N/CTS cacluate math

The original math would bring some inaccurate to N/CTS that would
caused those magic number won't fit the HDMI 1.4 Spec request:
128 * SampleRate = Tmds * N / CTS;

So this time we try to improved to math of N that would find the
minimal inaccurate with the HDMI 1.4 Spec.

Change-Id: Ied3cde3c352d955ae6f15d5e7fb172e92316c2a5
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/315424
Reviewed-by: Douglas Anderson <dianders@chromium.org>
drivers/gpu/drm/bridge/dw-hdmi.c
include/drm/bridge/dw_hdmi.h