KathyLee
KathyLee

Reputation: 61

Timestamp: how to identify the time when a CPU commend arrives at the sound card?

how to identify the time when a CPU commend arrives at the sound card and triggers a sound play, by inspecting the audio driver"?

I have reached https://android.googlesource.com/kernel/omap.git/+/android-omap-3.0/sound/, but there are lots of documents and codes in it. So I cannot find the exact location of the codes related to the time needed from CPU to sound card.

Then I also think that the codes about this timestamp should be in the "https://android.googlesource.com/kernel/omap.git/+/android-omap-3.0/Documentation/sound/alsa/". Same question- so many documents in it, I have no idea where the codes are supposed to be...

Thank you very much.

Upvotes: 1

Views: 204

Answers (1)

CL.
CL.

Reputation: 180210

That would be the trigger callback of the platform driver of whatever audio DMA controller it is that you're using. In your case, look into sound/soc/omap/omap-mcbsp.c and omap-pcm.c.

Upvotes: 1

Related Questions