Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17a84dc1 authored by Gilad Broner's avatar Gilad Broner Committed by Gerrit - the friendly Code Review server
Browse files

media: dvb: mpq-sdmx: increase number of physical chunks



Buffers used with secure demux may be fragmented into more than
10 physical chunks. In such case current limit will prevent
the filter from starting.
Increase the maximal number of chunks to 256, and shared buffer size
to 128kb in order to accommodate the increased command struct.
As the SDMX application must use the same value, increment the
major version required for API compatibility.

Change-Id: Ie1f3381fa1e391c54978cb3c14305db21e14ef4f
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent e71d9775
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
#include "mpq_dmx_plugin_common.h"
#include "mpq_sdmx.h"

#define SDMX_MAJOR_VERSION_MATCH	(6)
#define SDMX_MAJOR_VERSION_MATCH	(7)

/* Length of mandatory fields that must exist in header of video PES */
#define PES_MANDATORY_FIELDS_LEN			9
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
static struct qseecom_handle *sdmx_qseecom_handles[SDMX_MAX_SESSIONS];
static struct mutex sdmx_lock[SDMX_MAX_SESSIONS];

#define QSEECOM_SBUFF_SIZE	SZ_16K
#define QSEECOM_SBUFF_SIZE	SZ_128K
#define QSEECOM_ALIGN_SIZE	0x40
#define QSEECOM_ALIGN_MASK	(QSEECOM_ALIGN_SIZE - 1)
#define QSEECOM_ALIGN(x)	\
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -19,7 +19,7 @@
#define SDMX_MAX_SESSIONS  (4)
#define SDMX_LOOPBACK_PID  (0x2000)

#define SDMX_MAX_PHYSICAL_CHUNKS (10)
#define SDMX_MAX_PHYSICAL_CHUNKS (256)

/* Filter-level error indicators */
#define SDMX_FILTER_SUCCESS                       (0)