Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Jyri Sarha and committed by
Tomi Valkeinen
a57a22c8 0925afc9

+4 -4
+4 -4
drivers/video/omap2/dss/hdmi_common.c
··· 347 347 case 96000: 348 348 case 192000: 349 349 if (deep_color == 125) 350 - if (pclk == 27027 || pclk == 74250) 350 + if (pclk == 27027000 || pclk == 74250000) 351 351 deep_color_correct = true; 352 352 if (deep_color == 150) 353 - if (pclk == 27027) 353 + if (pclk == 27027000) 354 354 deep_color_correct = true; 355 355 break; 356 356 case 44100: 357 357 case 88200: 358 358 case 176400: 359 359 if (deep_color == 125) 360 - if (pclk == 27027) 360 + if (pclk == 27027000) 361 361 deep_color_correct = true; 362 362 break; 363 363 default: ··· 418 418 } 419 419 } 420 420 /* Calculate CTS. See HDMI 1.3a or 1.4a specifications */ 421 - *cts = pclk * (*n / 128) * deep_color / (sample_freq / 10); 421 + *cts = (pclk/1000) * (*n / 128) * deep_color / (sample_freq / 10); 422 422 423 423 return 0; 424 424 }