Lines Matching refs:ctl
1146 struct snd_kcontrol *ctl = cm->mixer_res_ctl[i]; in save_mixer_state() local
1147 if (ctl) { in save_mixer_state()
1150 ctl->get(ctl, val); in save_mixer_state()
1155 ctl->put(ctl, val); /* toggle */ in save_mixer_state()
1158 ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in save_mixer_state()
1159 snd_ctl_notify(cm->card, event, &ctl->id); in save_mixer_state()
1182 struct snd_kcontrol *ctl = cm->mixer_res_ctl[i]; in restore_mixer_state() local
1183 if (ctl) { in restore_mixer_state()
1187 ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in restore_mixer_state()
1188 ctl->get(ctl, val); in restore_mixer_state()
1192 ctl->put(ctl, val); in restore_mixer_state()
1195 snd_ctl_notify(cm->card, event, &ctl->id); in restore_mixer_state()
2758 struct snd_kcontrol *ctl; in snd_cmipci_mixer_new() local
2762 ctl = snd_ctl_find_id(cm->card, &elem_id); in snd_cmipci_mixer_new()
2763 if (ctl) in snd_cmipci_mixer_new()
2764 cm->mixer_res_ctl[idx] = ctl; in snd_cmipci_mixer_new()