From 056dc22c4f11fe95aaa572351c6f3f6fc2f8919b Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 20 Mar 2004 04:38:21 +0000 Subject: [PATCH] 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 --- sys/dev/sound/pci/vibes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/sound/pci/vibes.c b/sys/dev/sound/pci/vibes.c index c6696834f4f..c7028f59ee4 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; }