aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/av7110.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2008-06-22 13:19:39 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:13:44 -0400
commit153755a774578dcf921f8145e786ce25f72368d2 (patch)
tree473febfde0d5cbdc8479c1680ac4a5b4f167a065 /drivers/media/dvb/ttpci/av7110.c
parent9c169df8d6877c618587bf40498f2ef378c97eb8 (diff)
V4L/DVB (8135): WRITE_RPS1() converts to le32 itself
... but two ancient drivers had not noticed. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/av7110.c')
-rw-r--r--drivers/media/dvb/ttpci/av7110.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c
index dfe03cb42671..865c4596b7b7 100644
--- a/drivers/media/dvb/ttpci/av7110.c
+++ b/drivers/media/dvb/ttpci/av7110.c
@@ -2402,18 +2402,18 @@ static int __devinit av7110_attach(struct saa7146_dev* dev,
2402 saa7146_write(dev, MC1, MASK_29); 2402 saa7146_write(dev, MC1, MASK_29);
2403 /* RPS1 timeout disable */ 2403 /* RPS1 timeout disable */
2404 saa7146_write(dev, RPS_TOV1, 0); 2404 saa7146_write(dev, RPS_TOV1, 0);
2405 WRITE_RPS1(cpu_to_le32(CMD_PAUSE | EVT_VBI_B)); 2405 WRITE_RPS1(CMD_PAUSE | EVT_VBI_B);
2406 WRITE_RPS1(cpu_to_le32(CMD_WR_REG_MASK | (GPIO_CTRL>>2))); 2406 WRITE_RPS1(CMD_WR_REG_MASK | (GPIO_CTRL>>2));
2407 WRITE_RPS1(cpu_to_le32(GPIO3_MSK)); 2407 WRITE_RPS1(GPIO3_MSK);
2408 WRITE_RPS1(cpu_to_le32(SAA7146_GPIO_OUTLO<<24)); 2408 WRITE_RPS1(SAA7146_GPIO_OUTLO<<24);
2409#if RPS_IRQ 2409#if RPS_IRQ
2410 /* issue RPS1 interrupt to increment counter */ 2410 /* issue RPS1 interrupt to increment counter */
2411 WRITE_RPS1(cpu_to_le32(CMD_INTERRUPT)); 2411 WRITE_RPS1(CMD_INTERRUPT);
2412#endif 2412#endif
2413 WRITE_RPS1(cpu_to_le32(CMD_STOP)); 2413 WRITE_RPS1(CMD_STOP);
2414 /* Jump to begin of RPS program as safety measure (p37) */ 2414 /* Jump to begin of RPS program as safety measure (p37) */
2415 WRITE_RPS1(cpu_to_le32(CMD_JUMP)); 2415 WRITE_RPS1(CMD_JUMP);
2416 WRITE_RPS1(cpu_to_le32(dev->d_rps1.dma_handle)); 2416 WRITE_RPS1(dev->d_rps1.dma_handle);
2417 2417
2418#if RPS_IRQ 2418#if RPS_IRQ
2419 /* set event counter 1 source as RPS1 interrupt (0x03) (rE4 p53) 2419 /* set event counter 1 source as RPS1 interrupt (0x03) (rE4 p53)
@@ -2526,28 +2526,28 @@ static int __devinit av7110_attach(struct saa7146_dev* dev,
2526 count = 0; 2526 count = 0;
2527 2527
2528 /* Wait Source Line Counter Threshold (p36) */ 2528 /* Wait Source Line Counter Threshold (p36) */
2529 WRITE_RPS1(cpu_to_le32(CMD_PAUSE | EVT_HS)); 2529 WRITE_RPS1(CMD_PAUSE | EVT_HS);
2530 /* Set GPIO3=1 (p42) */ 2530 /* Set GPIO3=1 (p42) */
2531 WRITE_RPS1(cpu_to_le32(CMD_WR_REG_MASK | (GPIO_CTRL>>2))); 2531 WRITE_RPS1(CMD_WR_REG_MASK | (GPIO_CTRL>>2));
2532 WRITE_RPS1(cpu_to_le32(GPIO3_MSK)); 2532 WRITE_RPS1(GPIO3_MSK);
2533 WRITE_RPS1(cpu_to_le32(SAA7146_GPIO_OUTHI<<24)); 2533 WRITE_RPS1(SAA7146_GPIO_OUTHI<<24);
2534#if RPS_IRQ 2534#if RPS_IRQ
2535 /* issue RPS1 interrupt */ 2535 /* issue RPS1 interrupt */
2536 WRITE_RPS1(cpu_to_le32(CMD_INTERRUPT)); 2536 WRITE_RPS1(CMD_INTERRUPT);
2537#endif 2537#endif
2538 /* Wait reset Source Line Counter Threshold (p36) */ 2538 /* Wait reset Source Line Counter Threshold (p36) */
2539 WRITE_RPS1(cpu_to_le32(CMD_PAUSE | RPS_INV | EVT_HS)); 2539 WRITE_RPS1(CMD_PAUSE | RPS_INV | EVT_HS);
2540 /* Set GPIO3=0 (p42) */ 2540 /* Set GPIO3=0 (p42) */
2541 WRITE_RPS1(cpu_to_le32(CMD_WR_REG_MASK | (GPIO_CTRL>>2))); 2541 WRITE_RPS1(CMD_WR_REG_MASK | (GPIO_CTRL>>2));
2542 WRITE_RPS1(cpu_to_le32(GPIO3_MSK)); 2542 WRITE_RPS1(GPIO3_MSK);
2543 WRITE_RPS1(cpu_to_le32(SAA7146_GPIO_OUTLO<<24)); 2543 WRITE_RPS1(SAA7146_GPIO_OUTLO<<24);
2544#if RPS_IRQ 2544#if RPS_IRQ
2545 /* issue RPS1 interrupt */ 2545 /* issue RPS1 interrupt */
2546 WRITE_RPS1(cpu_to_le32(CMD_INTERRUPT)); 2546 WRITE_RPS1(CMD_INTERRUPT);
2547#endif 2547#endif
2548 /* Jump to begin of RPS program (p37) */ 2548 /* Jump to begin of RPS program (p37) */
2549 WRITE_RPS1(cpu_to_le32(CMD_JUMP)); 2549 WRITE_RPS1(CMD_JUMP);
2550 WRITE_RPS1(cpu_to_le32(dev->d_rps1.dma_handle)); 2550 WRITE_RPS1(dev->d_rps1.dma_handle);
2551 2551
2552 /* Fix VSYNC level */ 2552 /* Fix VSYNC level */
2553 saa7146_setgpio(dev, 3, SAA7146_GPIO_OUTLO); 2553 saa7146_setgpio(dev, 3, SAA7146_GPIO_OUTLO);