1. 29 9月, 2017 1 次提交
  2. 26 9月, 2017 1 次提交
  3. 23 8月, 2017 1 次提交
  4. 22 8月, 2017 1 次提交
  5. 10 8月, 2017 1 次提交
    • B
      ASoC: codecs: add const to snd_soc_codec_driver structures · a180ba45
      Bhumika Goyal 提交于
      Declare snd_soc_codec_driver structures as const as they are only passed
      as an argument to the function snd_soc_register_codec. This argument is
      of type const, so declare the structures with this property as const.
      In file codecs/sn95031.c, snd_soc_codec_driver structure is also used in
      a copy operation along with getting passed to snd_soc_register_codec.
      So, it can be made const too.
      Done using Coccinelle:
      
      @match disable optional_qualifier@
      identifier s;
      position p;
      @@
      static struct snd_soc_codec_driver s@p={...};
      
      @good1@
      identifier match.s;
      position p;
      @@
      snd_soc_register_codec(...,&s@p,...)
      
      @bad@
      identifier match.s;
      position p!={match.p,good1.p};
      @@
      s@p
      
      @depends on !bad disable optional_qualifier@
      identifier match.s;
      @@
      static
      +const
      struct snd_soc_codec_driver s={...};
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a180ba45
  6. 26 7月, 2017 2 次提交
  7. 30 6月, 2017 1 次提交
  8. 29 6月, 2017 4 次提交
  9. 19 4月, 2017 1 次提交
  10. 01 2月, 2017 1 次提交
  11. 01 12月, 2016 2 次提交
  12. 27 10月, 2016 1 次提交
  13. 25 10月, 2016 1 次提交
  14. 08 8月, 2016 1 次提交
  15. 22 6月, 2016 1 次提交
  16. 07 6月, 2016 2 次提交
  17. 05 8月, 2015 2 次提交
  18. 17 7月, 2015 1 次提交
  19. 15 7月, 2015 2 次提交
  20. 07 7月, 2015 1 次提交
  21. 15 6月, 2015 1 次提交
  22. 20 5月, 2015 1 次提交
  23. 28 4月, 2015 1 次提交
  24. 12 3月, 2015 1 次提交
  25. 11 3月, 2015 2 次提交
  26. 10 3月, 2015 2 次提交
    • B
      ASoC: rt5670: Check sysclk source by private data · 485372dc
      Bard Liao 提交于
      Currently, is_sys_clk_from_pll check sysclk source by reading codec
      register value. And it will be invoked before updating dapm widget
      power. In some machine driver, snd_soc_dai_set_sysclk is called in
      dapm event to switch codec sysclk to RC clock in idle mode. And in
      some use cases (such as syspend/resume) hw_params will not be called
      when the dapm widget is powered up. As a result, is_sys_clk_from_pll
      will return 0 although it is supposed to be 1.
      To solve this, we let is_sys_clk_from_pll check sysclk sysclk_src
      which is stored in private data and don't change the value of sysclk_src
      when codec sysclk is switched to internal clock. The internal clock
      can only be used in idle mode, so it sould be fine if we don't set
      sysclk_src to internal clock.
      Signed-off-by: NBard Liao <bardliao@realtek.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      485372dc
    • B
      ASoC: rt5670: Revert Keep sysclk on patch · bd22f9d4
      Bard Liao 提交于
      The "Keep sysclk on if JD func is used" patch force enable/disable
      pin in rt5670_set_dai_sysclk. But some machine driver call it in
      dapm widget event. It will cause kernel crash.
      Signed-off-by: NBard Liao <bardliao@realtek.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bd22f9d4
  27. 05 3月, 2015 1 次提交
  28. 03 3月, 2015 3 次提交