Lines Matching refs:mc
69 pcm2adpcm_step(struct msm6258_codecvar *mc, int16_t a) in pcm2adpcm_step() argument
71 int estim = (int)mc->mc_estim; in pcm2adpcm_step()
77 df = a - mc->mc_amp; in pcm2adpcm_step()
90 mc->mc_amp += (short)(adpcm_estimindex[(int)s] * dl); in pcm2adpcm_step()
97 mc->mc_estim = estim; in pcm2adpcm_step()
104 struct msm6258_codecvar *mc; in msm6258_internal_to_adpcm() local
112 mc = arg->context; in msm6258_internal_to_adpcm()
122 f = pcm2adpcm_step(mc, s); in msm6258_internal_to_adpcm()
126 f |= pcm2adpcm_step(mc, s) << 4; in msm6258_internal_to_adpcm()
137 adpcm2pcm_step(struct msm6258_codecvar *mc, uint8_t b) in adpcm2pcm_step() argument
139 int estim = (int)mc->mc_estim; in adpcm2pcm_step()
141 mc->mc_amp += adpcm_estim[estim] * adpcm_estimindex[b]; in adpcm2pcm_step()
149 mc->mc_estim = estim; in adpcm2pcm_step()
151 return mc->mc_amp; in adpcm2pcm_step()
157 struct msm6258_codecvar *mc; in msm6258_adpcm_to_internal() local
165 mc = arg->context; in msm6258_adpcm_to_internal()
173 s = adpcm2pcm_step(mc, a & 0x0f); in msm6258_adpcm_to_internal()
177 s = adpcm2pcm_step(mc, a >> 4); in msm6258_adpcm_to_internal()