1. 01 2月, 2012 1 次提交
    • D
      ALSA: hda - Fix calling cs_automic twice for Cirrus codecs. · f70eecde
      Dylan Reid 提交于
      If cs_automic is called twice (like it is during init) while the mic
      is present, it will over-write the last_input with the new one,
      causing it to switch back to the automic input when the mic is
      unplugged. This leaves the driver in a state (cur_input, last_input,
      and automix_idx the same) where the internal mic can not be selected
      until it is rebooted without the mic attached.
      
      Check that the mic hasn't already been switched to before setting
      last_input.
      Signed-off-by: NDylan Reid <dgreid@chromium.org>
      Cc: <stable@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f70eecde
  2. 31 1月, 2012 3 次提交
  3. 30 1月, 2012 4 次提交
  4. 28 1月, 2012 1 次提交
  5. 27 1月, 2012 2 次提交
  6. 26 1月, 2012 5 次提交
  7. 25 1月, 2012 3 次提交
  8. 24 1月, 2012 7 次提交
  9. 23 1月, 2012 1 次提交
  10. 21 1月, 2012 1 次提交
    • F
      ASoC: mxs: Fix mxs-saif timeout · 6b35f924
      Fabio Estevam 提交于
      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: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      6b35f924
  11. 20 1月, 2012 12 次提交