Ejemplo n.º 1
0
void *msm_gemini_core_framedone_irq(int gemini_irq_status, void *context)
{
	struct msm_gemini_hw_buf *buf_p;

	GMN_DBG("%s:%d]\n", __func__, __LINE__);

	buf_p = msm_gemini_hw_pingpong_active_buffer(&we_pingpong_buf);
	buf_p->framedone_len = msm_gemini_hw_encode_output_size();

	GMN_DBG("%s:%d] framedone_len %d\n", __func__, __LINE__,
		buf_p->framedone_len);
	return buf_p;
}
void *msm_gemini_core_framedone_irq(int gemini_irq_status, void *context)
{
	struct msm_gemini_hw_buf *buf_p;

	GMN_DBG("%s:%d]\n", __func__, __LINE__);

	buf_p = msm_gemini_hw_pingpong_active_buffer(&we_pingpong_buf);
	if (buf_p) {
		buf_p->framedone_len = msm_gemini_hw_encode_output_size();
#if defined(CONFIG_SONY_CAM_V4L2)
		GMN_DBG("%s:%d] framedone_len %d\n", __func__, __LINE__,
			buf_p->framedone_len);
#else
		pr_err("%s:%d] framedone_len %d\n", __func__, __LINE__,
			buf_p->framedone_len);
#endif
	}

	return buf_p;
}