From patchwork Sun Jul 10 00:44:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Utkin X-Patchwork-Id: 9222203 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 ABD8960572 for ; Sun, 10 Jul 2016 00:45:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CDAB283F6 for ; Sun, 10 Jul 2016 00:45:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9185D283FE; Sun, 10 Jul 2016 00:45:40 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 DCFF3283F6 for ; Sun, 10 Jul 2016 00:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756868AbcGJApR (ORCPT ); Sat, 9 Jul 2016 20:45:17 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:34391 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756809AbcGJApQ (ORCPT ); Sat, 9 Jul 2016 20:45:16 -0400 Received: by mail-qk0-f182.google.com with SMTP id o67so1236552qke.1 for ; Sat, 09 Jul 2016 17:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corp-bluecherry-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=RZxTzUfS72KCgib3KYdXW0mPm32HoQeyBqTx1XcSAXU=; b=DgKlcoTDStAeq3VSp+Fp9WNvpZ/8WhhePPdeYjXmP2KSxRjlfWEve9xqgi0sPSBapM uiiO/j27cEdibi5He9yNQyM+CVyAW2huyl593WbQKmyJMgyf5VphFFiFovryZUiPnD7o /26oJZks/lAu7E14WXu4fP8YJMEHP8sL/SELp59h9rHm3vO1CRRngZsZS4qZc2toZzhl WBqGjjI3olnEtJW9VoFHJ1Kw8MIim5y+7+WWjOsWJC8wlHMzAH6PlWLYMs+HrvcsFgiu 80FnAIHmlQp2lf6cU69yRXFs3hW9cTsZmgnY5pb8KSOy2HvE1RST/Ka2gCOywCwA287G C7QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RZxTzUfS72KCgib3KYdXW0mPm32HoQeyBqTx1XcSAXU=; b=bclNh+R2Qb5y7L7ucVAc5rfMjmWTMWpNLzCKoVckWFiMAhjRre4yXq7jh6GrMmt+Q8 OVsqnLICsYlWyX7StfCS0Pkf8vYvxWTXVne7WnjwpE9CDy7u/0kC++A0zMcr3+UIyExD F1+8PadZnNccMymTwsmS/gcuYA2eBWI1x5GRpVP/7hxwhdvVMa3RSWqWWzoWi4iqeEE7 tmFp8g6UjaNP1yKB2jgmQXQg12Xrbk2sovG0LvJrzZJrXo+CFD+j5+TznvtejwcuxarZ eAkMXu8GH6Cx5K2JeVQUqPAm4CtPFlXDhqA+dk0fpz0u47sMQ94Q+s+QJX9GgLcfeHUV MHQw== X-Gm-Message-State: ALyK8tLB77QIuM3MGdDlXAY8KGEmPXocJCgcpb6eSeXwv3XBQQ510XJi70Q6JofUhIsQ/TZm X-Received: by 10.55.26.229 with SMTP id l98mr16093392qkh.180.1468111514927; Sat, 09 Jul 2016 17:45:14 -0700 (PDT) Received: from localhost.localdomain ([91.198.4.228]) by smtp.gmail.com with ESMTPSA id 29sm1477479qtx.4.2016.07.09.17.45.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Jul 2016 17:45:14 -0700 (PDT) From: Andrey Utkin To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ismael Luceno , Andrey Utkin , Bluecherry Maintainers , andrey_utkin@fastmail.com Subject: [PATCH] media: solo6x10: increase FRAME_BUF_SIZE Date: Sun, 10 Jul 2016 03:44:50 +0300 Message-Id: <20160710004450.2480-1-andrey.utkin@corp.bluecherry.net> X-Mailer: git-send-email 2.8.4 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 In practice, devices sometimes return frames larger than current buffer size, leading to failure in solo_send_desc(). It is not clear which minimal increase in buffer size would be enough, so this patch doubles it, this should be safely assumed as sufficient. Signed-off-by: Andrey Utkin --- drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c b/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c index 8b1cde5..3991643 100644 --- a/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c +++ b/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c @@ -33,7 +33,7 @@ #include "solo6x10-jpeg.h" #define MIN_VID_BUFFERS 2 -#define FRAME_BUF_SIZE (196 * 1024) +#define FRAME_BUF_SIZE (400 * 1024) #define MP4_QS 16 #define DMA_ALIGN 4096