Lines Matching full: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 && val > 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 && val2 > 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
507 max = mc->max - mc->min; in snd_soc_info_volsw_range()
508 if (mc->platform_max && mc->platform_max < max) in snd_soc_info_volsw_range()
509 max = mc->platform_max; in snd_soc_info_volsw_range()
512 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw_range()
532 struct soc_mixer_control *mc = in snd_soc_put_volsw_range() local
535 unsigned int reg = mc->reg; in snd_soc_put_volsw_range()
536 unsigned int rreg = mc->rreg; in snd_soc_put_volsw_range()
537 unsigned int shift = mc->shift; in snd_soc_put_volsw_range()
538 int min = mc->min; in snd_soc_put_volsw_range()
539 int max = mc->max; in snd_soc_put_volsw_range()
541 unsigned int invert = mc->invert; in snd_soc_put_volsw_range()
548 if (mc->platform_max && tmp > mc->platform_max) in snd_soc_put_volsw_range()
550 if (tmp > mc->max - mc->min) in snd_soc_put_volsw_range()
565 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_put_volsw_range()
569 if (mc->platform_max && tmp > mc->platform_max) in snd_soc_put_volsw_range()
571 if (tmp > mc->max - mc->min) in snd_soc_put_volsw_range()
606 struct soc_mixer_control *mc = in snd_soc_get_volsw_range() local
608 unsigned int reg = mc->reg; in snd_soc_get_volsw_range()
609 unsigned int rreg = mc->rreg; in snd_soc_get_volsw_range()
610 unsigned int shift = mc->shift; in snd_soc_get_volsw_range()
611 int min = mc->min; in snd_soc_get_volsw_range()
612 int max = mc->max; in snd_soc_get_volsw_range()
614 unsigned int invert = mc->invert; in snd_soc_get_volsw_range()
626 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_get_volsw_range()
643 struct soc_mixer_control *mc = (struct soc_mixer_control *)kctl->private_value; in snd_soc_clip_to_platform_max() local
647 if (!mc->platform_max) in snd_soc_clip_to_platform_max()
654 if (uctl.value.integer.value[0] > mc->platform_max) in snd_soc_clip_to_platform_max()
655 uctl.value.integer.value[0] = mc->platform_max; in snd_soc_clip_to_platform_max()
657 if (snd_soc_volsw_is_stereo(mc) && in snd_soc_clip_to_platform_max()
658 uctl.value.integer.value[1] > mc->platform_max) in snd_soc_clip_to_platform_max()
659 uctl.value.integer.value[1] = mc->platform_max; in snd_soc_clip_to_platform_max()
689 struct soc_mixer_control *mc = (struct soc_mixer_control *)kctl->private_value; in snd_soc_limit_volume() local
690 if (max <= mc->max - mc->min) { in snd_soc_limit_volume()
691 mc->platform_max = max; in snd_soc_limit_volume()
879 struct soc_mreg_control *mc = in snd_soc_info_xr_sx() local
883 uinfo->value.integer.min = mc->min; in snd_soc_info_xr_sx()
884 uinfo->value.integer.max = mc->max; in snd_soc_info_xr_sx()
907 struct soc_mreg_control *mc = in snd_soc_get_xr_sx() local
909 unsigned int regbase = mc->regbase; in snd_soc_get_xr_sx()
910 unsigned int regcount = mc->regcount; in snd_soc_get_xr_sx()
913 unsigned int invert = mc->invert; in snd_soc_get_xr_sx()
914 unsigned long mask = (1UL<<mc->nbits)-1; in snd_soc_get_xr_sx()
915 long min = mc->min; in snd_soc_get_xr_sx()
916 long max = mc->max; in snd_soc_get_xr_sx()
952 struct soc_mreg_control *mc = in snd_soc_put_xr_sx() local
954 unsigned int regbase = mc->regbase; in snd_soc_put_xr_sx()
955 unsigned int regcount = mc->regcount; in snd_soc_put_xr_sx()
958 unsigned int invert = mc->invert; in snd_soc_put_xr_sx()
959 unsigned long mask = (1UL<<mc->nbits)-1; in snd_soc_put_xr_sx()
960 long max = mc->max; in snd_soc_put_xr_sx()
965 if (val < mc->min || val > mc->max) in snd_soc_put_xr_sx()
998 struct soc_mixer_control *mc = in snd_soc_get_strobe() local
1000 unsigned int reg = mc->reg; in snd_soc_get_strobe()
1001 unsigned int shift = mc->shift; in snd_soc_get_strobe()
1003 unsigned int invert = mc->invert != 0; in snd_soc_get_strobe()
1031 struct soc_mixer_control *mc = in snd_soc_put_strobe() local
1033 unsigned int reg = mc->reg; in snd_soc_put_strobe()
1034 unsigned int shift = mc->shift; in snd_soc_put_strobe()
1036 unsigned int invert = mc->invert != 0; in snd_soc_put_strobe()