[COMMON] fimc-is2: Fix a bug of getting the 3AAG (MRG_OUT) subdev
authorSunmi Lee <carrotsm.lee@samsung.com>
Mon, 11 Jun 2018 10:03:40 +0000 (19:03 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:00 +0000 (17:05 +0900)
Change-Id: Icd9a4e67e40359675ebbc4b806b6f980bbb3e8a9
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aag.c

index c06ff6acf0a84c9839a4cb0054a5d2d3c106d075..3b76bde46316181616905a0b7f13fbe3f630a227 100644 (file)
@@ -341,7 +341,7 @@ static int fimc_is_3xg_video_reqbufs(struct file *file, void *priv,
        mdbgv_3xg("%s(buffers : %d)\n", vctx, __func__, buf->count);
 
        device = GET_DEVICE(vctx);
-       subdev = &device->txc;
+       subdev = &device->txg;
        leader = subdev->leader;
        if (leader && test_bit(FIMC_IS_SUBDEV_START, &leader->state)) {
                err("leader%d still running, subdev%d req is not applied", leader->id, subdev->id);
@@ -688,7 +688,7 @@ static void fimc_is_3xg_buffer_queue(struct vb2_buffer *vb)
 
        device = GET_DEVICE(vctx);
        queue = GET_QUEUE(vctx);
-       subdev = &device->txc;
+       subdev = &device->txg;
 
        ret = fimc_is_queue_buffer_queue(queue, vb);
        if (ret) {
@@ -716,7 +716,7 @@ static void fimc_is_3xg_buffer_finish(struct vb2_buffer *vb)
        mvdbgs(3, "%s(%d)\n", vctx, &vctx->queue, __func__, vb->index);
 
        device = GET_DEVICE(vctx);
-       subdev = &device->txc;
+       subdev = &device->txg;
 
        fimc_is_queue_buffer_finish(vb);