Lines Matching refs:seg
98 short seg; in st_13linear2alaw() local
115 seg = search(pcm_val, seg_aend, 8); in st_13linear2alaw()
119 if (seg >= 8) /* out of range, return maximum value. */ in st_13linear2alaw()
122 aval = (unsigned char) seg << SEG_SHIFT; in st_13linear2alaw()
123 if (seg < 2) in st_13linear2alaw()
126 aval |= (pcm_val >> seg) & QUANT_MASK; in st_13linear2alaw()
139 int16_t seg; in st_alaw2linear16() local
144 seg = ((unsigned)a_val & SEG_MASK) >> SEG_SHIFT; in st_alaw2linear16()
145 switch (seg) { in st_alaw2linear16()
154 t <<= seg - 1; in st_alaw2linear16()
200 int16_t seg; in st_14linear2ulaw() local
220 seg = search(pcm_val, seg_uend, 8); in st_14linear2ulaw()
226 if (seg >= 8) /* out of range, return maximum value. */ in st_14linear2ulaw()
229 uval = (unsigned char) (seg << 4) | ((pcm_val >> (seg + 1)) & 0xF); in st_14linear2ulaw()