1 From cf07127ea019b78f7ea5e009d494e2bd0bd475fa Mon Sep 17 00:00:00 2001
2 From: Leonard Crestez <leonard.crestez@nxp.com>
3 Date: Thu, 3 Oct 2019 20:44:56 +0300
4 Subject: [PATCH] Revert "ASoC: fsl_sai: Fix noise when using EDMA"
6 This reverts commit e75f4940e8ad0dd76527302a10c06b58bf7eb590.
8 sound/soc/fsl/fsl_sai.c | 15 ---------------
9 sound/soc/fsl/fsl_sai.h | 1 -
10 2 files changed, 16 deletions(-)
12 --- a/sound/soc/fsl/fsl_sai.c
13 +++ b/sound/soc/fsl/fsl_sai.c
14 @@ -628,16 +628,6 @@ static int fsl_sai_startup(struct snd_pc
15 FSL_SAI_CR3_TRCE_MASK,
19 - * EDMA controller needs period size to be a multiple of
22 - if (sai->soc_data->use_edma)
23 - snd_pcm_hw_constraint_step(substream->runtime, 0,
24 - SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
25 - tx ? sai->dma_params_tx.maxburst :
26 - sai->dma_params_rx.maxburst);
28 ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
29 SNDRV_PCM_HW_PARAM_RATE, &fsl_sai_rate_constraints);
31 @@ -1048,35 +1038,30 @@ static int fsl_sai_remove(struct platfor
33 static const struct fsl_sai_soc_data fsl_sai_vf610_data = {
40 static const struct fsl_sai_soc_data fsl_sai_imx6sx_data = {
47 static const struct fsl_sai_soc_data fsl_sai_imx7ulp_data = {
54 static const struct fsl_sai_soc_data fsl_sai_imx8mq_data = {
61 static const struct fsl_sai_soc_data fsl_sai_imx8qm_data = {
67 --- a/sound/soc/fsl/fsl_sai.h
68 +++ b/sound/soc/fsl/fsl_sai.h
71 struct fsl_sai_soc_data {
74 unsigned int fifo_depth;
75 unsigned int reg_offset;