I2S Test

From ESS-WIKI
Jump to: navigation, search

You can test I2S with Advantech EG52 codec board.
MIC IN command as following(44100 is the sample rate):

$ amixer sset 'Right PGA Mixer Line1R' off
$ amixer sset 'Left PGA Mixer Line1L' off
$ amixer sset 'Right PGA Mixer Mic3R' on
$ amixer cset name='PGA Capture Switch' on
$ amixer cset name='PGA Capture Volume' 80
$ amixer cset -c 0 name='PCM Playback Volume' 127
$ arecord -t wav -f S16_LE -r 44100 -d 5 rec.wav

Audio out command as following:

$ aplay rec.wav