This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320DM365: DVSDK: Audio sdk demo about using snd_pcm_readi() of Sound_alsa.c

Guru 10235 points
Part Number: TMS320DM365

Hello, TI Experts,

 

We have an additional question about DVSDK from E2E thread as below.

http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/p/638275/2356048?keyMatch=alsa&tisearch=Search-EN-Everything

 

From the feedback of this thread,

We requested the details to our customer.

 

In parallel,

we would like to check the snd_pcm_readi() behavior of Sound_alsa.c with the DM36xEVM.

 

Question:

  Are there any sample or demo using snd_pcm_readi() of Sound_alsa.c?

 

Currently, we don't have the customer application program of their custom board.

So we try to check the SDK demo such as "audio_encode1_dm368.x470MV" of DVSDK 4_02_00_06 .

 

But It seems this demo don't use snd_pcm_readi().

Because we cannot see any printf log message which we inserted to the snd_pcm_readi() of Sound_alsa.c. like below.

 

>    while (readSamples > 0) {

>        printf("Debug!!! : send_pcm_readi\n");

>        printf("\tnumSamples= %ld\n", numSamples);

>

>        numSamples = snd_pcm_readi(hSound->rcIn, bufPtr, readSamples);

 

And we would like to share the build&run procedure as below;

 

At first we modified the file "Rules.make"

  EXEC_DIR=/media/ROOTFS  (this is SD card rootfs.)

 

Then Build & install

  host>make all

  host>make install

  host>make linux

  host>make linux_install

  host>make cmem

  host>make cmem_install

 host>make all

  host>make install

  host> cp dmai_2_20_00_15/packages/ti/sdo/dmai/apps/audio_encode1/linux/audio_encode1_dm368.x470MV /media/ROOTFS/home/root/

 

And run the demo on the EVM(target)

 target>./audio_encode1_dm368.x470MV -c aaclc_enc -o output.aac --soundinput linein -n 10000 --samplerate 48000 --bitrate 256000

 target> Debug! : Encode Start! <- we also see the printf message which we write to dmai_2_20_00_15/packages/ti/sdo/dmai/apps/audio_encode1/appMain.c

 

But we cannot see any printf message which we write to Sound_alsa.c.

 

We would appreciate if you tell us recommended sample or demo by using the snd_pcm_readi() of Sound_alsa.c.

 

Best regards,