Home
last modified time | relevance | path

Searched refs:pcm_val (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/sound/core/oss/
Dmulaw.c83 static unsigned char linear2ulaw(int pcm_val) /* 2's complement (16-bit range) */ in linear2ulaw() argument
90 if (pcm_val < 0) { in linear2ulaw()
91 pcm_val = BIAS - pcm_val; in linear2ulaw()
94 pcm_val += BIAS; in linear2ulaw()
97 if (pcm_val > 0x7FFF) in linear2ulaw()
98 pcm_val = 0x7FFF; in linear2ulaw()
101 seg = val_seg(pcm_val); in linear2ulaw()
107 uval = (seg << 4) | ((pcm_val >> (seg + 3)) & 0xF); in linear2ulaw()
/linux-6.1.9/drivers/isdn/mISDN/
Ddsp_audio.c49 int pcm_val; in linear2alaw() local
54 pcm_val = linear; in linear2alaw()
55 if (pcm_val >= 0) { in linear2alaw()
61 pcm_val = -pcm_val; in linear2alaw()
66 if (pcm_val <= seg_end[seg]) in linear2alaw()
71 ((pcm_val >> ((seg) ? (seg + 3) : 4)) & 0x0F)) ^ mask; in linear2alaw()