{"id":8508,"url":"https://patchwork.libcamera.org/api/patches/8508/?format=json","web_url":"https://patchwork.libcamera.org/patch/8508/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200629153518.3734304-2-niklas.soderlund@ragnatech.se>","date":"2020-06-29T15:35:18","name":"[libcamera-devel,2/2] libcamera: ipu3: cio2: Do not proxy signal","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"4653d8a6a2a04c9bb37e6ede07253eaa78e6bdc5","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/8508/mbox/","series":[{"id":1058,"url":"https://patchwork.libcamera.org/api/series/1058/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1058","date":"2020-06-29T15:35:17","name":"[libcamera-devel,1/2] libcamera: ipu3: Make it easier to read when a request may be completed","version":1,"mbox":"https://patchwork.libcamera.org/series/1058/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/8508/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/8508/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 16E9FBF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 29 Jun 2020 15:35:34 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id EE985609E1;\n\tMon, 29 Jun 2020 17:35:32 +0200 (CEST)","from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net\n\t[195.74.38.229])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8F6A3609C2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 29 Jun 2020 17:35:30 +0200 (CEST)","from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de\n\t[79.202.46.202]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA\n\tid 297b1e65-ba1e-11ea-8fb8-005056917f90;\n\tMon, 29 Jun 2020 17:35:29 +0200 (CEST)"],"X-Halon-ID":"297b1e65-ba1e-11ea-8fb8-005056917f90","Authorized-sender":"niklas@soderlund.pp.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 29 Jun 2020 17:35:18 +0200","Message-Id":"<20200629153518.3734304-2-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.27.0","In-Reply-To":"<20200629153518.3734304-1-niklas.soderlund@ragnatech.se>","References":"<20200629153518.3734304-1-niklas.soderlund@ragnatech.se>","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH 2/2] libcamera: ipu3: cio2: Do not proxy\n\tsignal","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Do not proxy the signal in the CI2Device when there is no need for it,\nremove it.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\nThis is a leftover form the CIO2 rework which fell thru the cracks I'm\nsorry I missed to resort it in the last version.\n---\n src/libcamera/pipeline/ipu3/cio2.cpp | 8 --------\n src/libcamera/pipeline/ipu3/cio2.h   | 6 +++---\n src/libcamera/pipeline/ipu3/ipu3.cpp | 2 +-\n 3 files changed, 4 insertions(+), 12 deletions(-)","diff":"diff --git a/src/libcamera/pipeline/ipu3/cio2.cpp b/src/libcamera/pipeline/ipu3/cio2.cpp\nindex aa1459fb3599283b..08b6a9a12916299b 100644\n--- a/src/libcamera/pipeline/ipu3/cio2.cpp\n+++ b/src/libcamera/pipeline/ipu3/cio2.cpp\n@@ -15,7 +15,6 @@\n #include \"libcamera/internal/camera_sensor.h\"\n #include \"libcamera/internal/media_device.h\"\n #include \"libcamera/internal/v4l2_subdevice.h\"\n-#include \"libcamera/internal/v4l2_videodevice.h\"\n \n namespace libcamera {\n \n@@ -125,8 +124,6 @@ int CIO2Device::init(const MediaDevice *media, unsigned int index)\n \tif (ret)\n \t\treturn ret;\n \n-\toutput_->bufferReady.connect(this, &CIO2Device::cio2BufferReady);\n-\n \treturn 0;\n }\n \n@@ -289,9 +286,4 @@ void CIO2Device::freeBuffers()\n \t\tLOG(IPU3, Error) << \"Failed to release CIO2 buffers\";\n }\n \n-void CIO2Device::cio2BufferReady(FrameBuffer *buffer)\n-{\n-\tbufferReady.emit(buffer);\n-}\n-\n } /* namespace libcamera */\ndiff --git a/src/libcamera/pipeline/ipu3/cio2.h b/src/libcamera/pipeline/ipu3/cio2.h\nindex dc764b101f112f05..4fd949f8e5132e07 100644\n--- a/src/libcamera/pipeline/ipu3/cio2.h\n+++ b/src/libcamera/pipeline/ipu3/cio2.h\n@@ -13,15 +13,15 @@\n \n #include <libcamera/signal.h>\n \n+#include \"libcamera/internal/v4l2_videodevice.h\"\n+\n namespace libcamera {\n \n class CameraSensor;\n class FrameBuffer;\n class MediaDevice;\n class Request;\n-class V4L2DeviceFormat;\n class V4L2Subdevice;\n-class V4L2VideoDevice;\n struct Size;\n struct StreamConfiguration;\n \n@@ -48,7 +48,7 @@ public:\n \n \tint queueBuffer(Request *request, FrameBuffer *rawBuffer);\n \tvoid tryReturnBuffer(FrameBuffer *buffer);\n-\tSignal<FrameBuffer *> bufferReady;\n+\tSignal<FrameBuffer *> &bufferReady() { return output_->bufferReady; }\n \n private:\n \tvoid freeBuffers();\ndiff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp\nindex 4e75bd40c66f821a..c1dc377d1fd5b58c 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -805,7 +805,7 @@ int PipelineHandlerIPU3::registerCameras()\n \t\t * associated ImgU input where they get processed and\n \t\t * returned through the ImgU main and secondary outputs.\n \t\t */\n-\t\tdata->cio2_.bufferReady.connect(data.get(),\n+\t\tdata->cio2_.bufferReady().connect(data.get(),\n \t\t\t\t\t&IPU3CameraData::cio2BufferReady);\n \t\tdata->imgu_->input_->bufferReady.connect(&data->cio2_,\n \t\t\t\t\t&CIO2Device::tryReturnBuffer);\n","prefixes":["libcamera-devel","2/2"]}