From patchwork Fri Apr 23 04:07:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 12090 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 1C8BEBDB15 for ; Fri, 23 Apr 2021 04:07:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8FF7D68872; Fri, 23 Apr 2021 06:07:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="OONf3Ovh"; dkim-atps=neutral Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9AE8C68861 for ; Fri, 23 Apr 2021 06:07:45 +0200 (CEST) Received: by mail-pg1-x52d.google.com with SMTP id b17so34342029pgh.7 for ; Thu, 22 Apr 2021 21:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=inpYt90xWFkUbOK0UtBsGiz8RiyNwKGosPYBTjLZJJw=; b=OONf3Ovh6LFLtlYQM3bCov4UpqRPazUYxSOFYcGs4yV1m+0LFfsjVWj4je9slMOoDl I3D8Uepyv5OgjejgVWiibwcEdZMU/LFx4RPKRlFLjo2dvQWMFVVAOkVT30pZf9Xmke6y pava214Vbxjji6mwZFfU81IuldEvtbMxYQqYI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=inpYt90xWFkUbOK0UtBsGiz8RiyNwKGosPYBTjLZJJw=; b=cvMByLKbic1tXNo4hOz7P1aqDH0p6VSQXgJXs7nFv3wrlZ9rIzkzX0KfrOYlqFf0lT T2ITLdPEyRjbSVH2d/nA6g7D8FeYxq1hTHBItD4d+sIq/Ct6kbejTkvLq1uw0EIifdrv PZH6yDDfeeoRXFy8+rtoNEsk0K9iv4iY5p5zbToKqlVBfivxo5Av2yL9I/yjAJkQIWoR FehLA3iTCMO2FJ1hovYt0Yo6EdKSp11o8qdJvxoi7mNDq9gmXHYldbP5n13jbGxLOoLu vXU0tzV6DArEp0X5gQEVOrkEQd0Vi0ECjya1lctGJa++bHIhThPl+tXwGLK+kW/YYxBp NedQ== X-Gm-Message-State: AOAM530WMi0pRkwso6/wHQonuKE6A/wWYsjyPMwZWhzSb4N2EY19N4nb Bm6rNNvSTWGak1v9mzb1jvXcO2m1avk/Dw== X-Google-Smtp-Source: ABdhPJzj7Y7/UzL4AnL6yVjOME+/Gn3G7RnoXK/G+VYJb59Gsxl96qg1KO3/ObubbxtYV0DEyyDTww== X-Received: by 2002:a62:9a11:0:b029:25c:908b:5284 with SMTP id o17-20020a629a110000b029025c908b5284mr1916824pfe.6.1619150863700; Thu, 22 Apr 2021 21:07:43 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:2:8537:2d4f:8d35:5777]) by smtp.gmail.com with ESMTPSA id j23sm3229670pfh.179.2021.04.22.21.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 21:07:43 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Fri, 23 Apr 2021 13:07:36 +0900 Message-Id: <20210423040738.1227220-1-hiroh@chromium.org> X-Mailer: git-send-email 2.31.1.498.g6c1eba8ee3d-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/2] Support HAL3 API flush X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patch series implements flush and also fix potential races due to concurrent HAL API calls. Hirokazu Honda (2): android: CameraDevice: Prevent race due to concurrent HAL calls android: CameraDevice: Implement HAL3 API flush src/android/camera_device.cpp | 107 ++++++++++++++++++++++++---------- src/android/camera_device.h | 10 +++- src/android/camera_ops.cpp | 6 +- 3 files changed, 88 insertions(+), 35 deletions(-) --- 2.31.1.498.g6c1eba8ee3d-goog