author | shihong.zheng <shihong.zheng@amlogic.com> | 2020-07-17 12:50:04 (GMT) |
---|---|---|
committer | Hui Zhang <hui.zhang@amlogic.com> | 2020-07-22 13:47:37 (GMT) |
commit | ad56b0a56f4e2a4d3f5a3a912c36839326a95e2d (patch) | |
tree | bccb6922f87a741f4183ce63f691c6acfaf2a8fc | |
parent | b90b075c959e9a3a4a7b9f52b2fc07b74a0968f0 (diff) | |
download | media_modules-ad56b0a56f4e2a4d3f5a3a912c36839326a95e2d.zip media_modules-ad56b0a56f4e2a4d3f5a3a912c36839326a95e2d.tar.gz media_modules-ad56b0a56f4e2a4d3f5a3a912c36839326a95e2d.tar.bz2 |
vdec: fix sc2 hevcf clk ref count error. [1/1]
PD#SWPL-25656
Problem:
hevcf clk ref count error.
Solution:
fix sc2 hevc frone clock gate node name.
Verify:
AH219
Change-Id: I897b1ee4810e39fc2eebe095980c1ddea5250a27
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
(cherry picked from commit 5482101b4f327d9d27adf42cef6747e5f02a459e)
-rw-r--r-- | drivers/frame_provider/decoder/utils/vdec_power_ctrl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/frame_provider/decoder/utils/vdec_power_ctrl.c b/drivers/frame_provider/decoder/utils/vdec_power_ctrl.c index fd1f29b..12b81a0 100644 --- a/drivers/frame_provider/decoder/utils/vdec_power_ctrl.c +++ b/drivers/frame_provider/decoder/utils/vdec_power_ctrl.c @@ -136,7 +136,10 @@ static void pm_vdec_clock_on(int id) hcodec_clock_enable(); } else if (id == VDEC_HEVC) { /* enable hevc clock */ - amports_switch_gate("clk_hevc_mux", 1); + if (get_cpu_major_id() >= AM_MESON_CPU_MAJOR_ID_SC2) + amports_switch_gate("clk_hevcf_mux", 1); + else + amports_switch_gate("clk_hevc_mux", 1); if (get_cpu_major_id() >= AM_MESON_CPU_MAJOR_ID_G12A) amports_switch_gate("clk_hevcb_mux", 1); hevc_clock_hi_enable(); |