summaryrefslogtreecommitdiff
path: root/vmeta_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmeta_lib.c')
-rwxr-xr-xvmeta_lib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vmeta_lib.c b/vmeta_lib.c
index af953a6..2fa6602 100755
--- a/vmeta_lib.c
+++ b/vmeta_lib.c
@@ -499,6 +499,14 @@ SIGN32 vdec_os_driver_clean(void)
return 0;
}
+ // close clock and power
+ if(vdec_os_api_get_user_count() <=0)
+ {
+ vdec_os_api_clock_off();
+ vdec_os_api_power_off();
+ dbg_printf(VDEC_DEBUG_ALL, "close vmeta power and clock in case app doesn't close\n");
+ }
+
// unmap memory area
if(vdec_iface->io_mem_virt_addr > 0) {
munmap((void*)vdec_iface->io_mem_virt_addr, vdec_iface->io_mem_size);