Lines Matching +full:5 +full:- +full:6
20 /* ulaw[unsigned char] -> signed 16-bit */
22 /* alaw[unsigned char] -> signed 16-bit */
28 /* signed 16-bit -> law */
32 /* alaw -> ulaw */
34 /* ulaw -> alaw */
61 pcm_val = -pcm_val; in linear2alaw()
84 i = (i + 0x100) << (seg - 1); in alaw2linear()
85 return (short int) ((alaw & 0x80) ? i : -i); in alaw2linear()
93 mu = 255 - ulaw; in ulaw2linear()
99 y = -y; in ulaw2linear()
103 #define BIAS 0x84 /*!< define the add-in bias for 16 bit samples */
110 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, in linear2ulaw()
111 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, in linear2ulaw()
112 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, in linear2ulaw()
113 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, in linear2ulaw()
114 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, in linear2ulaw()
115 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, in linear2ulaw()
127 /* Get the sample into sign-magnitude. */ in linear2ulaw()
130 sample = -sample; /* get magnitude */ in linear2ulaw()
164 /* generating ulaw-table */ in dsp_audio_generate_s2law_table()
165 for (i = -32768; i < 32768; i++) { in dsp_audio_generate_s2law_table()
170 /* generating alaw-table */ in dsp_audio_generate_s2law_table()
171 for (i = -32768; i < 32768; i++) { in dsp_audio_generate_s2law_table()
180 * the seven bit sample is the number of every second alaw-sample ordered by
187 * generate table for conversion law from/to 7-bit alaw-like sample *
210 /* spl is the source: the law-sample (converted to alaw) */ in dsp_audio_generate_seven()
214 /* find the 7-bit-sample */ in dsp_audio_generate_seven()
219 /* write 7-bit audio value */ in dsp_audio_generate_seven()
231 /* mix 2*law -> law */
252 if (sample < -32768) in dsp_audio_generate_mix_table()
253 sample = -32768; in dsp_audio_generate_mix_table()
316 (dsp_audio_law_to_s32[i] * denum[6] / num[6]) & 0xffff]; in dsp_audio_generate_volume_changes()
318 (dsp_audio_law_to_s32[i] * denum[5] / num[5]) & 0xffff]; in dsp_audio_generate_volume_changes()
330 if (sample < -32768) in dsp_audio_generate_volume_changes()
331 sample = -32768; in dsp_audio_generate_volume_changes()
336 if (sample < -32768) in dsp_audio_generate_volume_changes()
337 sample = -32768; in dsp_audio_generate_volume_changes()
342 if (sample < -32768) in dsp_audio_generate_volume_changes()
343 sample = -32768; in dsp_audio_generate_volume_changes()
348 if (sample < -32768) in dsp_audio_generate_volume_changes()
349 sample = -32768; in dsp_audio_generate_volume_changes()
354 if (sample < -32768) in dsp_audio_generate_volume_changes()
355 sample = -32768; in dsp_audio_generate_volume_changes()
359 sample = dsp_audio_law_to_s32[i] * num[5] / denum[5]; in dsp_audio_generate_volume_changes()
360 if (sample < -32768) in dsp_audio_generate_volume_changes()
361 sample = -32768; in dsp_audio_generate_volume_changes()
365 sample = dsp_audio_law_to_s32[i] * num[6] / denum[6]; in dsp_audio_generate_volume_changes()
366 if (sample < -32768) in dsp_audio_generate_volume_changes()
367 sample = -32768; in dsp_audio_generate_volume_changes()
372 if (sample < -32768) in dsp_audio_generate_volume_changes()
373 sample = -32768; in dsp_audio_generate_volume_changes()
388 * -8 to 8, which is a shift to the power of 2. 0 == no volume, 3 == volume*8
413 ii = skb->len; in dsp_change_volume()
414 p = skb->data; in dsp_change_volume()