comparison driver/pt1_tuner.c @ 102:6e661e828b43

send tuners to sleep mode when they are inactive
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 24 Feb 2010 22:44:06 +0900
parents c940283dd890
children 2dc994610477
comparison
equal deleted inserted replaced
101:3f7288b0672c 102:6e661e828b43
192 if(type == TYPE_WAKEUP){ 192 if(type == TYPE_WAKEUP){
193 switch(tuner_type){ 193 switch(tuner_type){
194 case CHANNEL_TYPE_ISDB_S: 194 case CHANNEL_TYPE_ISDB_S:
195 printk(KERN_INFO "PT1:ISDB-S Wakeup\n"); 195 printk(KERN_INFO "PT1:ISDB-S Wakeup\n");
196 memcpy(&wk, &isdb_s_wake, sizeof(WBLOCK)); 196 memcpy(&wk, &isdb_s_wake, sizeof(WBLOCK));
197 wk.addr = address ; 197 wk.addr = address;
198 i2c_write(regs, lock, &wk); 198 i2c_write(regs, lock, &wk);
199 199
200 memcpy(&wk, &isdb_s_sleep, sizeof(WBLOCK)); 200 memcpy(&wk, &isdb_s_wake2, sizeof(WBLOCK));
201 wk.value[1] = 0x01 ; 201 wk.addr = address;
202 wk.addr = address ;
203 i2c_write(regs, lock, &wk); 202 i2c_write(regs, lock, &wk);
204 break ; 203 break ;
205 case CHANNEL_TYPE_ISDB_T: 204 case CHANNEL_TYPE_ISDB_T:
206 printk(KERN_INFO "PT1:ISDB-T Wakeup\n"); 205 printk(KERN_INFO "PT1:ISDB-T Wakeup\n");
207 memcpy(&wk, &isdb_t_wake, sizeof(WBLOCK)); 206 memcpy(&wk, &isdb_t_wake, sizeof(WBLOCK));
208 wk.addr = address ; 207 wk.addr = address;
209 i2c_write(regs, lock, &wk); 208 i2c_write(regs, lock, &wk);
210 209
211 memcpy(&wk, &isdb_s_sleep, sizeof(WBLOCK)); 210 memcpy(&wk, &isdb_t_wake2, sizeof(WBLOCK));
212 wk.value[1] = 0x90 ; 211 wk.addr = address;
213 wk.addr = address ;
214 i2c_write(regs, lock, &wk); 212 i2c_write(regs, lock, &wk);
215 break ; 213 break ;
216 } 214 }
217 } 215 }
218 if(type == TYPE_SLEEP){ 216 if(type == TYPE_SLEEP){