Commit d5152823 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915/tv: Fix tv mode clocks

The oversample clock is always supposed to be either 108 MHz
or 148.5 MHz. Make it so.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181112170000.27531-5-ville.syrjala@linux.intel.comReviewed-by: default avatarImre Deak <imre.deak@intel.com>
parent 6801603d
...@@ -635,7 +635,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -635,7 +635,7 @@ static const struct tv_mode tv_modes[] = {
}, },
{ {
.name = "480p", .name = "480p",
.clock = 107520, .clock = 108000,
.refresh = 59940, .refresh = 59940,
.oversample = TV_OVERSAMPLE_4X, .oversample = TV_OVERSAMPLE_4X,
.component_only = 1, .component_only = 1,
...@@ -659,7 +659,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -659,7 +659,7 @@ static const struct tv_mode tv_modes[] = {
}, },
{ {
.name = "576p", .name = "576p",
.clock = 107520, .clock = 108000,
.refresh = 50000, .refresh = 50000,
.oversample = TV_OVERSAMPLE_4X, .oversample = TV_OVERSAMPLE_4X,
.component_only = 1, .component_only = 1,
...@@ -683,7 +683,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -683,7 +683,7 @@ static const struct tv_mode tv_modes[] = {
}, },
{ {
.name = "720p@60Hz", .name = "720p@60Hz",
.clock = 148800, .clock = 148500,
.refresh = 60000, .refresh = 60000,
.oversample = TV_OVERSAMPLE_2X, .oversample = TV_OVERSAMPLE_2X,
.component_only = 1, .component_only = 1,
...@@ -707,7 +707,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -707,7 +707,7 @@ static const struct tv_mode tv_modes[] = {
}, },
{ {
.name = "720p@50Hz", .name = "720p@50Hz",
.clock = 148800, .clock = 148500,
.refresh = 50000, .refresh = 50000,
.oversample = TV_OVERSAMPLE_2X, .oversample = TV_OVERSAMPLE_2X,
.component_only = 1, .component_only = 1,
...@@ -732,7 +732,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -732,7 +732,7 @@ static const struct tv_mode tv_modes[] = {
}, },
{ {
.name = "1080i@50Hz", .name = "1080i@50Hz",
.clock = 148800, .clock = 148500,
.refresh = 50000, .refresh = 50000,
.oversample = TV_OVERSAMPLE_2X, .oversample = TV_OVERSAMPLE_2X,
.component_only = 1, .component_only = 1,
...@@ -758,7 +758,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -758,7 +758,7 @@ static const struct tv_mode tv_modes[] = {
}, },
{ {
.name = "1080i@60Hz", .name = "1080i@60Hz",
.clock = 148800, .clock = 148500,
.refresh = 60000, .refresh = 60000,
.oversample = TV_OVERSAMPLE_2X, .oversample = TV_OVERSAMPLE_2X,
.component_only = 1, .component_only = 1,
...@@ -1113,7 +1113,7 @@ static void intel_tv_pre_enable(struct intel_encoder *encoder, ...@@ -1113,7 +1113,7 @@ static void intel_tv_pre_enable(struct intel_encoder *encoder,
static const struct drm_display_mode reported_modes[] = { static const struct drm_display_mode reported_modes[] = {
{ {
.name = "NTSC 480i", .name = "NTSC 480i",
.clock = 107520, .clock = 108000,
.hdisplay = 1280, .hdisplay = 1280,
.hsync_start = 1368, .hsync_start = 1368,
.hsync_end = 1496, .hsync_end = 1496,
......
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