From 683763a08c7b0c03d7d4ab851d98e19a9174bb96 Mon Sep 17 00:00:00 2001 From: Viorel Suman Date: Wed, 4 Jul 2018 11:58:49 +0300 Subject: MLK-18737: move 'pair_streams' to 'struct fsl_asrc_pair' For multi p2p instance an ASRC device cannot be closed successfully when two threads plays streams simultaneously on same ASRC device. 'pair_streams' variable shall be moved to 'struct fsl_asrc_pair' for multi p2p instance in order to handle pair release properly. Signed-off-by: Viorel Suman Suggested-by: Shengjiu Wang --- sound/soc/fsl/fsl_asrc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/soc/fsl/fsl_asrc.h') diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h index d033968d3d1a..d377955758be 100644 --- a/sound/soc/fsl/fsl_asrc.h +++ b/sound/soc/fsl/fsl_asrc.h @@ -321,6 +321,7 @@ struct fsl_asrc_pair { struct dma_chan *dma_chan[2]; struct imx_dma_data dma_data; unsigned int pos; + unsigned int pair_streams; void *private; }; @@ -363,7 +364,6 @@ struct fsl_asrc { struct miscdevice asrc_miscdev; unsigned int channel_bits; unsigned int channel_avail; - unsigned int pair_streams; int asrc_rate; int asrc_width; -- cgit v1.2.3