mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
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:
@@ -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) {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user