summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_asrc.h
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2017-11-27 10:51:49 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:48:31 +0800
commit740c0b6c74d0accfbe6542f2a4470e94be3aaadd (patch)
tree25ae9d3d2b71b096c68364d3ed45de5cbaf8c800 /sound/soc/fsl/fsl_asrc.h
parente71db44eb026adb9502e4fd363cf32b79dd6347d (diff)
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 <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_asrc.h')
-rw-r--r--sound/soc/fsl/fsl_asrc.h2
1 files changed, 2 insertions, 0 deletions
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 */