}
close_mixer();
}
- debug_mutex_unlock(&alsa_mutex, 3);
- pthread_cleanup_pop(0); // release the mutex
+ pthread_cleanup_pop(1); // release the mutex
} else {
// debug(1, "Has no mixer and thus no hardware mute.");
}
}
}
}
- debug_mutex_unlock(&alsa_mutex, 3);
- pthread_cleanup_pop(0);
+ // debug_mutex_unlock(&alsa_mutex, 3);
+ pthread_cleanup_pop(1);
// here, occasionally pretend there's a problem with pcm_get_delay()
// if ((random() % 100000) < 3) // keep it pretty rare
// reply = -EIO; // pretend something bad has happened
do_mute(0);
}
- debug_mutex_unlock(&alsa_mutex, 3);
- pthread_cleanup_pop(0); // release the mutex
+ // debug_mutex_unlock(&alsa_mutex, 3);
+ pthread_cleanup_pop(1); // release the mutex
}
if (ret == 0) {
pthread_cleanup_debug_mutex_lock(&alsa_mutex, 10000, 1);
frame_index = 0;
measurement_data_is_valid = 0;
}
- debug_mutex_unlock(&alsa_mutex, 3);
- pthread_cleanup_pop(0); // release the mutex
+ // debug_mutex_unlock(&alsa_mutex, 3);
+ pthread_cleanup_pop(1); // release the mutex
}
return ret;
}
measurement_data_is_valid = 0;
alsa_handle = NULL;
}
- debug_mutex_unlock(&alsa_mutex, 3);
- pthread_cleanup_pop(0); // release the mutex
+ // debug_mutex_unlock(&alsa_mutex, 3);
+ pthread_cleanup_pop(1); // release the mutex
}
static void stop(void) {
pthread_cleanup_debug_mutex_lock(&alsa_mutex, 1000, 1);
volume_set_request = 1; // an external request has been made to set the volume
do_volume(vol);
- debug_mutex_unlock(&alsa_mutex, 3);
- pthread_cleanup_pop(0); // release the mutex
+ // debug_mutex_unlock(&alsa_mutex, 3);
+ pthread_cleanup_pop(1); // release the mutex
}
/*
mute_request_pending = 1;
overriding_mute_state_requested = mute_state_requested;
do_mute(mute_state_requested);
- debug_mutex_unlock(&alsa_mutex, 3);
- pthread_cleanup_pop(0); // release the mutex
+ // debug_mutex_unlock(&alsa_mutex, 3);
+ pthread_cleanup_pop(1); // release the mutex
}
void do_mute(int mute_state_requested) {