Ejemplo n.º 1
0
int amvdec_suspend(struct platform_device *dev, pm_message_t event)
{
	amvdec_pg_enable(false);

	/* #if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON6TVD */
	if (has_vdec2())
		amvdec2_pg_enable(false);
	/* #endif */

	if (has_hevc_vdec())
		amhevc_pg_enable(false);

	return 0;
}
Ejemplo n.º 2
0
int amvdec_suspend(struct platform_device *dev, pm_message_t event)
{
    amvdec_pg_enable(false);

#if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON6TVD
    if (HAS_VDEC2) {
        amvdec2_pg_enable(false);
    }
#endif

    if (HAS_HEVC_VDEC) {
        amhevc_pg_enable(false);
    }

    return 0;
}
Ejemplo n.º 3
0
int amvdec_resume(struct platform_device *dev)
{
	amvdec_pg_enable(true);

	/* #if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON6TVD */
	if (has_vdec2())
		amvdec2_pg_enable(true);
	/* #endif */

	/* #if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON8 */
	if (has_hevc_vdec())
		amhevc_pg_enable(true);
	/* #endif */

	return 0;
}
Ejemplo n.º 4
0
int amvdec_resume(struct platform_device *dev)
{
    amvdec_pg_enable(true);

#if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON6TVD
    if (HAS_VDEC2) {
        amvdec2_pg_enable(true);
    }
#endif

#if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON8
    if (HAS_HEVC_VDEC) {
        amhevc_pg_enable(true);
    }
#endif

    return 0;
}
Ejemplo n.º 5
0
void amhevc_disable(void)
{
    if (HAS_HEVC_VDEC)
        amhevc_pg_enable(false);
}
Ejemplo n.º 6
0
void amhevc_enable(void)
{
    if (HAS_HEVC_VDEC)
        amhevc_pg_enable(true);
}
Ejemplo n.º 7
0
void amhevc_disable(void)
{
	if (has_hevc_vdec())
		amhevc_pg_enable(false);
}
Ejemplo n.º 8
0
void amhevc_enable(void)
{
	if (has_hevc_vdec())
		amhevc_pg_enable(true);
}