···10781078 for (i = 0 ; i < ARRAY_SIZE(cbit); i++) {10791079 unsigned short val;10801080 snd_ac97_write(ac97, reg, 0x8080 | cbit[i] | (cbit[i] << 8));10811081+ /* Do the read twice due to buffers on some ac97 codecs.10821082+ * e.g. The STAC9704 returns exactly what you wrote the the register10831083+ * if you read it immediately. This causes the detect routine to fail.10841084+ */10851085+ val = snd_ac97_read(ac97, reg);10811086 val = snd_ac97_read(ac97, reg);10821087 if (! *lo_max && (val & 0x7f) == cbit[i])10831088 *lo_max = max[i];