Hello TI,
I wanted to Have time stamp in Audio driver of McASP. How do I Give Time stamp this Driver that I can read from Application layer.
Need Suggestion regarding This Issue.
Thanks,
Hinesh
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.
Hello TI,
I wanted to Have time stamp in Audio driver of McASP. How do I Give Time stamp this Driver that I can read from Application layer.
Need Suggestion regarding This Issue.
Thanks,
Hinesh
Hi Pavel,
I appreciate Fast Reply and The suggestions. I have also Went through links but I am not able to find the answer.
Let me clear my question. In main Audio source in "ezsdk_dm814x-evm_5_05_01_04" I want time stamps.
I am using ALSA for audio capture And Wanted time stamps on every Audio frame.
Need Guidance In this matter.
Thanks,
Hinesh.
Hi Pavel,
Thanks for your Reply
I have some other issues that I am facing now.
I am having DM81xx Processor . In That I am using ALSA driver for sound ( V 1.0.23 ) .While I was running my application at 32k , After some time I am getting Error. So When I checked on graph, after some time ( time varies from 0.5 to 1.5 Hr) I am getting sample Drop. And that point,linear Sound Graph went Down Directly. I am doubting it's buffer problem. And some times I am getting samples from 0-32k instantly.
Running the audio data transfer with a different asp_chan_q ,(EVENTQ_1 vs EVENTQ_2) makes no difference.
it will be really helpful if anyone can solve the issue soon as it is a high priority task and critical to solve the issue.
Thanks,
Hinesh
Hinesh,
Which version of the DM814x linux kernel you are using? Can you try with the latest code base, available at the below link:
http://arago-project.org/git/projects/?p=linux-omap3.git;a=shortlog;h=refs/heads/ti81xx-master
See also if the below wiki pages will be in help:
processors.wiki.ti.com/.../TI81XX_PSP_AUDIO_Driver_User_Guide
processors.wiki.ti.com/.../TI81XX_PSP_04.04.00.02_Feature_Performance_Guide
processors.wiki.ti.com/.../TI81XX_PSP_04.04.00.02_Release_Notes
processors.wiki.ti.com/.../Sitara_Linux_Audio_Sample_Application_Overview
processors.wiki.ti.com/.../Processor_SDK_Linux_Audio
processors.wiki.ti.com/.../Linux_Core_Audio_User%27s_Guide
BR
Pavel
Hi Pavel,
Thank you for Reply.
I am using Kernel Version 2.6.37 and the ALSA audio driver is 1.0.23.
I have also looked on links above. But the issue still not resolved.
Thanks,
Hinesh
Hi Pavel,
Thank you for the Reply.
I have Replaced the ALSA Driver version with new version Compatible with Kernel (1.0.25) , and Issue is Resolved.
I also Wanted to know that, Is there any way that we can have timestamps available for each frame from H/W leval (I2S or McASP Layer) .?
Thanks,
Hinesh
Hinesh Gohel said:I have Replaced the ALSA Driver version with new version Compatible with Kernel (1.0.25) , and Issue is Resolved.
Thanks for the update. You also might find the below e2e thread interesting, as it is related to that:
Hinesh Gohel said:I also Wanted to know that, Is there any way that we can have timestamps available for each frame from H/W leval (I2S or McASP Layer) .?
HW timestamp is available only for DM814x EMAC module. There is no HW timestamp support for DM814x McASP module.
BR
Pavel
Hinesh Gohel said:I wanted to know that Is it possible to access each audio frame individually between EDMA read from the McASP and before EDMA put that data to Destination address ?
Can we do that??
In my opinion, you can not do that. EDMA controller is HW mechanism to offload the data transfer from the host CPU (Cortex-A8 or DSP). The host CPU does not have option to access the data transferred from the EDMA in the middle of this EDMA transfer. The host CPU can access this data, after the transfer complete and EDMA notify the host CPU that this transfer is completed.
You can refer to DM814x TRM, chapters 8 EDMA (sections 8.4.4.1 Non-bursting Peripherals, 8.4.4.3 Continuous Operation) and 16 McASP.
BR
Pavel