Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f84ee4da authored by Kamen Kirov's avatar Kamen Kirov
Browse files

camera_v2: Changes for dual JPEG encoding



1. Set driver state to MSM_JPEG_INIT after session done.
2. When doing reset,perform it to all JPEG hw modules.

Signed-off-by: default avatarKamen Kirov <kkirov@codeaurora.org>
Change-Id: Id6320f47a7c2eeef8eb6911d2c222b85ed3971b1
parent c99f9b85
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -232,6 +232,7 @@ irqreturn_t msm_jpeg_core_irq(int irq_num, void *context)
			msm_jpeg_irq_handler(
				MSM_JPEG_HW_MASK_COMP_FRAMEDONE,
				context, data);
		pgmn_dev->state = MSM_JPEG_INIT;
	}
	if (msm_jpeg_hw_irq_is_reset_ack(jpeg_irq_status)) {
		data = msm_jpeg_core_reset_ack_irq(jpeg_irq_status,
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -55,7 +55,7 @@

#define JPEG_OFFLINE_CMD_START 0x00000001

#define JPEG_RESET_DEFAULT 0x00020000
#define JPEG_RESET_DEFAULT 0x00032013

#define JPEG_IRQ_DISABLE_ALL 0x00000000
#define JPEG_IRQ_CLEAR_ALL 0xFFFFFFFF