[media] media: solo6x10: increase FRAME_BUF_SIZE
authorAndrey Utkin <andrey.utkin@corp.bluecherry.net>
Sun, 10 Jul 2016 00:44:50 +0000 (21:44 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Jul 2016 16:32:03 +0000 (13:32 -0300)
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 <andrey.utkin@corp.bluecherry.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c

index 8b1cde57c8177131c6309d9f6768a2714076f611..399164314c28a5394d19e66a106cf686f6e22ef6 100644 (file)
@@ -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