diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2019-06-03 10:30:44 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:48:40 +0800 |
commit | c1484093fe9e9bbc2b1a7ba778f3cecbe87340a3 (patch) | |
tree | e34160f1d35f99003f27a44e7500d8020fb4229b /sound/soc/fsl/fsl_asrc.h | |
parent | 68c724dca51a4b637a5bade4525f005021f45d6d (diff) |
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 <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit b95c32c4d4b51e3e55e1e28269a0e8bce0a04f98)
Diffstat (limited to 'sound/soc/fsl/fsl_asrc.h')
-rw-r--r-- | sound/soc/fsl/fsl_asrc.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <sound/asound.h> #include <uapi/linux/mxc_asrc.h> #include <linux/miscdevice.h> +#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; |