16 Apr
2014
16 Apr
'14
5:42 p.m.
On Wed, Apr 16, 2014 at 04:08:29PM +0800, Nicolin Chen wrote:
On Wed, Apr 16, 2014 at 09:27:38AM +0200, Markus Pargmann wrote:
Is there always exactly one hw_free call for one hw_params call? There is a comment above the function: "Frees resources allocated by hw_params, can be called multiple times",
That's a good question. IIRC, snd_pcm_release_substream() would call its hw_free() right before calling snd_pcm_close(). So there would be at least twice for hw_free()'s execution.
There may be any number of hw_params() calls.