>From the Wolfson audio driver source code - a shell script to recrod
from spdif input. It looks like it is OK to record in 32 bit format
even though hardware inputs up to 24 bit..
Code:
--------------------
#!/bin/bash
#Record from SPDIF in
#SPDIF Record:
amixer -Dhw:0 cset name='SPDIF in Switch' on
# switch off SPDIF TX in case already active as
# WM8804 must run at RX rate if enabled
amixer -Dhw:0 cset name='TX Playback Switch' off
amixer -Dhw:0 cset name='RX Playback Switch' on
amixer -Dhw:0 cset name='AIF Playback Switch' on
amixer -Dhw:0 cset name='AIF1TX1 Input 1' AIF2RX1
amixer -Dhw:0 cset name='AIF1TX1 Input 1 Volume' 32
amixer -Dhw:0 cset name='AIF1TX2 Input 1' AIF2RX2
amixer -Dhw:0 cset name='AIF1TX2 Input 1 Volume' 32
# The following command can be used to test
# arecord -Dhw:0 -r 44100 -c 2 -f S32_LE <file>
--------------------
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102551
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins