Lines Matching refs:controls

1603 			"Failed to create new controls %d\n", ret);
1636 component->driver->controls,
2245 ret = snd_soc_add_card_controls(card, card->controls,
2435 const struct snd_kcontrol_new *controls, int num_controls,
2441 const struct snd_kcontrol_new *control = &controls[i];
2455 * snd_soc_add_component_controls - Add an array of controls to a component.
2457 * @component: Component to add controls to
2458 * @controls: Array of controls to add
2464 const struct snd_kcontrol_new *controls, unsigned int num_controls)
2468 return snd_soc_add_controls(card, component->dev, controls,
2474 * snd_soc_add_card_controls - add an array of controls to a SoC card.
2475 * Convenience function to add a list of controls.
2477 * @soc_card: SoC card to add controls to
2478 * @controls: array of controls to add
2484 const struct snd_kcontrol_new *controls, int num_controls)
2488 return snd_soc_add_controls(card, soc_card->dev, controls, num_controls,
2494 * snd_soc_add_dai_controls - add an array of controls to a DAI.
2495 * Convenience function to add a list of controls.
2497 * @dai: DAI to add controls to
2498 * @controls: array of controls to add
2504 const struct snd_kcontrol_new *controls, int num_controls)
2508 return snd_soc_add_controls(card, dai->dev, controls, num_controls,
3056 struct snd_kcontrol_new *controls;
3076 controls = devm_kcalloc(dev, nb_controls,
3077 sizeof(*controls), GFP_KERNEL);
3078 if (!controls)
3087 controls[i].iface = SNDRV_CTL_ELEM_IFACE_MIXER;
3088 controls[i].name = control_name;
3089 controls[i].info = snd_soc_dapm_info_pin_switch;
3090 controls[i].get = snd_soc_dapm_get_pin_switch;
3091 controls[i].put = snd_soc_dapm_put_pin_switch;
3092 controls[i].private_value = (unsigned long)strings[i];
3095 card->controls = controls;