NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
UsbConfigHostAudio
About this page[edit]
This page describes the Linux kernel config options for usb audio class (UAC) on different kernel versions. Please refer the config option which matches with kernel version of release you are using.
Configuration[edit]
Linux v3.2[edit]
Start the Linux Kernel Configuration tool:
$ make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm menuconfig
Select Device Drivers from the main menu.
... ... Power management options ---> [ ] Networking support ---> Device Drivers ---> File systems ---> Kernel hacking ---> ... ...
Select Sound card support as shown here
... ... Graphics support ---> <*> Sound card support ---> [*] HID Devices ---> [*] USB support ---> ...
Select "Advanced Linux Sound Architecture" as shown here
... ... --- Sound card support <*> Advanced Linux Sound Architecture ---> < > Open Sound System (DEPRECATED) --->
select USB sound devices as shown here
... ... [ ] SPI sound devices ---> [*] USB sound devices ---> <*> ALSA for SoC audio support ---> ... ...
Select USB Audio/MIDI driver as shown here
... ... --- USB sound devices <*> USB Audio/MIDI driver < > Edirol UA-101/UA-1000 driver ... ...
This is all required for adding USB host audio support in kernel.
Testing[edit]
ALSA compliant audio player and capture application is required for testing USB audio. Kindly read the audio driver section to get more inputs on this.
'arecord' and 'aplay' tools can be used for record and playing audio stream to/from usb audio devices.
To list the audio output (speaker) devices available use
#aplay -l
For playing audio on usb audio speaker.
#aplay -D "hw:0,0" -f S16_LE -r 11025 <samplefile.wav>
To list the audio input (mike) devices available use
#arecord -l
For recording audio from usb audio input/mike device.
#arecord -D "hw:0,0" -f S16_LE -r 16000 <samplefile.wav>
Note: use the appropriate device number "hw:0,0" or "hw:1,0" or "hw:2,0", use "aplay -l" or "arecord -l" to get list of available audio devices/