Hi !
DDK’s info about “ado_mixer_capture_group_create” and mux elements very
poor, I’m don’t understand some args.
Below my invalid code of crteation of PCM in group:
cmpci->me_pcm_capture=ado_mixer_element_io(mixer, SND_MIXER_PCM_IN,
SND_MIXER_ETYPE_INPUT, 0, 2, stereo_voices);
// Using me_vol_pcm from PCM out group is this correct ?
ado_mixer_element_route_add(mixer, cmpci->me_pcm_capture,
cmpci->me_vol_pcm);
// Using sw1 type for PCM Input selector, is this correct ?
cmpci->me_pcm_select=ado_mixer_element_sw1(mixer, “PCM Select”, 2,
snd_cmipci_pcm_input_switch, cmpci, NULL);
ado_mixer_element_route_add(mixer, cmpci->me_vol_pcm, cmpci->me_pcm_select);
ado_mixer_element_route_add(mixer, cmpci->me_pcm_select, cmpci->me_in_accu);
cmpci->pcm_in_grp=ado_mixer_capture_group_create(mixer, SND_MIXER_PCM_IN,
SND_MIXER_CHN_MASK_STEREO, cmpci->me_vol_pcm, cmpci->me_vol_pcm_mute, NULL,
cmpci->me_pcm_select);
What the element must be in the place of first NULL arg (in place of capture
element) in the “ado…capture…group” ? Can I use the vol, mute,
inputswitch args without capture element ?
DDK’s documentation doesn’t secribes mux callbacks at all !
Too many questions So no answers …
P.S. Mixer example doesn’t show how to create input selectors. May be you
can open your AC’97 mixer code it would be nice ! It helps to understand
some things …