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
This commit is contained in:
Marcel Moolenaar 2004-03-20 04:38:21 +00:00
parent 5ab92b80d0
commit 056dc22c4f

View File

@ -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)); 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; return mask;
} }