Lines Matching refs:nctl
799 struct snd_emu10k1_fx8010_ctl *ctl, *nctl; in snd_emu10k1_add_controls() local
807 nctl = kmalloc(sizeof(*nctl), GFP_KERNEL); in snd_emu10k1_add_controls()
808 if (!val || !gctl || !nctl) { in snd_emu10k1_add_controls()
842 memset(nctl, 0, sizeof(*nctl)); in snd_emu10k1_add_controls()
843 nctl->vcount = gctl->vcount; in snd_emu10k1_add_controls()
844 nctl->count = gctl->count; in snd_emu10k1_add_controls()
846 nctl->gpr[j] = gctl->gpr[j]; in snd_emu10k1_add_controls()
847 nctl->value[j] = ~gctl->value[j]; /* inverted, we want to write new value in gpr_ctl_put() */ in snd_emu10k1_add_controls()
850 nctl->min = gctl->min; in snd_emu10k1_add_controls()
851 nctl->max = gctl->max; in snd_emu10k1_add_controls()
852 nctl->translation = gctl->translation; in snd_emu10k1_add_controls()
861 *ctl = *nctl; in snd_emu10k1_add_controls()
872 nctl->list = ctl->list; in snd_emu10k1_add_controls()
873 nctl->kcontrol = ctl->kcontrol; in snd_emu10k1_add_controls()
874 *ctl = *nctl; in snd_emu10k1_add_controls()
881 kfree(nctl); in snd_emu10k1_add_controls()
1198 int err, i, z, gpr, nctl; in _snd_emu10k1_audigy_init_efx() local
1239 nctl = 0; in _snd_emu10k1_audigy_init_efx()
1257 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Front Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1263 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Surround Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1270 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Side Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1276 snd_emu10k1_init_mono_control(&controls[nctl++], "PCM Center Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1281 snd_emu10k1_init_mono_control(&controls[nctl++], "PCM LFE Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1290 snd_emu10k1_init_stereo_control(&controls[nctl++], "Wave Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1296 snd_emu10k1_init_stereo_control(&controls[nctl++], "Synth Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1302 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1308 snd_emu10k1_init_stereo_control(&controls[nctl++], "Synth Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1329 snd_emu10k1_init_stereo_control(&controls[nctl++], "EMU Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1335 snd_emu10k1_init_stereo_control(&controls[nctl++], "AMic Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1340 snd_emu10k1_init_stereo_control(&controls[nctl++], "Mic Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1349 snd_emu10k1_init_stereo_control(&controls[nctl++], in _snd_emu10k1_audigy_init_efx()
1356 snd_emu10k1_init_stereo_control(&controls[nctl++], in _snd_emu10k1_audigy_init_efx()
1364 …snd_emu10k1_init_stereo_control(&controls[nctl++], SNDRV_CTL_NAME_IEC958("Optical ",PLAYBACK,VOLUM… in _snd_emu10k1_audigy_init_efx()
1369 …snd_emu10k1_init_stereo_control(&controls[nctl++], SNDRV_CTL_NAME_IEC958("Optical ",CAPTURE,VOLUME… in _snd_emu10k1_audigy_init_efx()
1375 snd_emu10k1_init_stereo_control(&controls[nctl++], in _snd_emu10k1_audigy_init_efx()
1382 snd_emu10k1_init_stereo_control(&controls[nctl++], in _snd_emu10k1_audigy_init_efx()
1390 snd_emu10k1_init_stereo_control(&controls[nctl++], "Analog Mix Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1395 snd_emu10k1_init_stereo_control(&controls[nctl++], "Analog Mix Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1401 snd_emu10k1_init_stereo_control(&controls[nctl++], in _snd_emu10k1_audigy_init_efx()
1408 snd_emu10k1_init_stereo_control(&controls[nctl++], in _snd_emu10k1_audigy_init_efx()
1416 snd_emu10k1_init_stereo_control(&controls[nctl++], "Front Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1422 snd_emu10k1_init_stereo_control(&controls[nctl++], "Surround Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1429 snd_emu10k1_init_mono_control(&controls[nctl++], "Center Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1434 snd_emu10k1_init_mono_control(&controls[nctl++], "LFE Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1441 snd_emu10k1_init_stereo_control(&controls[nctl++], "Side Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1477 ctl = &controls[nctl + 0]; in _snd_emu10k1_audigy_init_efx()
1486 ctl = &controls[nctl + 1]; in _snd_emu10k1_audigy_init_efx()
1502 controls[nctl + 0].gpr[z * 2 + j] = BASS_GPR + z * 2 + j; in _snd_emu10k1_audigy_init_efx()
1503 controls[nctl + 1].gpr[z * 2 + j] = TREBLE_GPR + z * 2 + j; in _snd_emu10k1_audigy_init_efx()
1533 nctl += 2; in _snd_emu10k1_audigy_init_efx()
1544 snd_emu10k1_init_stereo_onoff_control(controls + nctl++, "Tone Control - Switch", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1556 snd_emu10k1_init_mono_control(&controls[nctl++], "Wave Master Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1607 …snd_emu10k1_init_stereo_onoff_control(controls + nctl++, SNDRV_CTL_NAME_IEC958("Optical Raw ",PLAY… in _snd_emu10k1_audigy_init_efx()
1767 icode->gpr_add_control_count = nctl; in _snd_emu10k1_audigy_init_efx()