Lines Matching +full:audio +full:- +full:video

1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/delay.h> /* for delay-stuff */
7 #include <linux/pci.h> /* for pci-config-stuff, vendor ids etc. */
16 #include <media/v4l2-device.h>
17 #include <media/v4l2-ctrls.h>
22 #define saa7146_write(sxy,adr,dat) writel((dat),(sxy->mem+(adr)))
23 #define saa7146_read(sxy,adr) readl(sxy->mem+(adr))
107 u32 irq_mask; /* mask to indicate, which irq-events are handled by the extension */
129 u32 revision; /* chip revision; needed for bug-workarounds*/
131 /* pci-device & irq stuff*/
142 /* per device video/vbi information (if available) */
146 /* i2c-stuff */
184 #define SAA7146_I2C_TIMEOUT 100 /* i2c-timeout-value in ms */
185 #define SAA7146_I2C_RETRIES 3 /* how many times shall we retry an i2c-operation? */
186 #define SAA7146_I2C_DELAY 5 /* time we wait after certain i2c-operations */
285 #define BASE_ODD1 0x00 /* Video DMA 1 registers */
289 #define BASE_PAGE1 0x10 /* Video DMA 1 base page */
292 #define BASE_ODD2 0x18 /* Video DMA 2 registers */
296 #define BASE_PAGE2 0x28 /* Video DMA 2 base page */
299 #define BASE_ODD3 0x30 /* Video DMA 3 registers */
303 #define BASE_PAGE3 0x40 /* Video DMA 3 base page */
306 #define PCI_BT_V1 0x48 /* Video/FIFO 1 */
307 #define PCI_BT_V2 0x49 /* Video/FIFO 2 */
308 #define PCI_BT_V3 0x4A /* Video/FIFO 3 */
310 #define PCI_BT_A 0x4C /* Audio */
314 #define DD1_STREAM_B 0x54 /* DD1 B video data stream handling */
315 #define DD1_STREAM_A 0x56 /* DD1 A video data stream handling */
335 #define BASE_A1_IN 0x94 /* Audio 1 input DMA */
339 #define BASE_A1_OUT 0xA0 /* Audio 1 output DMA */
343 #define BASE_A2_IN 0xAC /* Audio 2 input DMA */
347 #define BASE_A2_OUT 0xB8 /* Audio 2 output DMA */
362 #define GPIO_CTRL 0xE0 /* GPIO 0-3 register */
385 #define PCI_VDP1 0x120 /* Video DMA pointer of FIFO 1 */
386 #define PCI_VDP2 0x124 /* Video DMA pointer of FIFO 2 */
387 #define PCI_VDP3 0x128 /* Video DMA pointer of FIFO 3 */
388 #define PCI_ADP1 0x12C /* Audio DMA pointer of audio out 1 */
389 #define PCI_ADP2 0x130 /* Audio DMA pointer of audio in 1 */
390 #define PCI_ADP3 0x134 /* Audio DMA pointer of audio out 2 */
391 #define PCI_ADP4 0x138 /* Audio DMA pointer of audio in 2 */
395 #define A_TIME_SLOT1 0x180, /* from 180 - 1BC */
396 #define A_TIME_SLOT2 0x1C0, /* from 1C0 - 1FC */
415 #define SPCI_A2_IN 0x00008000 /* Audio 2 input DMA protection / limit */
416 #define SPCI_A2_OUT 0x00004000 /* Audio 2 output DMA protection / limit */
417 #define SPCI_A1_IN 0x00002000 /* Audio 1 input DMA protection / limit */
418 #define SPCI_A1_OUT 0x00001000 /* Audio 1 output DMA protection / limit */
419 #define SPCI_AFOU 0x00000800 /* Audio FIFO over- / underflow */
420 #define SPCI_V_PE 0x00000400 /* Video protection address */
421 #define SPCI_VFOU 0x00000200 /* Video FIFO over- / underflow */
422 #define SPCI_FIDA 0x00000100 /* Field ID video port A */
423 #define SPCI_FIDB 0x00000080 /* Field ID video port B */
459 spin_lock_irqsave(&x->int_slock, flags); in SAA7146_IER_DISABLE()
461 spin_unlock_irqrestore(&x->int_slock, flags); in SAA7146_IER_DISABLE()
467 spin_lock_irqsave(&x->int_slock, flags); in SAA7146_IER_ENABLE()
469 spin_unlock_irqrestore(&x->int_slock, flags); in SAA7146_IER_ENABLE()