mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
b5a0e8bd06
The generic buffer manager needs to provide v4l2 subdevice call interface for other kernel subdevices. Change the mutex to spinlock so that other kenel subdevices can use. Change-Id: I54b16328c5401710c0972dad7c8b9c9235f54906 Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
23 lines
576 B
C
23 lines
576 B
C
#ifndef __MEDIA_MSMB_BUF_MNGR_H__
|
|
#define __MEDIA_MSMB_BUF_MNGR_H__
|
|
|
|
struct msm_buf_mngr_info {
|
|
uint32_t session_id;
|
|
uint32_t stream_id;
|
|
uint32_t frame_id;
|
|
struct timeval timestamp;
|
|
uint32_t index;
|
|
};
|
|
|
|
struct v4l2_subdev *msm_buf_mngr_get_subdev(void);
|
|
|
|
#define VIDIOC_MSM_BUF_MNGR_GET_BUF \
|
|
_IOWR('V', BASE_VIDIOC_PRIVATE + 33, struct msm_buf_mngr_info)
|
|
|
|
#define VIDIOC_MSM_BUF_MNGR_PUT_BUF \
|
|
_IOWR('V', BASE_VIDIOC_PRIVATE + 34, struct msm_buf_mngr_info)
|
|
|
|
#define VIDIOC_MSM_BUF_MNGR_BUF_DONE \
|
|
_IOWR('V', BASE_VIDIOC_PRIVATE + 35, struct msm_buf_mngr_info)
|
|
|
|
#endif
|