Audio over USB is supported on the phyCORE-AM65x 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.
Connect the Device
- Plug the headset into the USB0 (X18) connector
After the device is connected, you should see Linux console messages similar to the below:
You can also make sure the device is connected by using the lsusb command:
You will see the logitech headset in the output:
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.
You can use arecord to record audio using the microphone on the headset.
To play the recorded audio, use the following command:
Adjusting Playback and Capture Settings
The alsamixer program can be used to change volume settings or mute the device.
- A GUI interface will pop up. This can be navigated using arrow keys.
Click on the link for more information about alsamixer: https://linux.die.net/man/1/alsamixer