Mercurial > pt1
changeset 109:8a2a032bfa50
temporarily disabled set_sleepmode due to frequent read problem.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 06 Mar 2010 19:13:17 +0900 |
parents | bc173c443e4d |
children | d89f0da0a7e4 |
files | driver/pt1_pci.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/driver/pt1_pci.c Wed Mar 03 03:54:05 2010 +0900 +++ b/driver/pt1_pci.c Sat Mar 06 19:13:17 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,10 +389,12 @@ } 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; } @@ -755,7 +757,7 @@ // ½é´ü²½´°Î» for(lp = 0 ; lp < MAX_CHANNEL ; lp++){ set_sleepmode(dev_conf->regs, &dev_conf->lock, - i2c_address[lp], channeltype[lp], TYPE_SLEEP); + i2c_address[lp], channeltype[lp], TYPE_WAKEUP); schedule_timeout_interruptible(msecs_to_jiffies(50)); }