New problem, possibly chain bug in io-audio and photon mixer. I’ve mic mute
control, for it I’m using the sw1 element with 1 channel for operate.
Creation of sw1 element looks like:
cmpci->mic_mute=ado_mixer_element_sw1(mixer, “Mic Mute”, 1,
snd_cmipci_mic_mute, cmpci, NULL);
Callback function looks like:
static int32_t snd_cmipci_mic_mute(MIXER_CONTEXT_T* context,
Problem 1: When the first call of mic mute callback is occurred, (*bitmap)
contains a trash 0x2DF…UL. Is that normal ?
Problem 2: I’m setted in first call bit 0 to 1, when the second call of mic
mute callback is occured, (*bitmap) contains 0x00000003UL, Why I’m using
only 1 channel ? May be in swX callbacks I’m need to manually reset the
bitmap, but in audio DDK docs no words about that ! BTW: ALSA architecture
does not needed to reset bitmap manually.
Problem 3: In connetion with problem 2 photon mixer doesn’t show correctly
mic mute status, when mute is on, mixer shows off, but when I move the
volume slider, mic mute check box suddenly appears is on. What that ?