rockchip/rk3288: bugfix, incorrect clock operate on hevc

On rk3288, vpu clock should be raised when 4k h.264 decoding,
but on previous judgement branch code, judgement do
not distinguish vpu or hevc would make incorrect clock
raise when hevc running.

Change-Id: Idb8e5a9dde1e8eb063658c9610ac839c8c69b6ce
Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
This commit is contained in:
alpha lin
2019-04-11 17:18:36 +08:00
committed by Tao Huang
parent 3a2b113d58
commit 88af3cfd91

View File

@@ -2277,7 +2277,8 @@ static void vcodec_get_reg_freq_rk3288(struct vpu_subdev_data *data,
{
vcodec_get_reg_freq_default(data, reg);
if (reg->type == VPU_DEC || reg->type == VPU_DEC_PP) {
if ((reg->type == VPU_DEC || reg->type == VPU_DEC_PP) &&
data->hw_id != HEVC_ID) {
if (reg_check_fmt(reg) == VPU_DEC_FMT_H264) {
if (reg_probe_width(reg) > 2560) {
/*