0071-ASoC-sun4i-spdif-Add-support-for-the-D1-variant.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From af01261bf4e334cad158519291e5bc38765c955f Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Sun, 13 Jun 2021 23:53:26 -0500
  4. Subject: [PATCH 071/117] ASoC: sun4i-spdif: Add support for the D1 variant
  5. The D1 variant is similar to the H6 variant, except for its clock setup.
  6. The clock tree changes impact some register fields on the RX side, but
  7. those are not yet relevant, because RX is not supported by this driver.
  8. Signed-off-by: Samuel Holland <[email protected]>
  9. ---
  10. sound/soc/sunxi/sun4i-spdif.c | 10 ++++++++++
  11. 1 file changed, 10 insertions(+)
  12. --- a/sound/soc/sunxi/sun4i-spdif.c
  13. +++ b/sound/soc/sunxi/sun4i-spdif.c
  14. @@ -556,6 +556,12 @@ static const struct sun4i_spdif_quirks s
  15. .val_fctl_ftx = SUN4I_SPDIF_FCTL_FTX,
  16. };
  17. +static const struct sun4i_spdif_quirks sun20i_d1_spdif_quirks = {
  18. + .tx_clk_name = "tx",
  19. + .reg_dac_txdata = SUN8I_SPDIF_TXFIFO,
  20. + .val_fctl_ftx = SUN50I_H6_SPDIF_FCTL_FTX,
  21. +};
  22. +
  23. static const struct sun4i_spdif_quirks sun50i_h6_spdif_quirks = {
  24. .tx_clk_name = "spdif",
  25. .reg_dac_txdata = SUN8I_SPDIF_TXFIFO,
  26. @@ -576,6 +582,10 @@ static const struct of_device_id sun4i_s
  27. .data = &sun8i_h3_spdif_quirks,
  28. },
  29. {
  30. + .compatible = "allwinner,sun20i-d1-spdif",
  31. + .data = &sun20i_d1_spdif_quirks,
  32. + },
  33. + {
  34. .compatible = "allwinner,sun50i-h6-spdif",
  35. .data = &sun50i_h6_spdif_quirks,
  36. },