From patchwork Fri Mar 9 17:49:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 10271419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 77C066016D for ; Fri, 9 Mar 2018 17:50:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62F90237F1 for ; Fri, 9 Mar 2018 17:50:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5768229D7C; Fri, 9 Mar 2018 17:50:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7FEE237F1 for ; Fri, 9 Mar 2018 17:50:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932576AbeCIRuD (ORCPT ); Fri, 9 Mar 2018 12:50:03 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:34481 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932571AbeCIRt7 (ORCPT ); Fri, 9 Mar 2018 12:49:59 -0500 Received: by mail-qk0-f195.google.com with SMTP id z184so3069412qkc.1; Fri, 09 Mar 2018 09:49:59 -0800 (PST) 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:in-reply-to :references; bh=tuMaa4QLXLrpKbzta+HQC09XqTX9eQFsXreSRciaaS0=; b=ebHBkKIYEElccAbBtAV7kYpgTA3A3a5s7BCrrMefzHvBS3o6ibKzzynXXg+ZSRUBYo NNc9Pw8VH6hAwsr98NAJswAWnOO9eqHpabpKQIF5SZ5T/1r0Gj2UybV4BYENZt6dkfie EUfdlCuK53p2QKvSSiyOs+Qg8lvYWOwXiNM6dhmPCJIFXwFmnSOOvwFHSCMaD1awU1I/ +j4+zYXHu4tbzip6Y4on1cyHyMnMlFno+VtvW9U4Q41PBvRv1I6i6Um8RPHDqIhOoK3B T5i5sX2tjWVG9+gTc7Sz3NB/LD6AuXvRuOoR/3wFbuRV1zBLVodnbAdWUrpsNQi49B9p LA4A== X-Gm-Message-State: AElRT7FigosM6dhyYCCIF8+P/u+A4lnaQzZTcZ2L1R+rXJojI5HVATWE GPm5xYoREAkVlwFol4fsRmI6Zj16 X-Google-Smtp-Source: AG47ELvNSgc3ZIitB31/e4qRfRlBf88dq7VWrKGLMJ72kEJ6iGM4z4WUWkBkmKFhS+xy4dTEV/xT5g== X-Received: by 10.55.168.212 with SMTP id r203mr43928488qke.257.1520617798394; Fri, 09 Mar 2018 09:49:58 -0800 (PST) Received: from localhost.localdomain ([2804:14c:138:2ada:4961:b672:c997:efad]) by smtp.gmail.com with ESMTPSA id g4sm873976qke.91.2018.03.09.09.49.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Mar 2018 09:49:57 -0800 (PST) From: Gustavo Padovan To: linux-media@vger.kernel.org Cc: kernel@collabora.com, Hans Verkuil , Mauro Carvalho Chehab , Shuah Khan , Pawel Osciak , Alexandre Courbot , Sakari Ailus , Brian Starkey , linux-kernel@vger.kernel.org, Gustavo Padovan Subject: [PATCH v8 06/13] [media] cobalt: add .is_unordered() for cobalt Date: Fri, 9 Mar 2018 14:49:13 -0300 Message-Id: <20180309174920.22373-7-gustavo@padovan.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180309174920.22373-1-gustavo@padovan.org> References: <20180309174920.22373-1-gustavo@padovan.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan The cobalt driver may reorder the capture buffers so we need to report it as such. v2: - use vb2_ops_set_unordered() helper Signed-off-by: Gustavo Padovan --- drivers/media/pci/cobalt/cobalt-v4l2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/cobalt/cobalt-v4l2.c b/drivers/media/pci/cobalt/cobalt-v4l2.c index e2a4c705d353..6b6611a0e190 100644 --- a/drivers/media/pci/cobalt/cobalt-v4l2.c +++ b/drivers/media/pci/cobalt/cobalt-v4l2.c @@ -430,6 +430,7 @@ static const struct vb2_ops cobalt_qops = { .stop_streaming = cobalt_stop_streaming, .wait_prepare = vb2_ops_wait_prepare, .wait_finish = vb2_ops_wait_finish, + .is_unordered = vb2_ops_set_unordered, }; /* V4L2 ioctls */