mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
tegra-alt: adsp: free compress buffer on stream close
Free of compress stream buffer. Fix freeing of PCM capture buffer. Bug 200056741 Change-Id: Ia64ba3206563f0d22f30bca1bab9349a7a5ca0dd Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-on: http://git-master/r/748714 (cherry picked from commit 9cc04c256d3e8b56f4264d5f246d773a3192a1ca) Reviewed-on: http://git-master/r/751863
This commit is contained in:
committed by
Sameer Pujar
parent
f412a0819f
commit
df11e734e5
@@ -951,6 +951,8 @@ static int tegra210_adsp_compr_free(struct snd_compr_stream *cstream)
|
||||
|
||||
pm_runtime_put(prtd->dev);
|
||||
|
||||
tegra210_adsp_deallocate_dma_buffer(&prtd->buf);
|
||||
|
||||
prtd->fe_apm->fe = 0;
|
||||
cstream->runtime->private_data = NULL;
|
||||
devm_kfree(prtd->dev, prtd);
|
||||
@@ -1472,7 +1474,7 @@ static void tegra210_adsp_pcm_free(struct snd_pcm *pcm)
|
||||
tegra210_adsp_deallocate_dma_buffer(
|
||||
&pcm->streams[stream].substream->dma_buffer);
|
||||
}
|
||||
if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
|
||||
if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
|
||||
int stream = SNDRV_PCM_STREAM_CAPTURE;
|
||||
|
||||
tegra210_adsp_deallocate_dma_buffer(
|
||||
|
||||
Reference in New Issue
Block a user