Ext. USB Sound Adapter connected to MangOH Board


#1

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?


#2

Hello All,

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