<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
	<id>https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=Audio_%28i.MX31%29</id>
	<title>Audio (i.MX31) - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=Audio_%28i.MX31%29"/>
	<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Audio_(i.MX31)&amp;action=history"/>
	<updated>2026-05-13T14:14:06Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in BECOM Systems Support</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=Audio_(i.MX31)&amp;diff=222&amp;oldid=prev</id>
		<title>Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Audio_(i.MX31)&amp;diff=222&amp;oldid=prev"/>
		<updated>2023-10-31T08:03:08Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 31. Oktober 2023, 10:03 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de-AT&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=Audio_(i.MX31)&amp;diff=221&amp;oldid=prev</id>
		<title>en&gt;Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Audio_(i.MX31)&amp;diff=221&amp;oldid=prev"/>
		<updated>2023-08-22T19:35:50Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===  Kernel configuration ===&lt;br /&gt;
Audio is supported starting at BSP rel. 109. To enable Audio, perform the following changes in the kernel configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Device Driver -&amp;gt; Sound Support -&amp;gt; Y&lt;br /&gt;
Device Driver -&amp;gt; Sound Support -&amp;gt; Advanced Linux Sound Architecture -&amp;gt; Y&lt;br /&gt;
Device Driver -&amp;gt; Sound Support -&amp;gt; Advanced Linux Sound Architecture -&amp;gt; OSS Mixer API -&amp;gt; Y&lt;br /&gt;
Device Driver -&amp;gt; Sound Support -&amp;gt; Advanced Linux Sound Architecture -&amp;gt; OSS PCM (digital audio) API -&amp;gt; Y&lt;br /&gt;
Device Driver -&amp;gt; Sound Support -&amp;gt; Advanced Linux Sound Architecture -&amp;gt; Alsa ARM Devices -&amp;gt; MXC PMIC sound System -&amp;gt; Y&lt;br /&gt;
Device Driver -&amp;gt; Sound Support -&amp;gt; Advanced Linux Sound Architecture -&amp;gt; Alsa ARM Devices -&amp;gt; Playback stream mixing -&amp;gt; N (!!!)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===  Getting test soundfiles ===&lt;br /&gt;
Run the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./ltib -m prep -p mxc-misc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will unpack the misc package which you can find in ~/ltib5/rpm/BUILD/misc. If you search for *.wav files you will find a directory containing about 15 different wave files named audio%SampleFrequency%%BitsPerSample%%Mono/Stereo%.wav. Copy these to the directory ~/ltib5/rootfs/tmp so they will be available on the target.&lt;br /&gt;
&lt;br /&gt;
===  Playing Audio ===&lt;br /&gt;
Two different sources for audio exist. You can either play audio on the stereo dsp, which can handle sample frequencies up to 96kHz, stereo. Or you can play audio on the voice codec, which can play audio files sampled at 8kHz or 16kHz, mono only.&lt;br /&gt;
To play an audio file on the voice codec try the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
aplay -N -M -D hw:0,1 audio16k16M.wav&lt;br /&gt;
or&lt;br /&gt;
aplay -N -M -D hw:0,1 audio8k16M.wav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that you cannot play files with a higher sample rate than 16kHz or with more than one channel.&lt;br /&gt;
&lt;br /&gt;
To play an audio file on the stereo dsp, run the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
aplay -N -M -D hw:0,0 audio44k16M.wav&lt;br /&gt;
or&lt;br /&gt;
aplay -N -M audio16k16S.wav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that you can play audio files up to 96kHz in stereo.&lt;br /&gt;
&lt;br /&gt;
===  Recording Audio ===&lt;br /&gt;
Recording is only possible through the use of the voice codec. To record audio in maximum quality run the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 arecord -r 16000 -c 1 -f S16_LE -N -M -d 10 recording.wav  // This will record 10 seconds of audio with 16bit/mono/16kHz on the voice codec&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To play the recorded file use the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
aplay -N -M -D hw:0,1 recording.wav&lt;br /&gt;
or &lt;br /&gt;
aplay -N -M -D hw:0,0 recording.wav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
depending on the device you want to use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  Playing an mp3 file ===&lt;br /&gt;
To play an mp3 file simply run the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
madplay file.mp3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure the madplay package was selected in the system configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  Switch to Line - In ===&lt;br /&gt;
&lt;br /&gt;
To switch to line in, start a recording and then run the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atlas-regs -s 0x26=0x00422000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you need this change to last, you might have to correct the part of the mxc sound driver which is called after a recording is started.&lt;br /&gt;
&lt;br /&gt;
[[Category:i.MX31]]&lt;/div&gt;</summary>
		<author><name>en&gt;Peter</name></author>
	</entry>
</feed>