# USB Audio Output

**URL:** <https://mangoh.discourse.group/t/usb-audio-output/943>\
**Category:** mangOH Red\
**Created:** [November 28, 2017, 9:26pm UTC](https://mangoh.discourse.group/t/usb-audio-output/943 "2017-11-28T21:26:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewwestrick](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/drewwestrick/32/270_2.png) [@drewwestrick](https://mangoh.discourse.group/u/drewwestrick)\
**Post date:** [November 28, 2017, 9:26pm UTC](https://mangoh.discourse.group/t/usb-audio-output/943/1 "2017-11-28T21:26:52Z")

</div>

I’m trying to get a USB class audio device to work with the mangOH red platform. I’m configured the OTG usb using the commands below to enable audio.

**Request: microcom -E /dev/ttyAT**

> AT!ENTERCND=“A710”  
> AT!USBCOMP=1,1,9010D  
> AT!USBCOMP?

**Response:**

> Config Index: 1  
> Config Type: 1 (Generic)  
> Interface bitmask: 0009010D (diag,nmea,modem,rmnet0,audio,ecm)

[AT Command Source (page 78)](https://source.sierrawireless.com/~/media/support_downloads/airprime/software/4118047_wpx5xx-wp76xx%20at%20command%20reference_r3.ashx)

Once I reboot and connect the device via the USB OTG port (CF3 USB) I ran the lsusb command. The result is below.

> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
> Bus 002 Device 003: ID 08bb:2704 Texas Instruments Audio Codec  
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So far it seems the device is being recognized correctly. In order to test the device I’m using one of the audio tests in the legato framework. The project I’m using is in the link below.

> <https://github.com/legatoproject/legato-af/tree/master/apps/test/audio/audioPlaybackRec>
>
> //github.com/legatoproject/legato-af/tree/master/apps/test/audio/audioPlaybackRec

Once I installed the audioPlaybackRec application I execute the following command below. Despite the command running properly I don’t get any audio out of my USB device. I’ve tested this device on a Windows PC and get audio out no problem.

> app runProc audioPlaybackRec --exe=audioPlaybackRecTest – PB USB /usr/share/sounds/male.wav

I’ve also tested this command using the call below and audio is successfully output on the mangOH red audio jack.

> app runProc audioPlaybackRec --exe=audioPlaybackRecTest – PB MIC /usr/share/sounds/male.wav

Any guidance on how I can get external USB audio to output would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![drewwestrick](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/drewwestrick/32/270_2.png) [@drewwestrick](https://mangoh.discourse.group/u/drewwestrick)\
**Post date:** [November 30, 2017, 7:30pm UTC](https://mangoh.discourse.group/t/usb-audio-output/943/2 "2017-11-30T19:30:10Z")

</div>

After doing some more digging into the code for in the Legato framework it seems to me that USB audio may not yet be implemented in the code. I could be wrong but I just don’t quite see how the `le_audio_OpenUsbTx` function actually goes about selecting and connecting to a USB class audio device.

Could someone from Sierra possible comment on whether this functionality is currently available or maybe just a placeholder for future development?

Has anyone in the community ever had a USB audio device working?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [November 30, 2017, 8:58pm UTC](https://mangoh.discourse.group/t/usb-audio-output/943/3 "2017-11-30T20:58:06Z")

</div>

I don’t believe USB audio is enabled but will double check tomorrow

---

<div class="post-metadata">

**Author:** ![AE\_1](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@AE\_1](https://mangoh.discourse.group/u/AE_1)\
**Post date:** [December 4, 2017, 8:26am UTC](https://mangoh.discourse.group/t/usb-audio-output/943/4 "2017-12-04T08:26:07Z")

</div>

I also have this issue. I tried to get le\_audio\_OpenUsbTx working.  
But it did not work.
