diff options
author | Andy Walls <awalls@radix.net> | 2008-12-14 16:52:12 -0500 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2008-12-14 16:52:12 -0500 |
commit | d06ed8475f6edc68d8aee44a9e8c9cf0e87e29ef (patch) | |
tree | 301c2db36be1b7608bcd86282bc9753678376f18 /linux/drivers/media/video/cx18/cx18-driver.h | |
parent | 66c33fb391b11fa484e3a4f6ba4275be3cd2f4dd (diff) | |
download | mediapointer-dvb-s2-d06ed8475f6edc68d8aee44a9e8c9cf0e87e29ef.tar.gz mediapointer-dvb-s2-d06ed8475f6edc68d8aee44a9e8c9cf0e87e29ef.tar.bz2 |
cx18 Replace magic number 63 with CX18_MAX_FW_MDLS_PER_STREAM
From: Andy Walls <awalls@radix.net>
Removed magic number that referred to firmware limit on the number of
MDLs the firmware can maintain for any stream at any one time.
Priority: normal
Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-driver.h')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-driver.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-driver.h b/linux/drivers/media/video/cx18/cx18-driver.h index 018d98f94..0d2edebc3 100644 --- a/linux/drivers/media/video/cx18/cx18-driver.h +++ b/linux/drivers/media/video/cx18/cx18-driver.h @@ -116,7 +116,7 @@ #define CX18_DEFAULT_ENC_PCM_BUFFERS 1 /* Maximum firmware DMA buffers per stream */ -#define CX18_MAX_MDLS_PER_STREAM 63 +#define CX18_MAX_FW_MDLS_PER_STREAM 63 /* DMA buffer, default size in kB allocated */ #define CX18_DEFAULT_ENC_TS_BUFSIZE 32 @@ -255,7 +255,8 @@ struct cx18_scb; /* forward reference */ #define CX18_MAX_MDL_ACKS 2 -#define CX18_MAX_EPU_WORK_ORDERS 70 /* CPU_DE_RELEASE_MDL bursts 63 commands */ +#define CX18_MAX_EPU_WORK_ORDERS (CX18_MAX_FW_MDLS_PER_STREAM + 7) +/* CPU_DE_RELEASE_MDL can burst CX18_MAX_FW_MDLS_PER_STREAM orders in a group */ #define CX18_F_EWO_MB_STALE_UPON_RECEIPT 0x1 #define CX18_F_EWO_MB_STALE_WHILE_PROC 0x2 |