Hi !
I have one more question.
I can’t create mute (sw2) element in PCM out group. Below some of my code
without ifs and checks:
cmpci->me_playback=ado_mixer_element_io(mixer, SND_MIXER_PCM_OUT,
SND_MIXER_ETYPE_PLAYBACK1, 0, 2, stereo_voices);
cmpci->me_vol_pcm=ado_mixer_element_volume1(mixer, SND_MIXER_PCM_OUT, 2,
db_range_31s, snd_cmipci_pcm_volume_level, cmpci, NULL);
ado_mixer_element_route_add(mixer, cmpci->me_playback, cmpci->me_vol_pcm);
cmpci->me_vol_pcm_mute=ado_mixer_element_sw2(mixer, “PCM Mute”,
snd_cmipci_pcm_volume_mute, cmpci, NULL);
ado_mixer_element_route_add(mixer, cmpci->me_vol_pcm,
cmpci->me_vol_pcm_mute);
ado_mixer_element_route_add(mixer, cmpci->me_vol_pcm_mute,
cmpci->me_out_accu);
cmpci->pcm_out_grp=ado_mixer_playback_group_create(mixer, SND_MIXER_PCM_OUT,
SND_MIXER_CHN_MASK_STEREO,
cmpci->me_vol_pcm, NULL);
So scheme is io->volume1->sw2->OUT ACCUMULATOR.
When change first element io to pcm1, result the same: photon mixer doesn’t
show the mute check box for PCM out device.
What I do wrong ?
BTW: when I start photon mixer - it call my callback for PCM mute one or
more, then never call it up to driver reload …
Thanks !
–