Difference between revisions of "ALSA Installation"

From ArmadeusWiki
Jump to: navigation, search
m
m (Compilation)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
==Compilation==
 
==Compilation==
 
* On your Host select ALSA compilation in Linux configuration:
 
* On your Host select ALSA compilation in Linux configuration:
  [armadeus]$ make linux26-menuconfig
+
<pre class="host">
+
  $ make linux-menuconfig
Device Drivers ---> <M> Sound card support
+
</pre>
Device Drivers ---> <M> Sound card support ---> <M> Advanced Linux Sound Architecture
+
 
Device Drivers ---> <M> Sound card support ---> <M> Advanced Linux Sound Architecture ---> [*] ARM sound devices ---> <M> i.MX1/L TSC2102 alsa driver
+
<pre class="config">
 +
Device Drivers --->
 +
    <M> Sound card support --->
 +
        <M> Advanced Linux Sound Architecture--->
 +
            [*] ARM sound devices --->
 +
                <M> i.MX1/L TSC2102 alsa driver
 +
</pre>
  
 +
<pre class="config">
 
  <M> Advanced Linux Sound Architecture
 
  <M> Advanced Linux Sound Architecture
 
  < >  Sequencer support (NEW)
 
  < >  Sequencer support (NEW)
Line 23: Line 30:
 
  [ ]  USB sound devices  --->
 
  [ ]  USB sound devices  --->
 
  < >  ALSA for SoC audio support  --->
 
  < >  ALSA for SoC audio support  --->
 +
</pre>
  
 
* in Buildroot configuration, select the user space packages for ALSA:
 
* in Buildroot configuration, select the user space packages for ALSA:
  [armadeus]$ make menuconfig
+
<pre class="host">
 +
  $ make menuconfig
 +
</pre>
 +
<pre class="config">
 
  Package Selection for the target-> Audio libraries:
 
  Package Selection for the target-> Audio libraries:
 
   
 
   
Line 58: Line 69:
 
  [ ] aseqnet
 
  [ ] aseqnet
 
  [*] speaker-test
 
  [*] speaker-test
 
+
</pre>
 
* save your configuration and rebuild your rootfs:
 
* save your configuration and rebuild your rootfs:
  [armadeus]$ make
+
<pre class="host">
 
+
  $ make
 +
</pre>
 
* reflash your rootfs and your Linux kernel. [[Linux_drivers_generalities|Go here if you need more infos on how to install Linux drivers.]]
 
* reflash your rootfs and your Linux kernel. [[Linux_drivers_generalities|Go here if you need more infos on how to install Linux drivers.]]
  
Line 67: Line 79:
 
'''Automatically done by Buildroot / mdev, so only here as reference.'''<br>
 
'''Automatically done by Buildroot / mdev, so only here as reference.'''<br>
 
In ''/dev/snd/'' you should have:
 
In ''/dev/snd/'' you should have:
 +
<pre class="apf">
 
  mknod controlC0 c 116 0
 
  mknod controlC0 c 116 0
 
  mknod pcmC0D0c c 116 24
 
  mknod pcmC0D0c c 116 24
 
  mknod pcmC0D0p c 116 16
 
  mknod pcmC0D0p c 116 16
 +
</pre>
  
 
==Links==
 
==Links==
 
* [http://www.busybox.net/lists/buildroot/2008-February/007061.html Buildroot bug (aplay: set_params:1012: unable to install sw params:)]
 
* [http://www.busybox.net/lists/buildroot/2008-February/007061.html Buildroot bug (aplay: set_params:1012: unable to install sw params:)]

Latest revision as of 17:06, 4 September 2013

Compilation

  • On your Host select ALSA compilation in Linux configuration:
 $ make linux-menuconfig
Device Drivers --->
    <M> Sound card support --->
        <M> Advanced Linux Sound Architecture--->
            [*] ARM sound devices --->
                <M> i.MX1/L TSC2102 alsa driver
 <M> Advanced Linux Sound Architecture
 < >   Sequencer support (NEW)
 <M>   OSS Mixer API
 <M>   OSS PCM (digital audio) API
 [*]     OSS PCM (digital audio) API - Include plugin system (NEW)
 [ ]   Dynamic device file minor numbers (NEW)
 [*]   Support old ALSA API (NEW)
 [ ]   Verbose procfs contents (NEW)
 [ ]   Verbose printk
 [ ]   Debug
 [ ]   Debug
 [ ]   Generic sound devices  --->
 [*]   ARM sound devices  --->
 [ ]   SPI sound devices  --->
 [ ]   USB sound devices  --->
 < >   ALSA for SoC audio support  --->
  • in Buildroot configuration, select the user space packages for ALSA:
 $ make menuconfig
 Package Selection for the target-> Audio libraries:
 
 --- Audio libraries and applications
 [*]   alsa-lib
 [*]     alsa-utils
         ALSA utils selection  --->
 [ ]   asterisk
 [*]   aumix
 [ ]   libmad
 ---   libid3tag
 ---   libmad
 [ ]     libmad headers in target
 [ ]   libsndfile
 ---   libvorbis requires the package libogg to build
 [*]   madplay
 [ ]   mpg123

 in ALSA utils selection  --->
 [*] alsaconf
 [*] alsactl
 [*] alsamixer
 [ ] amidi
 [*] amixer
 [*] aplay
 [ ] arecord
 [ ] iecset
 [ ] aconnect
 [ ] aplaymidi
 [ ] arecordmidi
 [ ] aseqdump
 [ ] aseqnet
 [*] speaker-test
  • save your configuration and rebuild your rootfs:
 $ make

nodes creation

Automatically done by Buildroot / mdev, so only here as reference.
In /dev/snd/ you should have:

 mknod controlC0 c 116 0
 mknod pcmC0D0c c 116 24
 mknod pcmC0D0p c 116 16

Links