summaryrefslogtreecommitdiff
path: root/drivers/media/pci/tw686x/tw686x-regs.h
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>2016-06-05 02:47:19 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-06-28 13:52:12 +0300
commit447d7c329145989e96cd0a89970a6e009407bad9 (patch)
tree78bb2efe54ae5f6b5586c74e987129f9e4b9a700 /drivers/media/pci/tw686x/tw686x-regs.h
parentc156c54d796f1b926a72a308dc084eec6eaad1c6 (diff)
downloadlinux-447d7c329145989e96cd0a89970a6e009407bad9.tar.xz
[media] tw686x: audio: Allow to configure the period size
Currently, the driver has a fixed period size of 4096 bytes (2048 frames). Since this hardware can configure the audio capture size, this commit allows a period size range of [512-4096]. This is very useful to reduce the audio latency. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/tw686x/tw686x-regs.h')
-rw-r--r--drivers/media/pci/tw686x/tw686x-regs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/pci/tw686x/tw686x-regs.h b/drivers/media/pci/tw686x/tw686x-regs.h
index 37c39bcd7572..15a956642ef4 100644
--- a/drivers/media/pci/tw686x/tw686x-regs.h
+++ b/drivers/media/pci/tw686x/tw686x-regs.h
@@ -105,6 +105,10 @@
0x2d0, 0x2d1, 0x2d2, 0x2d3 })
#define SYS_MODE_DMA_SHIFT 13
+#define AUDIO_DMA_SIZE_SHIFT 19
+#define AUDIO_DMA_SIZE_MIN SZ_512
+#define AUDIO_DMA_SIZE_MAX SZ_4K
+#define AUDIO_DMA_SIZE_MASK (SZ_8K - 1)
#define DMA_CMD_ENABLE BIT(31)
#define INT_STATUS_DMA_TOUT BIT(17)