From c1484093fe9e9bbc2b1a7ba778f3cecbe87340a3 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Mon, 3 Jun 2019 10:30:44 +0800 Subject: MLK-21940-1: ASoC: fsl_asrc: Update mxc_asrc uapi In order to support the new ASRC in i.MX815, we update the user api file mxc_asrc.h. The reason is that the new ASRC support more sample width, and support endianness, sign, float format, iec958 format setting, All these type can be expressed by snd_pcm_format_t type. So we use the in(out)put_format to instead the in(out)put_word_width. Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta Reviewed-by: Viorel Suman (cherry picked from commit b95c32c4d4b51e3e55e1e28269a0e8bce0a04f98) --- sound/soc/fsl/fsl_asrc.h | 8 ++++++++ 1 file changed, 8 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 45562aae89f0..c3c17769aa7e 100644 --- a/sound/soc/fsl/fsl_asrc.h +++ b/sound/soc/fsl/fsl_asrc.h @@ -10,9 +10,12 @@ #ifndef _FSL_ASRC_H #define _FSL_ASRC_H +#include #include #include +#define ASRC_PAIR_MAX_NUM (ASRC_PAIR_C + 1) + #define IN 0 #define OUT 1 @@ -289,6 +292,11 @@ #define ASRC_CLK_MAX_NUM 16 +enum asrc_word_width { + ASRC_WIDTH_24_BIT = 0, + ASRC_WIDTH_16_BIT = 1, + ASRC_WIDTH_8_BIT = 2, +}; struct dma_block { void *dma_vaddr; -- cgit v1.2.3