diff driver/pt1_pci.c @ 111:c8cfd684fee8

re-enable set_sleepmode. backing out r109.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 19 Mar 2010 00:51:35 +0900
parents 8a2a032bfa50
children 4303bbfd5d37
line wrap: on
line diff
--- a/driver/pt1_pci.c	Sun Mar 07 20:10:18 2010 +0900
+++ b/driver/pt1_pci.c	Fri Mar 19 00:51:35 2010 +0900
@@ -343,13 +343,13 @@
 						mutex_unlock(&device[lp]->lock);
 						return -EIO ;
 					}
-#if 0
+
 					/* wake tuner up */
 					set_sleepmode(channel->ptr->regs, &channel->lock,
 								  channel->address, channel->type,
 								  TYPE_WAKEUP);
 					schedule_timeout_interruptible(msecs_to_jiffies(50));
-#endif
+
 					channel->drop  = 0 ;
 					channel->valid = TRUE ;
 					channel->overflow = 0 ;
@@ -389,12 +389,10 @@
 	}
 	mutex_unlock(&channel->ptr->lock);
 
-#if 0
 	/* send tuner to sleep */
 	set_sleepmode(channel->ptr->regs, &channel->lock,
 				  channel->address, channel->type, TYPE_SLEEP);
 	schedule_timeout_interruptible(msecs_to_jiffies(50));
-#endif
 
 	return 0;
 }
@@ -757,7 +755,7 @@
 	// ½é´ü²½´°Î»
 	for(lp = 0 ; lp < MAX_CHANNEL ; lp++){
 		set_sleepmode(dev_conf->regs, &dev_conf->lock,
-						i2c_address[lp], channeltype[lp], TYPE_WAKEUP);
+						i2c_address[lp], channeltype[lp], TYPE_SLEEP);
 
 		schedule_timeout_interruptible(msecs_to_jiffies(50));
 	}