Lines Matching refs:bits
202 * Third it converts the value to the number of bits that a hardware
208 * bits - The number of bits the hardware needs. If this value
218 * ( each channel is "bits" wide )
221 ac_val_scale(int left, int right, int bits)
226 if (bits < 0) { /* This is gain not ATTN */
229 bits = -bits;
252 return (((left * ((1 << bits) - 1) / 100) << 8) |
253 (right * ((1 << bits) - 1) / 100));
257 ac_mono_scale(int val, int bits)
261 if (bits < 0) { /* This is gain not ATTN */
262 bits = -bits;
266 return (val * ((1 << bits) - 1) / 100);
677 * to set bits in a device register.
687 * to clear bits in a device register.
855 v &= ~mask; /* clear all of our bits, preserve others */
857 /* now set the mute bit, and volume bits */