Skip to content

Commit

Permalink
Revert "atomic_read() call fixed. This is needed for getting the ionv…
Browse files Browse the repository at this point in the history
…ideo driver to work (kszaq#1)"

This reverts commit 0723924.
  • Loading branch information
drieschel committed Jul 14, 2016
1 parent 0723924 commit 778b4bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/amlogic/ionvideo/ionvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ static int __init ionvideo_create_instance(int inst)
q->ops = &ionvideo_video_qops;
q->mem_ops = &vb2_ion_memops;
//q->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;

ret = vb2_queue_init(q);
if (ret)
Expand Down Expand Up @@ -989,7 +989,7 @@ static int __init ionvideo_create_instance(int inst)

static u32 buf_num_queue(struct vb2_queue *q)
{
return atomic_read(&q->owned_by_drv_count);
return atomic_read(&q->queued_count);
}

static ssize_t vframe_states_show(struct class *class, struct class_attribute* attr, char* buf)
Expand Down

0 comments on commit 778b4bb

Please sign in to comment.