diff options
author | Holger Waechtler <devnull@localhost> | 2002-12-06 13:03:50 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-12-06 13:03:50 +0000 |
commit | 533bcb3af75d8de922f55b7743f14085dce225d0 (patch) | |
tree | aab5c57b17c7ebdf3eb124ded4ba9b1269faa200 /linux/drivers/media | |
parent | acf616d833b008e204dfca33e37afae4bc3f3272 (diff) | |
download | mediapointer-dvb-s2-533bcb3af75d8de922f55b7743f14085dce225d0.tar.gz mediapointer-dvb-s2-533bcb3af75d8de922f55b7743f14085dce225d0.tar.bz2 |
- rename kdvb-fe to kdvb-fe-%i:%i (adapter/id)
- rename arm_mon thread to kdvb-av7110
- don't start high priority frontend thread before first tuning
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/av7110/av7110.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/av7110/av7110.c b/linux/drivers/media/dvb/av7110/av7110.c index a1c18bc7a..919721e13 100644 --- a/linux/drivers/media/dvb/av7110/av7110.c +++ b/linux/drivers/media/dvb/av7110/av7110.c @@ -355,7 +355,7 @@ static int arm_thread(void *data) current->session=current->pgrp=1; #endif sigfillset(¤t->blocked); - strcpy(current->comm, "arm_mon"); + strncpy(current->comm, "kdvb-av7110", sizeof(current->comm)); av7110->arm_thread = current; unlock_kernel(); diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index 4670205fe..7b0d5bb89 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -439,13 +439,16 @@ int dvb_frontend_thread (void *data) daemonize (); reparent_to_init (); sigfillset (¤t->blocked); - strncpy (current->comm, "kdvb-fe", sizeof (current->comm)); fe->thread = current; + snprintf (current->comm, sizeof (current->comm), "kdvb-fe-%i:%i", + fe->frontend.i2c->adapter->num, fe->frontend.i2c->id); unlock_kernel (); dvb_call_frontend_notifiers (fe, 0); dvb_frontend_init (fe); + fe->lost_sync_count = -1; + while (!dvb_frontend_is_exiting (fe)) { up (&fe->sem); /* is locked when we enter the thread... */ @@ -456,6 +459,9 @@ int dvb_frontend_thread (void *data) return -ERESTARTSYS; } + if (fe->lost_sync_count == -1) + continue; + if (dvb_frontend_is_exiting (fe)) break; |