Hello, TI Experts,
We have an additional question about DVSDK from E2E thread as below.
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,