Skip to content
  1. Feb 09, 2012
  2. Feb 06, 2012
  3. Feb 02, 2012
  4. Feb 01, 2012
  5. Jan 31, 2012
  6. Jan 30, 2012
  7. Jan 28, 2012
  8. Jan 27, 2012
  9. Jan 26, 2012
  10. Jan 25, 2012
  11. Jan 24, 2012
  12. Jan 23, 2012
  13. Jan 21, 2012
    • Fabio Estevam's avatar
      ASoC: mxs: Fix mxs-saif timeout · 6b35f924
      Fabio Estevam authored
      
      
      On a mx28evk board the following errors happens on mxs-sgtl5000 probe:
      
      [    0.660000] saif0_clk_set_rate: divider writing timeout
      [    0.670000] mxs-sgtl5000: probe of mxs-sgtl5000.0 failed with error -110
      [    0.670000] ALSA device list:
      [    0.680000]   No soundcards found.
      
      This timeout happens because clk_set_rate will result in writing to the DIV bits
      of register HW_CLKCTRL_SAIF0 with the saif clock gated (CLKGATE bit set to one).
      
      MX28 Reference states the following about CLKGATE:
      
      "The DIV field can change ONLY when this clock gate bit field is low."
      
      So call clk_prepare_enable prior to clk_set_rate to fix this problem.
      
      After this change the mxs-saif driver can be correctly probed and audio is functional.
      
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      6b35f924
  14. Jan 20, 2012
  15. Jan 19, 2012