Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:general_information:tutorial:audio [2015/11/30 15:58] – created liedmann | en: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 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Audio playback | ||
+ | |||
+ | The latest BSP revisions are preconfigured for audio playback, when audio is supported. | ||
+ | |||
+ | Playback: | ||
+ | < | ||
+ | aplay testfile.wav | ||
+ | </ | ||
+ | |||
+ | ++++ example | | ||
+ | < | ||
+ | root@MBa6x: | ||
+ | Playing WAVE ' | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | |||
+ | ==== Audio recording | ||
+ | |||
+ | In order to start audio recording via the Line In connector the following alsamixer settings have to be applied : | ||
+ | < | ||
+ | amixer set 'Right Input Mixer IN1_R P' unmute | ||
+ | amixer set 'Left Input Mixer IN1_L P' unmute | ||
+ | amixer set ' | ||
+ | amixer set ' | ||
+ | mount -o remount,rw / | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Recording: | ||
+ | < | ||
+ | arecord -f cd testfile.wav | ||
+ | </ | ||
+ | |||
+ | ++++ example | | ||
+ | < | ||
+ | root@MBa6x: | ||
+ | Recording WAVE ' | ||
+ | </ | ||
+ | ++++ | ||
+ |