![](https://secure.gravatar.com/avatar/21c96b641c1fea341bf8c485ee77eaf9.jpg?s=120&d=mm&r=g)
23 Aug
2007
23 Aug
'07
12:08 a.m.
Takashi Iwai wrote:
The purpose of prepare callback is to make the PCM stream ready to start. (The trigger callbacks are supposed to be just triggering, not preparing the stream.) Usually, once after the PCM is triggered, the registers are no longer as same as the beginning. If you want to stop and restart the stream, you'll very likely to reset the registers again. That's why prepare is called again. (Or, your driver is always go-or-die? :)
I thought you meant that the .prepare() function can be called multiple times *in a row*, like .hw_params() is. But I guess that's not what you meant.
--
Timur Tabi
Linux Kernel Developer @ Freescale