The routing setup will be performed within the code - as opposed to using the supplied PC command-line host mixer control. The node mix levels (c11 - c88) will then be set dynamically (externally controlled).
I am trying to figure out the correct c_mix_ctl commands to send to the mixer to accomplish this. I should note that the c_mix_ctl chanend has been disconnected from Endpoint0 and connected elsewhere for this purpose.
I have figured out that the following code adjusts the physical OUT1/2 volume which, on the default setup, corresponds to USB Audio out channels 1 and 2:
Code: Select all
outuint(c_mix_ctl, SET_MIX_OUT_VOL);
outuint(c_mix_ctl, 0);
outuint(c_mix_ctl, desiredVol);
outct(c_mix_ctl, XS1_CT_END);
outuint(c_mix_ctl, SET_MIX_OUT_VOL);
outuint(c_mix_ctl, 1);
outuint(c_mix_ctl, desiredVol);
outct(c_mix_ctl, XS1_CT_END);
Thank you in advance.