Audio over USB is supported on the phyCORE-AM57x development kit. This guide shows you how to connect and use a USB headset for audio and microphone support. For this guide, a Logitech H570e headset was used. 

Make sure Jumpers JP3, JP6 and JP10 are closed before powering on the development kit.

Connect the Device

  • Plug the headset into the USB2.0 (X19) connector

  • After the device is connected, you should see Linux console messages similar to the example below:

    Target (Linux)

    [  218.177573] usb 3-1: new full-speed USB device number 3 using xhci-hcd
    [  218.640926] usb 3-1: Warning! Unlikely big volume range (=4125), cval->res is probably wrong.
    [  218.649521] usb 3-1: [11] FU [Sidetone Playback Volume] ch = 1, val = 0/4125/1
    [  218.745587] input: Logitech Inc Logitech H570e Stereo as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/
    [  218.827835] hid-generic 0003:046D:0A56.0002: input: USB HID v1.11 Device [Logitech Inc Logitech H570e Stereo] on
  • You can also make sure the device is connected by using the lsusb command:

    Target (Linux)


    You will see the logitech headset in the output:

    Expected Output

    root@am57xx-phycore-kit:~# lsusb
    Bus 003 Device 003: ID 046d:0a56 Logitech, Inc.
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Playing Audio

  • You can play audio from the command line using aplay. The below example shows you how to pull a wav file from the internet and start playing it. In order to use this command an internet connection must first be established. Plug in the Ethernet cable, included with your kit, into ETH0 (U38) and connect it to an Ethernet Switch. Refer to Ethernet for more information.

Target (Linux)

aplay -Ddefault:CARD=Stereo a2002011001-e02.wav

Capturing Sound

  • You can use arecord to record audio using the microphone on the headset. 

Target (Linux)

arecord -d 10 -f cd -t wav -Ddefault:CARD=Stereo test.wav
  • Use aplay again to play that recording back. 

Target (Linux)

aplay -Ddefault:CARD=Stereo test.wav

Adjusting Playback and Capture Settings

  • The alsamixer program can be used to change volume settings or mute the device.

Target (Linux)

  • A GUI interface will pop up that can be navigated with the arrow keys. Press "F6" to select the device settings you want to edit.

Click on the link for more information about alsamixer:

  • Use Ctrl + C to quit the alsamixer application.