Commit a57a22c8 authored by Jyri Sarha's avatar Jyri Sarha Committed by Tomi Valkeinen

OMAPDSS: Take pixelclock unit change into account in hdmi_compute_acr()

Pixelclock unit change from kHz to Hz should be taken into account
in CTS value calculations in hdmi_compute_acr().
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 0925afc9
...@@ -347,17 +347,17 @@ int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) ...@@ -347,17 +347,17 @@ int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts)
case 96000: case 96000:
case 192000: case 192000:
if (deep_color == 125) if (deep_color == 125)
if (pclk == 27027 || pclk == 74250) if (pclk == 27027000 || pclk == 74250000)
deep_color_correct = true; deep_color_correct = true;
if (deep_color == 150) if (deep_color == 150)
if (pclk == 27027) if (pclk == 27027000)
deep_color_correct = true; deep_color_correct = true;
break; break;
case 44100: case 44100:
case 88200: case 88200:
case 176400: case 176400:
if (deep_color == 125) if (deep_color == 125)
if (pclk == 27027) if (pclk == 27027000)
deep_color_correct = true; deep_color_correct = true;
break; break;
default: default:
...@@ -418,7 +418,7 @@ int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) ...@@ -418,7 +418,7 @@ int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts)
} }
} }
/* Calculate CTS. See HDMI 1.3a or 1.4a specifications */ /* Calculate CTS. See HDMI 1.3a or 1.4a specifications */
*cts = pclk * (*n / 128) * deep_color / (sample_freq / 10); *cts = (pclk/1000) * (*n / 128) * deep_color / (sample_freq / 10);
return 0; return 0;
} }
......
Markdown is supported
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