Lines Matching defs:bits
446 uint32_t bits;
453 bits = CNTL_FORMAT_ULAW;
456 bits = CNTL_FORMAT_ALAW;
459 bits = CNTL_FORMAT_SLINEAR16BE;
466 bits |= CNTL_OLB;
468 bits |= CNTL_CHANS_STEREO;
469 bits |= harmony_speed_bits(sc, play->sample_rate);
470 sc->sc_cntlbits = bits;
522 /* Setting some bits in gainctl requires a reset */
1144 uint32_t bits;
1169 return harmony_speeds[i].bits;
1179 uint32_t bits, mask, val, old;
1181 /* XXX leave these bits alone or the chip will not come out of CNTL */
1182 bits = GAINCTL_LE | GAINCTL_HE | GAINCTL_SE | GAINCTL_IS_MASK;
1185 bits |= ((sc->sc_input_lvl.left >> (8 - GAINCTL_INPUT_BITS)) <<
1187 bits |= ((sc->sc_input_lvl.right >> (8 - GAINCTL_INPUT_BITS)) <<
1193 bits |= (val << GAINCTL_OUTPUT_LEFT_S) & GAINCTL_OUTPUT_LEFT_M;
1195 bits |= (val << GAINCTL_OUTPUT_RIGHT_S) & GAINCTL_OUTPUT_RIGHT_M;
1200 bits |= (val << GAINCTL_MONITOR_S) & GAINCTL_MONITOR_M;
1203 bits &= ~GAINCTL_IS_MASK;
1205 bits |= GAINCTL_IS_LINE;
1207 bits |= GAINCTL_IS_MICROPHONE;
1210 bits &= ~(GAINCTL_LE | GAINCTL_HE | GAINCTL_SE);
1212 bits |= GAINCTL_LE;
1214 bits |= GAINCTL_SE;
1216 bits |= GAINCTL_HE;
1220 bus_space_write_4(sc->sc_bt, sc->sc_bh, HARMONY_GAINCTL, bits);
1221 if ((old & mask) != (bits & mask))