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

From Texas Instruments Wiki
Jump to: navigation, search
TIBanner.png
Host Audio Kernel Config
Linux PSP



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/

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article UsbConfigHostAudio here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article UsbConfigHostAudio here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article UsbConfigHostAudio here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article UsbConfigHostAudio here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article UsbConfigHostAudio here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article UsbConfigHostAudio here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article UsbConfigHostAudio here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article UsbConfigHostAudio here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article UsbConfigHostAudio here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity