Skip to contentSkip to conversation

Function to update the PCM status in alsa lib?

DISCUSSION anuj aggarwal 1 participant 1 message Jun 16, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I am calling snd_pcm_period_elapsed() in my DMA callback routine. After doing that, I check for more data in the 'runtime' struct and pass a new request to xfer data to the codec driver.

snd_pcm_period_elapsed() is used to update the pcm status for the next period, by the codec driver. I want to know which function is used by the ALSA library to do the same when it receives a new request from the user to transfer data (i.e. when user calls snd_pcm_writei()).

Thanks,
Anuj