Lines Matching refs:mc

177 	struct soc_mixer_control *mc =  in snd_soc_info_volsw()  local
182 max = uinfo->value.integer.max = mc->max - mc->min; in snd_soc_info_volsw()
183 if (mc->platform_max && mc->platform_max < max) in snd_soc_info_volsw()
184 max = mc->platform_max; in snd_soc_info_volsw()
197 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw()
221 struct soc_mixer_control *mc = in snd_soc_info_volsw_sx() local
225 if (mc->platform_max) in snd_soc_info_volsw_sx()
226 max = mc->platform_max; in snd_soc_info_volsw_sx()
228 max = mc->max; in snd_soc_info_volsw_sx()
235 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw_sx()
257 struct soc_mixer_control *mc = in snd_soc_get_volsw() local
259 unsigned int reg = mc->reg; in snd_soc_get_volsw()
260 unsigned int reg2 = mc->rreg; in snd_soc_get_volsw()
261 unsigned int shift = mc->shift; in snd_soc_get_volsw()
262 unsigned int rshift = mc->rshift; in snd_soc_get_volsw()
263 int max = mc->max; in snd_soc_get_volsw()
264 int min = mc->min; in snd_soc_get_volsw()
265 int sign_bit = mc->sign_bit; in snd_soc_get_volsw()
267 unsigned int invert = mc->invert; in snd_soc_get_volsw()
283 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_get_volsw()
317 struct soc_mixer_control *mc = in snd_soc_put_volsw() local
319 unsigned int reg = mc->reg; in snd_soc_put_volsw()
320 unsigned int reg2 = mc->rreg; in snd_soc_put_volsw()
321 unsigned int shift = mc->shift; in snd_soc_put_volsw()
322 unsigned int rshift = mc->rshift; in snd_soc_put_volsw()
323 int max = mc->max; in snd_soc_put_volsw()
324 int min = mc->min; in snd_soc_put_volsw()
325 unsigned int sign_bit = mc->sign_bit; in snd_soc_put_volsw()
327 unsigned int invert = mc->invert; in snd_soc_put_volsw()
339 if (mc->platform_max && ((int)val + min) > mc->platform_max) in snd_soc_put_volsw()
348 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_put_volsw()
352 if (mc->platform_max && ((int)val2 + min) > mc->platform_max) in snd_soc_put_volsw()
399 struct soc_mixer_control *mc = in snd_soc_get_volsw_sx() local
401 unsigned int reg = mc->reg; in snd_soc_get_volsw_sx()
402 unsigned int reg2 = mc->rreg; in snd_soc_get_volsw_sx()
403 unsigned int shift = mc->shift; in snd_soc_get_volsw_sx()
404 unsigned int rshift = mc->rshift; in snd_soc_get_volsw_sx()
405 int max = mc->max; in snd_soc_get_volsw_sx()
406 int min = mc->min; in snd_soc_get_volsw_sx()
413 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_get_volsw_sx()
436 struct soc_mixer_control *mc = in snd_soc_put_volsw_sx() local
439 unsigned int reg = mc->reg; in snd_soc_put_volsw_sx()
440 unsigned int reg2 = mc->rreg; in snd_soc_put_volsw_sx()
441 unsigned int shift = mc->shift; in snd_soc_put_volsw_sx()
442 unsigned int rshift = mc->rshift; in snd_soc_put_volsw_sx()
443 int max = mc->max; in snd_soc_put_volsw_sx()
444 int min = mc->min; in snd_soc_put_volsw_sx()
453 if (mc->platform_max && val > mc->platform_max) in snd_soc_put_volsw_sx()
466 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_put_volsw_sx()
469 if (mc->platform_max && val2 > mc->platform_max) in snd_soc_put_volsw_sx()
503 struct soc_mixer_control *mc = in snd_soc_info_volsw_range() local
506 int min = mc->min; in snd_soc_info_volsw_range()
508 if (!mc->platform_max) in snd_soc_info_volsw_range()
509 mc->platform_max = mc->max; in snd_soc_info_volsw_range()
510 platform_max = mc->platform_max; in snd_soc_info_volsw_range()
513 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw_range()
533 struct soc_mixer_control *mc = in snd_soc_put_volsw_range() local
536 unsigned int reg = mc->reg; in snd_soc_put_volsw_range()
537 unsigned int rreg = mc->rreg; in snd_soc_put_volsw_range()
538 unsigned int shift = mc->shift; in snd_soc_put_volsw_range()
539 int min = mc->min; in snd_soc_put_volsw_range()
540 int max = mc->max; in snd_soc_put_volsw_range()
542 unsigned int invert = mc->invert; in snd_soc_put_volsw_range()
549 if (mc->platform_max && tmp > mc->platform_max) in snd_soc_put_volsw_range()
551 if (tmp > mc->max - mc->min) in snd_soc_put_volsw_range()
566 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_put_volsw_range()
570 if (mc->platform_max && tmp > mc->platform_max) in snd_soc_put_volsw_range()
572 if (tmp > mc->max - mc->min) in snd_soc_put_volsw_range()
607 struct soc_mixer_control *mc = in snd_soc_get_volsw_range() local
609 unsigned int reg = mc->reg; in snd_soc_get_volsw_range()
610 unsigned int rreg = mc->rreg; in snd_soc_get_volsw_range()
611 unsigned int shift = mc->shift; in snd_soc_get_volsw_range()
612 int min = mc->min; in snd_soc_get_volsw_range()
613 int max = mc->max; in snd_soc_get_volsw_range()
615 unsigned int invert = mc->invert; in snd_soc_get_volsw_range()
627 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_get_volsw_range()
663 struct soc_mixer_control *mc = (struct soc_mixer_control *)kctl->private_value; in snd_soc_limit_volume() local
664 if (max <= mc->max - mc->min) { in snd_soc_limit_volume()
665 mc->platform_max = max; in snd_soc_limit_volume()
853 struct soc_mreg_control *mc = in snd_soc_info_xr_sx() local
857 uinfo->value.integer.min = mc->min; in snd_soc_info_xr_sx()
858 uinfo->value.integer.max = mc->max; in snd_soc_info_xr_sx()
881 struct soc_mreg_control *mc = in snd_soc_get_xr_sx() local
883 unsigned int regbase = mc->regbase; in snd_soc_get_xr_sx()
884 unsigned int regcount = mc->regcount; in snd_soc_get_xr_sx()
887 unsigned int invert = mc->invert; in snd_soc_get_xr_sx()
888 unsigned long mask = (1UL<<mc->nbits)-1; in snd_soc_get_xr_sx()
889 long min = mc->min; in snd_soc_get_xr_sx()
890 long max = mc->max; in snd_soc_get_xr_sx()
926 struct soc_mreg_control *mc = in snd_soc_put_xr_sx() local
928 unsigned int regbase = mc->regbase; in snd_soc_put_xr_sx()
929 unsigned int regcount = mc->regcount; in snd_soc_put_xr_sx()
932 unsigned int invert = mc->invert; in snd_soc_put_xr_sx()
933 unsigned long mask = (1UL<<mc->nbits)-1; in snd_soc_put_xr_sx()
934 long max = mc->max; in snd_soc_put_xr_sx()
939 if (val < mc->min || val > mc->max) in snd_soc_put_xr_sx()
972 struct soc_mixer_control *mc = in snd_soc_get_strobe() local
974 unsigned int reg = mc->reg; in snd_soc_get_strobe()
975 unsigned int shift = mc->shift; in snd_soc_get_strobe()
977 unsigned int invert = mc->invert != 0; in snd_soc_get_strobe()
1005 struct soc_mixer_control *mc = in snd_soc_put_strobe() local
1007 unsigned int reg = mc->reg; in snd_soc_put_strobe()
1008 unsigned int shift = mc->shift; in snd_soc_put_strobe()
1010 unsigned int invert = mc->invert != 0; in snd_soc_put_strobe()