Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:general_information:tutorial:audio [2015/11/30 15:58] – created liedmannen:general_information:tutorial:audio [2022/08/04 15:02] (current) – external edit 127.0.0.1
Line 1: Line 1:
-===== Audio ===== +====== Audio =====
-==== TQMa335x ==== + 
-=== TQMa335x ===+<WRAP round important 50%> 
 +Please see supported features list of your TQ module to verify that audio playback / recording is supported by the Board Support Package  
 +</WRAP> 
 + 
 + 
 +==== Audio playback ==== 
 + 
 +The latest BSP revisions are preconfigured for audio playback, when audio is supported.  
 + 
 +Playback: 
 +<code> 
 +aplay testfile.wav 
 +</code> 
 + 
 +++++ example | 
 +<code> 
 +root@MBa6x:~ aplay testfile.wav 
 +  Playing WAVE 'testfile' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo 
 +</code> 
 +++++ 
 + 
 + 
 +==== Audio recording ==== 
 + 
 +In order to start audio recording via the Line In connector the following alsamixer settings have to be applied : 
 +<code> 
 +amixer set 'Right Input Mixer IN1_R P' unmute 
 +amixer set 'Left Input Mixer IN1_L P' unmute 
 +amixer set 'ADCFGA Right Mute' mute 
 +amixer set 'ADCFGA Left Mute' mute 
 +mount -o remount,rw / 
 +</code> 
 + 
 + 
 + 
 +Recording: 
 +<code> 
 +arecord -f cd testfile.wav 
 +</code> 
 + 
 +++++ example | 
 +<code> 
 +root@MBa6x:~ arecord -f cd testfile.wav 
 +  Recording WAVE 'testfile' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo 
 +</code> 
 +++++ 
 + 
  • Last modified: 2022/08/04 15:04