summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-03-20 04:38:21 +0000
committermarcel <marcel@FreeBSD.org>2004-03-20 04:38:21 +0000
commit141d659a4fdd8671eb03b367849098471366d9a9 (patch)
tree6f0be7bb314f54341b83023bfbcfd1e7fa7f0d00 /sys
parentaf422b3c3128f935686fc6db6d3679561cb0577d (diff)
downloadFreeBSD-src-141d659a4fdd8671eb03b367849098471366d9a9.zip
FreeBSD-src-141d659a4fdd8671eb03b367849098471366d9a9.tar.gz
Actually program the list of recording devices in sv_mix_setrecsrc().
This change has not been tested. This change was triggered by a gcc(1) warning on ia64 at -O2. The variable v was not used after being computed, which resulted in enough dead code elimination (DCE) to confuse the compiler and emit a bogus warning about the use of the variable i without prior definition. The variable i is the loop variable. Submitted by: des Responsibility: marcel
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/pci/vibes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/vibes.c b/sys/dev/sound/pci/vibes.c
index c669683..c7028f5 100644
--- a/sys/dev/sound/pci/vibes.c
+++ b/sys/dev/sound/pci/vibes.c
@@ -547,6 +547,7 @@ sv_mix_setrecsrc(struct snd_mixer *m, u_int32_t mask)
}
}
DEB(printf("sv_mix_setrecsrc: mask 0x%08x adc_input 0x%02x\n", mask, v));
+ sv_indirect_set(sc, SV_REG_ADC_INPUT, v);
return mask;
}
OpenPOWER on IntegriCloud