diff options
author | marcel <marcel@FreeBSD.org> | 2004-03-20 04:38:21 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-03-20 04:38:21 +0000 |
commit | 141d659a4fdd8671eb03b367849098471366d9a9 (patch) | |
tree | 6f0be7bb314f54341b83023bfbcfd1e7fa7f0d00 /sys/dev | |
parent | af422b3c3128f935686fc6db6d3679561cb0577d (diff) | |
download | FreeBSD-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/dev')
-rw-r--r-- | sys/dev/sound/pci/vibes.c | 1 |
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; } |