From 740c0b6c74d0accfbe6542f2a4470e94be3aaadd Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Mon, 27 Nov 2017 10:51:49 +0800 Subject: MLK-16956: ASoC: fsl_asrc: fix error with S24_3LE format bitstream The error is "aplay: pcm_write:2023: write error: Input/output error" query the caps of dma, then update the hw parameters according the caps. for EDMA can't support 24bit sample, but we didn't add any constraint, that cause issues. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_asrc.h | 2 ++ 1 file changed, 2 insertions(+) (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 fd1fe4a9fd21..d033968d3d1a 100644 --- a/sound/soc/fsl/fsl_asrc.h +++ b/sound/soc/fsl/fsl_asrc.h @@ -375,5 +375,7 @@ struct fsl_asrc { #define DRV_NAME "fsl-asrc-dai" extern struct snd_soc_component_driver fsl_asrc_component; struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair, bool dir); +int fsl_asrc_request_pair(int channels, struct fsl_asrc_pair *pair); +void fsl_asrc_release_pair(struct fsl_asrc_pair *pair); #endif /* _FSL_ASRC_H */ -- cgit v1.2.3