aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx25821
diff options
context:
space:
mode:
authorLeonid V. Fedorenchik <leonidsbox@gmail.com>2011-10-22 00:43:29 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 15:49:25 -0500
commit6f1f0e85da9be5a2ffddf42751400f619b503d62 (patch)
treed1395514d3a3a05510a646c37c21cd135dbd7344 /drivers/media/video/cx25821
parent8e249581611bfc98c1ec18b6e124b613b6b6db1b (diff)
[media] cx25821-audio.h: Fix multiline defines
Change column of line continuation character ('\') and fix indent of multiline defines. Also line up remaining constant defines. Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx25821')
-rw-r--r--drivers/media/video/cx25821/cx25821-audio.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/drivers/media/video/cx25821/cx25821-audio.h b/drivers/media/video/cx25821/cx25821-audio.h
index 57bdcedee857..1fc2d24f5110 100644
--- a/drivers/media/video/cx25821/cx25821-audio.h
+++ b/drivers/media/video/cx25821/cx25821-audio.h
@@ -35,27 +35,28 @@
35 * Space is also added for the 4 no-op instructions added on the end. 35 * Space is also added for the 4 no-op instructions added on the end.
36 */ 36 */
37#ifndef USE_RISC_NOOP 37#ifndef USE_RISC_NOOP
38#define MAX_BUFFER_PROGRAM_SIZE \ 38#define MAX_BUFFER_PROGRAM_SIZE \
39 (2 * LINES_PER_BUFFER * RISC_WRITE_INSTRUCTION_SIZE + \ 39 (2 * LINES_PER_BUFFER * RISC_WRITE_INSTRUCTION_SIZE + \
40 RISC_WRITECR_INSTRUCTION_SIZE * 4) 40 RISC_WRITECR_INSTRUCTION_SIZE * 4)
41#endif 41#endif
42 42
43/* MAE 12 July 2005 Try to use NOOP RISC instruction instead */ 43/* MAE 12 July 2005 Try to use NOOP RISC instruction instead */
44#ifdef USE_RISC_NOOP 44#ifdef USE_RISC_NOOP
45#define MAX_BUFFER_PROGRAM_SIZE \ 45#define MAX_BUFFER_PROGRAM_SIZE \
46 (2 * LINES_PER_BUFFER * RISC_WRITE_INSTRUCTION_SIZE + \ 46 (2 * LINES_PER_BUFFER * RISC_WRITE_INSTRUCTION_SIZE + \
47 RISC_NOOP_INSTRUCTION_SIZE * 4) 47 RISC_NOOP_INSTRUCTION_SIZE * 4)
48#endif 48#endif
49 49
50/* Sizes of various instructions in bytes. Used when adding instructions. */ 50/* Sizes of various instructions in bytes. Used when adding instructions. */
51#define RISC_WRITE_INSTRUCTION_SIZE 12 51#define RISC_WRITE_INSTRUCTION_SIZE 12
52#define RISC_JUMP_INSTRUCTION_SIZE 12 52#define RISC_JUMP_INSTRUCTION_SIZE 12
53#define RISC_SKIP_INSTRUCTION_SIZE 4 53#define RISC_SKIP_INSTRUCTION_SIZE 4
54#define RISC_SYNC_INSTRUCTION_SIZE 4 54#define RISC_SYNC_INSTRUCTION_SIZE 4
55#define RISC_WRITECR_INSTRUCTION_SIZE 16 55#define RISC_WRITECR_INSTRUCTION_SIZE 16
56#define RISC_NOOP_INSTRUCTION_SIZE 4 56#define RISC_NOOP_INSTRUCTION_SIZE 4
57 57
58#define MAX_AUDIO_DMA_BUFFER_SIZE \ 58#define MAX_AUDIO_DMA_BUFFER_SIZE \
59(MAX_BUFFER_PROGRAM_SIZE * NUMBER_OF_PROGRAMS + RISC_SYNC_INSTRUCTION_SIZE) 59 (MAX_BUFFER_PROGRAM_SIZE * NUMBER_OF_PROGRAMS + \
60 RISC_SYNC_INSTRUCTION_SIZE)
60 61
61#endif 62#endif