0073-ASoC-sun4i-spdif-Add-support-for-separate-resets.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. From c2b3f2c723e1b558afe5661bb91669e3b68154f7 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Sun, 13 Jun 2021 23:52:47 -0500
  4. Subject: [PATCH 073/117] ASoC: sun4i-spdif: Add support for separate resets
  5. Signed-off-by: Samuel Holland <[email protected]>
  6. ---
  7. sound/soc/sunxi/sun4i-spdif.c | 5 +++--
  8. 1 file changed, 3 insertions(+), 2 deletions(-)
  9. --- a/sound/soc/sunxi/sun4i-spdif.c
  10. +++ b/sound/soc/sunxi/sun4i-spdif.c
  11. @@ -28,10 +28,11 @@
  12. #include <sound/soc.h>
  13. #define SUN4I_SPDIF_CTL (0x00)
  14. + #define SUN4I_SPDIF_CTL_RST_RX BIT(12)
  15. #define SUN4I_SPDIF_CTL_MCLKDIV(v) ((v) << 4) /* v even */
  16. #define SUN4I_SPDIF_CTL_MCLKOUTEN BIT(2)
  17. #define SUN4I_SPDIF_CTL_GEN BIT(1)
  18. - #define SUN4I_SPDIF_CTL_RESET BIT(0)
  19. + #define SUN4I_SPDIF_CTL_RST_TX BIT(0)
  20. #define SUN4I_SPDIF_TXCFG (0x04)
  21. #define SUN4I_SPDIF_TXCFG_SINGLEMOD BIT(31)
  22. @@ -196,7 +197,7 @@ static void sun4i_spdif_configure(struct
  23. const struct sun4i_spdif_quirks *quirks = host->quirks;
  24. /* soft reset SPDIF */
  25. - regmap_write(host->regmap, SUN4I_SPDIF_CTL, SUN4I_SPDIF_CTL_RESET);
  26. + regmap_write(host->regmap, SUN4I_SPDIF_CTL, SUN4I_SPDIF_CTL_RST_TX);
  27. /* flush TX FIFO */
  28. regmap_update_bits(host->regmap, SUN4I_SPDIF_FCTL,