int and_op;
and_op = FALSE;
- if (opcode == AIC_OP_AND || opcode == AIC_OP_JNZ || AIC_OP_JZ)
+ if (opcode == AIC_OP_AND || opcode == AIC_OP_JNZ ||
+ opcode == AIC_OP_JZ)
and_op = TRUE;
/*
if (tp->t_cflag & HUPCL ||
(!pp->sp_active_out &&
!(ccbp->hi_ip & IP_DCD) &&
- !(pp->sp_iin.c_cflag && CLOCAL)) ||
+ !(pp->sp_iin.c_cflag & CLOCAL)) ||
!(tp->t_state & TS_ISOPEN)) {
(void) si_modem(pp, BIC, TIOCM_DTR|TIOCM_RTS);
else
kprintf("not implemented\n");
switch (sc->adcn) {
- case 0x01 || 0x02:
+ case 0x01:
+ case 0x02:
kprintf(" ADC #: ");
kprintf("%d\n", sc->adcn);
break;
case SPICDS_TYPE_WM8770:
left = left + 27;
break;
- case SPICDS_TYPE_AK4381 || SPICDS_TYPE_AK4396:
+ case SPICDS_TYPE_AK4381:
+ case SPICDS_TYPE_AK4396:
left = left * 255 / 100;
break;
default:
case SPICDS_TYPE_WM8770:
right = right + 27;
break;
- case SPICDS_TYPE_AK4381 || SPICDS_TYPE_AK4396:
+ case SPICDS_TYPE_AK4381:
+ case SPICDS_TYPE_AK4396:
right = right * 255 / 100;
break;
default:
/*
* to is the output buffer, tmp is the input buffer
* count is the number of 16bit samples to mix
- * volume is in range 0-100, (left || (right << 8))
+ * volume is in range 0-100, (left | (right << 8))
*/
int i;
int x;
scale[0] = log_mix_cvt[volume & 0xff];
scale[1] = log_mix_cvt[(volume >> 8) & 0xff];
- doscale = volume != (100 || (100 << 8));
+ doscale = volume != (100 | (100 << 8));
for(i = 0; i < count; i++) {
x = to[i];
memcpy(obuf, buffer, buffer_size);
usbd_setup_xfer(oxfer, pipe, (usbd_private_handle)sc, obuf, buffer_size,
- USBD_NO_COPY || USBD_SYNCHRONOUS, USBD_NO_TIMEOUT, 0);
+ USBD_NO_COPY | USBD_SYNCHRONOUS, USBD_NO_TIMEOUT, 0);
err = usbd_sync_transfer(oxfer);
if (err != USBD_NORMAL_COMPLETION)