提交 3c854e47 编写于 作者: M malc

Remove bit-rotten threshold handling

Thanks to Toshiya Takeda for bringing up an unrelated issue which led
to this.
Signed-off-by: Nmalc <av1474@comtv.ru>
上级 fbd5de9b
...@@ -47,7 +47,6 @@ static struct { ...@@ -47,7 +47,6 @@ static struct {
int freq; int freq;
int nb_channels; int nb_channels;
int bufsize; int bufsize;
int threshold;
int broken_adc; int broken_adc;
} conf = { } conf = {
.nb_samples = 2048 * 2, .nb_samples = 2048 * 2,
...@@ -239,9 +238,7 @@ static int fmod_run_out (HWVoiceOut *hw) ...@@ -239,9 +238,7 @@ static int fmod_run_out (HWVoiceOut *hw)
return 0; return 0;
} }
if (!hw->pending_disable if (!hw->pending_disable && nb_live) {
&& nb_live
&& (conf.threshold && live <= conf.threshold)) {
ldebug ("live=%d nb_live=%d\n", live, nb_live); ldebug ("live=%d nb_live=%d\n", live, nb_live);
return 0; return 0;
} }
...@@ -664,15 +661,7 @@ static struct audio_option fmod_options[] = { ...@@ -664,15 +661,7 @@ static struct audio_option fmod_options[] = {
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.bufsize, .valp = &conf.bufsize,
.descr = "(undocumented)" .descr = "(undocumented)"
} },
#if 0
{
.name = "THRESHOLD",
.tag = AUD_OPT_INT,
.valp = &conf.threshold,
.descr = "(undocumented)"
}
#endif
{ /* End of list */ } { /* End of list */ }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册