bw = phy_frq_band_1;
else if (cab_clk < (155*MHz))
bw = phy_frq_band_2;
- else if (cab_clk < (300*MHz))
+ else if (cab_clk < (340*MHz))
bw = phy_frq_band_3;
- else if (cab_clk < (600*MHz))
+ else if (cab_clk < (525*MHz))
bw = phy_frq_band_4;
+ else if (cab_clk < (600*MHz))
+ bw = phy_frq_band_5;
else {
bw = phy_frq_band_2;
rx_pr("bw err,clk=%d\n", cableclk/MHz);
{ /* 155~340M */
0x3003707f, 0x00000080, 0x02218000, 0x00000010,
},
- { /* 340~600M */
+ { /* 340~525M */
+ 0x3003707f, 0x007f0080, 0x02218000, 0x00000010,
+ },
+ { /* 525~600M */
0x3003707f, 0x007f0080, 0x02218000, 0x00000010,
},
};
{ /* 155~340M */
0x000002a2, 0x0800c202, 0x0100cc31,
},
- { /* 340~600M */
+ { /* 340~525M */
+ 0x000002a2, 0x0700003c, 0x1d00cc31,
+ },
+ { /* 525~600M */
0x000002a2, 0x0700003c, 0x1d00cc31,
},
};
static const uint32_t phy_dchd_1[][3] = {
/* 0xe5 0xe6 0xe7 */
{ /* 24~45M */
- 0x002e712a, 0x1e062620, 0x00018000,
+ 0x002e712a, 0x1e022220, 0x00018000,
},
{ /* 45~74.5M */
- 0x002e712a, 0x1e062620, 0x00018000,
+ 0x002e714a, 0x1e022220, 0x00018000,
},
{ /* 77~155M */
- 0x002c714a, 0x1e062620, 0x00018000,
+ 0x002c715a, 0x1e022220, 0x00018000,
},
{ /* 155~340M */
- 0x002c714a, 0x1e062620, 0x00018000,
+ 0x002c715a, 0x1e022220, 0x00018000,
},
- { /* 340~600M */
- 0x002c714a, 0x1e051650, 0x00018000,
+ { /* 340~525M */
+ 0x002c715a, 0x1e012330, 0x0001a000,
+ },
+ { /* 525~600M */
+ 0x002c715a, 0x1e022220, 0x00018000,
},
};
/* long cable */
static const uint32_t phy_dchd_2[][3] = {
- /* 0xe5 0xe6 0xe7 */
+ /* 0xe5 0xe6 0xe7 */
{ /* 24~45M */
- 0x002e712a, 0x1e022220, 0x00018000,
+ 0x002e712a, 0x1e062620, 0x00018000,
},
{ /* 45~74.5M */
- 0x002e712a, 0x1e022220, 0x00018000,
+ 0x002e714a, 0x1e062620, 0x00018000,
},
{ /* 77~155M */
- 0x002c715a, 0x1e022220, 0x00018000,
+ 0x002c714a, 0x1e062620, 0x00018000,
},
{ /* 155~340M */
- 0x002c715a, 0x1e022220, 0x00018000,
+ 0x002c714a, 0x1e062620, 0x00018000,
},
- { /* 340~600M */
- 0x002c715a, 0x1e022220, 0x00018000,
+ { /* 340~525M */
+ 0x002c714a, 0x1e051650, 0x00018000,
+ },
+ { /* 525~600M */
+ 0x002c714a, 0x1e051650, 0x00018000,
},
};
0x002e712a, 0x1e022220, 0x00018000,
},
{ /* 45~74.5M */
- 0x002e712a, 0x1e022220, 0x00018000,
+ 0x002e714a, 0x1e022220, 0x00018000,
},
{ /* 77~155M */
0x002c714a, 0x1e022220, 0x00018000,
{ /* 155~340M */
0x002c714a, 0x1e022220, 0x00018000,
},
- { /* 340~600M */
+ { /* 340~525M */
+ 0x002c714a, 0x1e012330, 0x0001a000,
+ },
+ { /* 525~600M */
0x002c714a, 0x1e022220, 0x00018000,
},
};
0x002e712a, 0x1e062620, 0x00018000,
},
{ /* 45~74.5M */
- 0x002e712a, 0x1e062620, 0x00018000,
+ 0x002e714a, 0x1e062620, 0x00018000,
},
{ /* 77~155M */
0x002c715a, 0x1e062620, 0x00018000,
{ /* 155~340M */
0x002c715a, 0x1e062620, 0x00018000,
},
- { /* 340~600M */
+ { /* 340~525M */
+ 0x002c715a, 0x1e051650, 0x00018000,
+ },
+ { /* 525~600M */
0x002c715a, 0x1e051650, 0x00018000,
},
};
/* for AG-506 */
{0, 0, 0, 720, 483, HDMI_480p60},
- {0, 0, 0, 0, 0, HDMI_UNKNOWN}
};
static bool fmt_vic_abnormal(void)
* timing match, but TX send normal VIC, then
* abnormal format is detected.
*/
- if (((rx.pre.sw_vic == HDMI_UNKNOWN) ||
- (rx.pre.sw_vic == HDMI_UNSUPPORT)) &&
- (rx.pre.hw_vic != HDMI_UNKNOWN))
+ if ((rx.pre.sw_vic == HDMI_UNKNOWN) ||
+ (rx.pre.sw_vic == HDMI_UNSUPPORT)) {
+ if (log_level & VIDEO_LOG)
+ rx_pr("fmt_vic_abnormal\n");
return true;
- else
+ } else
return false;
}
rx_pr("frame_rate %d\n", rx.cur.frame_rate);
rx_pr("fmt=0x%x,", hdmirx_hw_get_fmt());
rx_pr("hw_vic %d,", rx.cur.hw_vic);
+ rx_pr("sw_vic %d,", rx.pre.sw_vic);
rx_pr("rx.no_signal=%d,rx.state=%d,",
rx.no_signal, rx.state);
rx_pr("skip frame=%d\n", rx.skip);