Lines Matching full:mc

178 	struct soc_mixer_control *mc =  in snd_soc_info_volsw()  local
183 max = uinfo->value.integer.max = mc->max - mc->min; in snd_soc_info_volsw()
184 if (mc->platform_max && mc->platform_max < max) in snd_soc_info_volsw()
185 max = mc->platform_max; in snd_soc_info_volsw()
198 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw()
222 struct soc_mixer_control *mc = in snd_soc_info_volsw_sx() local
226 if (mc->platform_max) in snd_soc_info_volsw_sx()
227 max = mc->platform_max; in snd_soc_info_volsw_sx()
229 max = mc->max; in snd_soc_info_volsw_sx()
236 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw_sx()
258 struct soc_mixer_control *mc = in snd_soc_get_volsw() local
260 unsigned int reg = mc->reg; in snd_soc_get_volsw()
261 unsigned int reg2 = mc->rreg; in snd_soc_get_volsw()
262 unsigned int shift = mc->shift; in snd_soc_get_volsw()
263 unsigned int rshift = mc->rshift; in snd_soc_get_volsw()
264 int max = mc->max; in snd_soc_get_volsw()
265 int min = mc->min; in snd_soc_get_volsw()
266 int sign_bit = mc->sign_bit; in snd_soc_get_volsw()
268 unsigned int invert = mc->invert; in snd_soc_get_volsw()
284 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_get_volsw()
318 struct soc_mixer_control *mc = in snd_soc_put_volsw() local
320 unsigned int reg = mc->reg; in snd_soc_put_volsw()
321 unsigned int reg2 = mc->rreg; in snd_soc_put_volsw()
322 unsigned int shift = mc->shift; in snd_soc_put_volsw()
323 unsigned int rshift = mc->rshift; in snd_soc_put_volsw()
324 int max = mc->max; in snd_soc_put_volsw()
325 int min = mc->min; in snd_soc_put_volsw()
326 unsigned int sign_bit = mc->sign_bit; in snd_soc_put_volsw()
328 unsigned int invert = mc->invert; in snd_soc_put_volsw()
340 if (mc->platform_max && val > mc->platform_max) in snd_soc_put_volsw()
349 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_put_volsw()
353 if (mc->platform_max && val2 > mc->platform_max) in snd_soc_put_volsw()
400 struct soc_mixer_control *mc = in snd_soc_get_volsw_sx() local
402 unsigned int reg = mc->reg; in snd_soc_get_volsw_sx()
403 unsigned int reg2 = mc->rreg; in snd_soc_get_volsw_sx()
404 unsigned int shift = mc->shift; in snd_soc_get_volsw_sx()
405 unsigned int rshift = mc->rshift; in snd_soc_get_volsw_sx()
406 int max = mc->max; in snd_soc_get_volsw_sx()
407 int min = mc->min; in snd_soc_get_volsw_sx()
414 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_get_volsw_sx()
437 struct soc_mixer_control *mc = in snd_soc_put_volsw_sx() local
440 unsigned int reg = mc->reg; in snd_soc_put_volsw_sx()
441 unsigned int reg2 = mc->rreg; in snd_soc_put_volsw_sx()
442 unsigned int shift = mc->shift; in snd_soc_put_volsw_sx()
443 unsigned int rshift = mc->rshift; in snd_soc_put_volsw_sx()
444 int max = mc->max; in snd_soc_put_volsw_sx()
445 int min = mc->min; in snd_soc_put_volsw_sx()
454 if (mc->platform_max && val > mc->platform_max) in snd_soc_put_volsw_sx()
467 if (snd_soc_volsw_is_stereo(mc)) { in snd_soc_put_volsw_sx()
470 if (mc->platform_max && val2 > mc->platform_max) in snd_soc_put_volsw_sx()
504 struct soc_mixer_control *mc = in snd_soc_info_volsw_range() local
508 max = mc->max - mc->min; in snd_soc_info_volsw_range()
509 if (mc->platform_max && mc->platform_max < max) in snd_soc_info_volsw_range()
510 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()
846 struct soc_mreg_control *mc = in snd_soc_info_xr_sx() local
850 uinfo->value.integer.min = mc->min; in snd_soc_info_xr_sx()
851 uinfo->value.integer.max = mc->max; in snd_soc_info_xr_sx()
874 struct soc_mreg_control *mc = in snd_soc_get_xr_sx() local
876 unsigned int regbase = mc->regbase; in snd_soc_get_xr_sx()
877 unsigned int regcount = mc->regcount; in snd_soc_get_xr_sx()
880 unsigned int invert = mc->invert; in snd_soc_get_xr_sx()
881 unsigned long mask = (1UL<<mc->nbits)-1; in snd_soc_get_xr_sx()
882 long min = mc->min; in snd_soc_get_xr_sx()
883 long max = mc->max; in snd_soc_get_xr_sx()
919 struct soc_mreg_control *mc = in snd_soc_put_xr_sx() local
921 unsigned int regbase = mc->regbase; in snd_soc_put_xr_sx()
922 unsigned int regcount = mc->regcount; in snd_soc_put_xr_sx()
925 unsigned int invert = mc->invert; in snd_soc_put_xr_sx()
926 unsigned long mask = (1UL<<mc->nbits)-1; in snd_soc_put_xr_sx()
927 long max = mc->max; in snd_soc_put_xr_sx()
932 if (val < mc->min || val > mc->max) in snd_soc_put_xr_sx()
965 struct soc_mixer_control *mc = in snd_soc_get_strobe() local
967 unsigned int reg = mc->reg; in snd_soc_get_strobe()
968 unsigned int shift = mc->shift; in snd_soc_get_strobe()
970 unsigned int invert = mc->invert != 0; in snd_soc_get_strobe()
998 struct soc_mixer_control *mc = in snd_soc_put_strobe() local
1000 unsigned int reg = mc->reg; in snd_soc_put_strobe()
1001 unsigned int shift = mc->shift; in snd_soc_put_strobe()
1003 unsigned int invert = mc->invert != 0; in snd_soc_put_strobe()