diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-core.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-core.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index 01e2ac98970b..c4d1aff1fdb4 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c | |||
@@ -47,15 +47,15 @@ MODULE_LICENSE("GPL"); | |||
47 | 47 | ||
48 | /* ------------------------------------------------------------------ */ | 48 | /* ------------------------------------------------------------------ */ |
49 | 49 | ||
50 | static unsigned int core_debug = 0; | 50 | static unsigned int core_debug; |
51 | module_param(core_debug,int,0644); | 51 | module_param(core_debug,int,0644); |
52 | MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); | 52 | MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); |
53 | 53 | ||
54 | static unsigned int nicam = 0; | 54 | static unsigned int nicam; |
55 | module_param(nicam,int,0644); | 55 | module_param(nicam,int,0644); |
56 | MODULE_PARM_DESC(nicam,"tv audio is nicam"); | 56 | MODULE_PARM_DESC(nicam,"tv audio is nicam"); |
57 | 57 | ||
58 | static unsigned int nocomb = 0; | 58 | static unsigned int nocomb; |
59 | module_param(nocomb,int,0644); | 59 | module_param(nocomb,int,0644); |
60 | MODULE_PARM_DESC(nocomb,"disable comb filter"); | 60 | MODULE_PARM_DESC(nocomb,"disable comb filter"); |
61 | 61 | ||
@@ -219,7 +219,7 @@ cx88_free_buffer(struct videobuf_queue *q, struct cx88_buffer *buf) | |||
219 | videobuf_waiton(&buf->vb,0,0); | 219 | videobuf_waiton(&buf->vb,0,0); |
220 | videobuf_dma_unmap(q, dma); | 220 | videobuf_dma_unmap(q, dma); |
221 | videobuf_dma_free(dma); | 221 | videobuf_dma_free(dma); |
222 | btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc); | 222 | btcx_riscmem_free(to_pci_dev(q->dev), &buf->risc); |
223 | buf->vb.state = VIDEOBUF_NEEDS_INIT; | 223 | buf->vb.state = VIDEOBUF_NEEDS_INIT; |
224 | } | 224 | } |
225 | 225 | ||
@@ -548,7 +548,7 @@ void cx88_wakeup(struct cx88_core *core, | |||
548 | mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); | 548 | mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); |
549 | } | 549 | } |
550 | if (bc != 1) | 550 | if (bc != 1) |
551 | printk("%s: %d buffers handled (should be 1)\n",__FUNCTION__,bc); | 551 | printk("%s: %d buffers handled (should be 1)\n",__func__,bc); |
552 | } | 552 | } |
553 | 553 | ||
554 | void cx88_shutdown(struct cx88_core *core) | 554 | void cx88_shutdown(struct cx88_core *core) |
@@ -577,7 +577,7 @@ void cx88_shutdown(struct cx88_core *core) | |||
577 | 577 | ||
578 | int cx88_reset(struct cx88_core *core) | 578 | int cx88_reset(struct cx88_core *core) |
579 | { | 579 | { |
580 | dprintk(1,"%s\n",__FUNCTION__); | 580 | dprintk(1,"%s\n",__func__); |
581 | cx88_shutdown(core); | 581 | cx88_shutdown(core); |
582 | 582 | ||
583 | /* clear irq status */ | 583 | /* clear irq status */ |
@@ -929,7 +929,10 @@ int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) | |||
929 | 929 | ||
930 | dprintk(1,"set_tvnorm: MO_INPUT_FORMAT 0x%08x [old=0x%08x]\n", | 930 | dprintk(1,"set_tvnorm: MO_INPUT_FORMAT 0x%08x [old=0x%08x]\n", |
931 | cxiformat, cx_read(MO_INPUT_FORMAT) & 0x0f); | 931 | cxiformat, cx_read(MO_INPUT_FORMAT) & 0x0f); |
932 | cx_andor(MO_INPUT_FORMAT, 0xf, cxiformat); | 932 | /* Chroma AGC must be disabled if SECAM is used, we enable it |
933 | by default on PAL and NTSC */ | ||
934 | cx_andor(MO_INPUT_FORMAT, 0x40f, | ||
935 | norm & V4L2_STD_SECAM ? cxiformat : cxiformat | 0x400); | ||
933 | 936 | ||
934 | // FIXME: as-is from DScaler | 937 | // FIXME: as-is from DScaler |
935 | dprintk(1,"set_tvnorm: MO_OUTPUT_FORMAT 0x%08x [old=0x%08x]\n", | 938 | dprintk(1,"set_tvnorm: MO_OUTPUT_FORMAT 0x%08x [old=0x%08x]\n", |