[U-Boot] [PATCH 1/8] rockchip: video: Fix HDMI audio clocks
Jernej Skrabec
jernej.skrabec at siol.net
Wed Mar 8 23:34:37 UTC 2017
Function hdmi_lookup_n_cts() is feed with clock in Hz, which gets
compared with clocks in kHz. Fix that by converting all clocks to Hz.
Signed-off-by: Jernej Skrabec <jernej.skrabec at siol.net>
---
drivers/video/rockchip/rk_hdmi.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c
index 7b0c43b858..274d108851 100644
--- a/drivers/video/rockchip/rk_hdmi.c
+++ b/drivers/video/rockchip/rk_hdmi.c
@@ -32,37 +32,37 @@ struct rk_hdmi_priv {
static const struct tmds_n_cts n_cts_table[] = {
{
- .tmds = 25175, .n = 6144, .cts = 25175,
+ .tmds = 25175000, .n = 6144, .cts = 25175,
}, {
- .tmds = 25200, .n = 6144, .cts = 25200,
+ .tmds = 25200000, .n = 6144, .cts = 25200,
}, {
- .tmds = 27000, .n = 6144, .cts = 27000,
+ .tmds = 27000000, .n = 6144, .cts = 27000,
}, {
- .tmds = 27027, .n = 6144, .cts = 27027,
+ .tmds = 27027000, .n = 6144, .cts = 27027,
}, {
- .tmds = 40000, .n = 6144, .cts = 40000,
+ .tmds = 40000000, .n = 6144, .cts = 40000,
}, {
- .tmds = 54000, .n = 6144, .cts = 54000,
+ .tmds = 54000000, .n = 6144, .cts = 54000,
}, {
- .tmds = 54054, .n = 6144, .cts = 54054,
+ .tmds = 54054000, .n = 6144, .cts = 54054,
}, {
- .tmds = 65000, .n = 6144, .cts = 65000,
+ .tmds = 65000000, .n = 6144, .cts = 65000,
}, {
- .tmds = 74176, .n = 11648, .cts = 140625,
+ .tmds = 74176000, .n = 11648, .cts = 140625,
}, {
- .tmds = 74250, .n = 6144, .cts = 74250,
+ .tmds = 74250000, .n = 6144, .cts = 74250,
}, {
- .tmds = 83500, .n = 6144, .cts = 83500,
+ .tmds = 83500000, .n = 6144, .cts = 83500,
}, {
- .tmds = 106500, .n = 6144, .cts = 106500,
+ .tmds = 106500000, .n = 6144, .cts = 106500,
}, {
- .tmds = 108000, .n = 6144, .cts = 108000,
+ .tmds = 108000000, .n = 6144, .cts = 108000,
}, {
- .tmds = 148352, .n = 5824, .cts = 140625,
+ .tmds = 148352000, .n = 5824, .cts = 140625,
}, {
- .tmds = 148500, .n = 6144, .cts = 148500,
+ .tmds = 148500000, .n = 6144, .cts = 148500,
}, {
- .tmds = 297000, .n = 5120, .cts = 247500,
+ .tmds = 297000000, .n = 5120, .cts = 247500,
}
};
--
2.12.0
More information about the U-Boot
mailing list