801-audio-0001-Revert-ASoC-fsl_sai-Fix-noise-when-using-EDMA.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. From cf07127ea019b78f7ea5e009d494e2bd0bd475fa Mon Sep 17 00:00:00 2001
  2. From: Leonard Crestez <[email protected]>
  3. Date: Thu, 3 Oct 2019 20:44:56 +0300
  4. Subject: [PATCH] Revert "ASoC: fsl_sai: Fix noise when using EDMA"
  5. This reverts commit e75f4940e8ad0dd76527302a10c06b58bf7eb590.
  6. ---
  7. sound/soc/fsl/fsl_sai.c | 15 ---------------
  8. sound/soc/fsl/fsl_sai.h | 1 -
  9. 2 files changed, 16 deletions(-)
  10. --- a/sound/soc/fsl/fsl_sai.c
  11. +++ b/sound/soc/fsl/fsl_sai.c
  12. @@ -628,16 +628,6 @@ static int fsl_sai_startup(struct snd_pc
  13. FSL_SAI_CR3_TRCE_MASK,
  14. FSL_SAI_CR3_TRCE);
  15. - /*
  16. - * EDMA controller needs period size to be a multiple of
  17. - * tx/rx maxburst
  18. - */
  19. - if (sai->soc_data->use_edma)
  20. - snd_pcm_hw_constraint_step(substream->runtime, 0,
  21. - SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
  22. - tx ? sai->dma_params_tx.maxburst :
  23. - sai->dma_params_rx.maxburst);
  24. -
  25. ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
  26. SNDRV_PCM_HW_PARAM_RATE, &fsl_sai_rate_constraints);
  27. @@ -1052,35 +1042,30 @@ static int fsl_sai_remove(struct platfor
  28. static const struct fsl_sai_soc_data fsl_sai_vf610_data = {
  29. .use_imx_pcm = false,
  30. - .use_edma = false,
  31. .fifo_depth = 32,
  32. .reg_offset = 0,
  33. };
  34. static const struct fsl_sai_soc_data fsl_sai_imx6sx_data = {
  35. .use_imx_pcm = true,
  36. - .use_edma = false,
  37. .fifo_depth = 32,
  38. .reg_offset = 0,
  39. };
  40. static const struct fsl_sai_soc_data fsl_sai_imx7ulp_data = {
  41. .use_imx_pcm = true,
  42. - .use_edma = false,
  43. .fifo_depth = 16,
  44. .reg_offset = 8,
  45. };
  46. static const struct fsl_sai_soc_data fsl_sai_imx8mq_data = {
  47. .use_imx_pcm = true,
  48. - .use_edma = false,
  49. .fifo_depth = 128,
  50. .reg_offset = 8,
  51. };
  52. static const struct fsl_sai_soc_data fsl_sai_imx8qm_data = {
  53. .use_imx_pcm = true,
  54. - .use_edma = true,
  55. .fifo_depth = 64,
  56. .reg_offset = 0,
  57. };
  58. --- a/sound/soc/fsl/fsl_sai.h
  59. +++ b/sound/soc/fsl/fsl_sai.h
  60. @@ -157,7 +157,6 @@
  61. struct fsl_sai_soc_data {
  62. bool use_imx_pcm;
  63. - bool use_edma;
  64. unsigned int fifo_depth;
  65. unsigned int reg_offset;
  66. };