mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
remove useless usecnt stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -113,11 +113,9 @@ static char outdevname[50] = ALSA_OUTDEV;
|
||||
static struct timeval lasttime;
|
||||
#endif
|
||||
|
||||
static int usecnt;
|
||||
static int silencesuppression = 0;
|
||||
static int silencethreshold = 1000;
|
||||
|
||||
AST_MUTEX_DEFINE_STATIC(usecnt_lock);
|
||||
AST_MUTEX_DEFINE_STATIC(alsalock);
|
||||
|
||||
static const char tdesc[] = "ALSA Console Channel Driver";
|
||||
@@ -581,9 +579,6 @@ static int alsa_hangup(struct ast_channel *c)
|
||||
c->tech_pvt = NULL;
|
||||
alsa.owner = NULL;
|
||||
ast_verbose(" << Hangup on console >> \n");
|
||||
ast_mutex_lock(&usecnt_lock);
|
||||
usecnt--;
|
||||
ast_mutex_unlock(&usecnt_lock);
|
||||
if (hookstate) {
|
||||
hookstate = 0;
|
||||
if (!autoanswer) {
|
||||
@@ -811,10 +806,6 @@ static struct ast_channel *alsa_new(struct chan_alsa_pvt *p, int state)
|
||||
ast_string_field_set(tmp, language, language);
|
||||
p->owner = tmp;
|
||||
ast_setstate(tmp, state);
|
||||
ast_mutex_lock(&usecnt_lock);
|
||||
usecnt++;
|
||||
ast_mutex_unlock(&usecnt_lock);
|
||||
ast_update_use_count();
|
||||
ast_jb_configure(tmp, &global_jbconf);
|
||||
if (state != AST_STATE_DOWN) {
|
||||
if (ast_pbx_start(tmp)) {
|
||||
|
Reference in New Issue
Block a user