VAR-SOM-AM43 Audio record play

From Variscite Wiki
VAR-SOM-AM43 - Audio record/play

For playing a sample .wav type:

$ aplay /usr/share/sounds/alsa/Front_Center.wav

For recording and then playing a sample .wav type:

$ amixer sset 'Left Line1L Mux' differential
$ amixer sset 'Right Line1R Mux' differential
$ arecord -f dat -d 10 -D hw:0,0 -N  test.wav
$ aplay test.wav