Hi,
Is the Cirrus Audio Card (WM5102) able to capture (and pass along the AIF1 interface) multiple channel of audio?
I am trying to capture simultaneously audio from the SPDIF input (2 channels) and from the Line In (2 channels). I cannot have the audio mixed together. However, I could live with having:
* Channel 1 and 2 (of the AIF1 audio interface to the Raspberry Pi) contain the SPDIF-In (stereo) audio
* Channel 3 and 4 (of the AIF1 audio interface to the Raspberry Pi) contain the Line-In (stereo) audio
The script would look something like (High-Pass and Low-Pass filters for the Line-In not included here):
# setup the Line-In capture (stereo)
amixer $1 -Dhw:sndrpiwsp cset name='IN3 High Performance Switch' on
amixer $1 -Dhw:sndrpiwsp cset name='AIF1TX1 Input 1' IN3L
amixer $1 -Dhw:sndrpiwsp cset name='AIF1TX1 Input 1 Volume' 32
amixer $1 -Dhw:sndrpiwsp cset name='AIF1TX2 Input 1' IN3R
amixer $1 -Dhw:sndrpiwsp cset name='AIF1TX2 Input 1 Volume' 32
# setup the SPDIF-In capture (stereo)
amixer $1 -Dhw:sndrpiwsp cset name='SPDIF In Switch' on
# Setup WM5102 AIF1 stereo output source from AIF2 (data from WM8804), 0dB Gain
amixer $1 -Dhw:sndrpiwsp cset name='AIF1TX3 Input 1' AIF2RX1
amixer $1 -Dhw:sndrpiwsp cset name='AIF1TX3 Input 1 Volume' 32
amixer $1 -Dhw:sndrpiwsp cset name='AIF1TX4 Input 1' AIF2RX2
amixer $1 -Dhw:sndrpiwsp cset name='AIF1TX4 Input 1 Volume' 32
# The following command should be used to test
# arecord -Dhw:sndrpiwsp -r 44100 -c 4 -f S32_LE <file>
Does the Cirrus Audio Card support this scenario (i.e. using "AIF1TX3 Input 1" and "AIF1TX4 Input 1")? If not, is there any other way to accomplish this?
Thanks.




