mixer_set(input_cmd, mask);
} else { /* Get input */
if (shift > 0) {
- input->left = ((mask >> (shift+1)) & 1 == 1 ? ON : OFF);
- input->right = ((mask >> shift) & 1 == 1 ? ON : OFF);
+ input->left = (((mask >> (shift+1)) & 1) == 1 ? ON : OFF);
+ input->right = (((mask >> shift) & 1) == 1 ? ON : OFF);
} else {
input->left = ((mask & 1) == 1 ? ON : OFF);
}
mixer_set(MIXER_OUTPUT_CTRL, mask);
} else { /* Get input */
if (shift > 0) {
- output->left = ((mask >> (shift+1)) & 1 == 1 ? ON : OFF);
- output->right = ((mask >> shift) & 1 == 1 ? ON : OFF);
+ output->left = (((mask >> (shift+1)) & 1) == 1 ? ON : OFF);
+ output->right = (((mask >> shift) & 1) == 1 ? ON : OFF);
} else {
output->left = ((mask & 1) == 1 ? ON : OFF);
}
sb16_outb(MIXER_REG, reg);
for(i = 0; i < 100; i++);
return sb16_inb(MIXER_DATA) & 0xff;
-}
\ No newline at end of file
+}
goto suspend;
}
- if (!rfd_status & RFDS_OK)
+ if (!(rfd_status & RFDS_OK))
{
/* Not OK? What happened? */
assert(0);
goto suspend;
}
- if (!rfd_status & RFDS_OK)
+ if (!(rfd_status & RFDS_OK))
{
/* Not OK? What happened? */
assert(0);