Ext. USB Sound Adapter connected to MangOH Board

Hallo everyone,
I am testing DTMF and Voice Call playback on USB Sound Adapter which is connected to MangOH Board via USB Host. But it seems to not work. I don’t hear anything.

Legato lists the usb sound card as below…
root@swi-mdm9x15:~# cat /proc/asound/cards
0 [mdm9615nocodecs]: mdm9615-nocodec - mdm9615-nocodec-snd-card
mdm9615-nocodec-snd-card
1 [USB ]: USB-Audio - Jabra SPEAK 410 USB
Jabra SPEAK 410 USB at usb-msm_hsic_host-1.3.2, full speed
root@swi-mdm9x15:~#

my source code…
void DTMF_ON_USB(void)
{
le_result_t res = 0;
const char b[10]= {‘1’, ‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,0};
FeOutRef = le_audio_OpenUsbTx() ;
AudioRef = le_audio_OpenPlayer();
AudioOutputConnectorRef = le_audio_CreateConnector();
le_audio_Connect(AudioOutputConnectorRef, FeOutRef);
le_audio_Connect(AudioOutputConnectorRef, AudioRef);
res = le_audio_PlayDtmf(AudioRef ,b,500,500);
LE_INFO("######le_audio_PlayDtmf(): %d", res);

}

COMPONENT_INIT
{
LE_INFO("######DTMF On USB Speaker");
DTMF_ON_USB();
}

What is wrong?

Hello All,

anyone was successful to rout the voice call to an external device connected via USB on MangOH green board ?

Hi all ,
Has anyone achieved this ? If yes please let me know the method followed .

Thanks & Regards

  • AK

here says the USB audio is working fine with WP76:

Hi @jyijyi ,

After enabling the USB-Audio drivers . I tried playing a .wav file but I am experiencing below error messages .

**root@swi-mdm9x28-wp:~# aplay -D hw:1,0 CantinaBand60.wav **
aplay: Playing ‘CantinaBand60.wav’:Signed 16 bit Little Endian
Aplay:cannot set hw params
Aplay:params setting failed

root@swi-mdm9x28-wp:~# cat /proc/asound/cards
0 [mdm9607wm8944i2]: mdm9607-wm8944- - mdm9607-wm8944-i2s-snd-card
mdm9607-wm8944-i2s-snd-card
1 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-7c00000.hsic_host-1.1, ful

Any Idea what is missing ?

Thanks & Regards
-Akshay K

please see here:

Hi @jyijyi ,

I have tried this at my end earlier this is not my use case i believe . I want to play the audio in External USB-Audio dongle for which the USB-AUDIO driver is enabled .

Regards

  • Akshay K

no, I don’t have experience on this…

Not sure if “-D hw:1,0” is correct on your side.
Have you tried to connect to Ubuntu PC first to see how to use that USB sound device?