]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
DVB: cx23885: Ensure PAD_CTRL is always reset to a sensible default
authorSteven Toth <stoth@hauppauge.com>
Tue, 29 Jul 2008 02:01:35 +0000 (22:01 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 19:43:09 +0000 (12:43 -0700)
(cherry picked from commit ecda5966c90746a044ff68e78b1062adcddd9664)

DVB: cx23885: Ensure PAD_CTRL is always reset to a sensible default

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>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/cx23885/cx23885-core.c

index fe5c09a0683276f3aa88b6adcd91ce6bcc33d111..c6e9498f746e475de137d1eae8d6e2d0ed20d18a 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);