/* release the preallocated buffer if not yet done.  */
static void snd_pcm_lib_preallocate_dma_free(struct snd_pcm_substream *substream)
/* release the preallocated buffer if not yet done.  */
static void snd_pcm_lib_preallocate_dma_free(struct snd_pcm_substream *substream)
{
	if (substream->dma_buffer.area == NULL)
		return;
	if (substream->dma_buf_id)
		snd_dma_reserve_buf(&substream->dma_buffer, substream->dma_buf_id);
	else
		snd_dma_free_pages(&substream->dma_buffer);
	substream->dma_buffer.area = NULL;
}