HH
VS1005 VSOS A
UDIO
S
UBSYSTEM
VS1005g
11.5.4
IOCTL_AUDIO_SELECT_INPUT
Select analog input. Parameter bitmask must have one stereo element, or one left and
one right element. Definitions can be found in <aucommon.h>
Stereo elements:
•
AID_FM
Left elements:
•
AID_LINE1_1, AID_LINE3_1, AID_LINE2_1, AID_MIC1, AID_DIA1
Right elements:
•
AID_LINE1_2, AID_LINE3_2, AID_LINE2_2, AID_MIC2, AID_DIA2, AID_DIA3,
AID_LINE1_3
•
This ioctl() is only applicable for the AUODAC driver.
•
Optionally, AID_DEC6 may also be defined. It activates the high-quality down-by-6
decimator.
Example:
s_int32 sampleCounter;
if (ioctl(fp,IOCTL_AUDIO_SELECT_INPUT,(char *)(AID_LINE1_1|AID_LINE1_3))) {
printf("Couldn't select input\n");
}
Rev. 3.57
2019-04-10
Page