diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2017-03-09 00:34:37 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-03-16 16:03:47 -0600 |
commit | a0a2774aebdaa039ce787090c903cf47263f04c9 (patch) | |
tree | 34be689cb8c551dd25c637f30becc41bad7b29c7 /drivers/video | |
parent | c00d16517761799330719ae68292345abb5a4d07 (diff) | |
download | u-boot-a0a2774aebdaa039ce787090c903cf47263f04c9.zip u-boot-a0a2774aebdaa039ce787090c903cf47263f04c9.tar.gz u-boot-a0a2774aebdaa039ce787090c903cf47263f04c9.tar.bz2 |
rockchip: video: Fix HDMI audio clocks
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@siol.net>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/rockchip/rk_hdmi.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index 7b0c43b..274d108 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, } }; |