]> err.no Git - linux-2.6/commitdiff
V4L/DVB (8465): cx23885: Ensure PAD_CTRL is always reset to a sensible default
authorSteven Toth <stoth@hauppauge.com>
Sat, 28 Jun 2008 03:52:45 +0000 (00:52 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 26 Jul 2008 15:54:22 +0000 (12:54 -0300)
PAD_CTRL controls TS1 and TS2 input and output states, if the register
became corrupt the driver was never able to recover.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx23885/cx23885-core.c

index e14371ef1269e0e3b684f731ed0b1bbb220ed920..f5afc8d7cb1232165a19a8d0a005bd1476acf7b4 100644 (file)
@@ -460,6 +460,7 @@ static void cx23885_reset(struct cx23885_dev *dev)
        cx_write(AUDIO_INT_INT_STAT, 0xffffffff);
        cx_write(AUDIO_EXT_INT_STAT, 0xffffffff);
        cx_write(CLK_DELAY, cx_read(CLK_DELAY) & 0x80000000);
+       cx_write(PAD_CTRL, 0x00500300);
 
        mdelay(100);