aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx23418.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-01-04 19:51:17 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:25 -0400
commit350145a4f7d0edffdccdace1221efc6d1d362a36 (patch)
tree05b33f0a7bbbcf1fda1594b76f0c28c51172dbca /drivers/media/video/cx18/cx23418.h
parent31230c5f6f3a3e549f16857b7af45f5e08ca6f30 (diff)
V4L/DVB (10278): cx18: Fix bad audio in first analog capture.
Normalize the APU state before the second firmware load so that audio for the first analog capture is correct. Many thanks to Conexant for supporting me in finding a solution for this problem. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx23418.h')
-rw-r--r--drivers/media/video/cx18/cx23418.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx23418.h b/drivers/media/video/cx18/cx23418.h
index 601f3a2ab742..9956abf576c5 100644
--- a/drivers/media/video/cx18/cx23418.h
+++ b/drivers/media/video/cx18/cx23418.h
@@ -56,6 +56,22 @@
56#define APU_CMD_MASK 0x10000000 56#define APU_CMD_MASK 0x10000000
57#define APU_CMD_MASK_ACK (APU_CMD_MASK | 0x80000000) 57#define APU_CMD_MASK_ACK (APU_CMD_MASK | 0x80000000)
58 58
59#define CX18_APU_ENCODING_METHOD_MPEG (0 << 28)
60#define CX18_APU_ENCODING_METHOD_AC3 (1 << 28)
61
62/* Description: Command APU to start audio
63 IN[0] - audio parameters (same as CX18_CPU_SET_AUDIO_PARAMETERS?)
64 IN[1] - caller buffer address, or 0
65 ReturnCode - ??? */
66#define CX18_APU_START (APU_CMD_MASK | 0x01)
67
68/* Description: Command APU to stop audio
69 IN[0] - encoding method to stop
70 ReturnCode - ??? */
71#define CX18_APU_STOP (APU_CMD_MASK | 0x02)
72
73/* Description: Command APU to reset the AI
74 ReturnCode - ??? */
59#define CX18_APU_RESETAI (APU_CMD_MASK | 0x05) 75#define CX18_APU_RESETAI (APU_CMD_MASK | 0x05)
60 76
61/* Description: This command indicates that a Memory Descriptor List has been 77/* Description: This command indicates that a Memory Descriptor List has been