1. 30 4月, 2017 2 次提交
    • D
      ASoC: codec: wm8960: Relax bit clock computation when using PLL · 82bab889
      Daniel Baluta 提交于
      Bitclk is derived from sysclk using bclk_divs.
      Sysclk can be derived in two ways:
      	(1) directly from MLCK
      	(2) MCLK via PLL
      
      Commit 3c01b9ee ("ASoC: codec: wm8960: Relax bit clock
      computation")
      relaxed bitclk computation when sysclk is directly derived from MCLK.
      
      Lets do the same thing when sysclk is derived via PLL.
      Signed-off-by: NDaniel Baluta <daniel.baluta@nxp.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      82bab889
    • D
      ASoC: codec: wm9860: avoid maybe-uninitialized warning · 66772eda
      Daniel Baluta 提交于
      The new PLL configuration code triggers a harmless warning:
      
      sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking':
      sound/soc/codecs/wm8960.c:735:3: error: 'best_freq_out' may be used
      uninitialized in this function [-Werror=maybe-uninitialized]
         wm8960_set_pll(codec, freq_in, best_freq_out);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/soc/codecs/wm8960.c:699:12: note: 'best_freq_out' was declared
      here
      
      Fix this by reworking the code such that:
      
      1) When there is no PLL freq available return -EINVAL and make
      sure *bclk_idx, *dac_idx, *sysclk_idx are initialized with
      invalid values.
      
      2) When there is a PLL freq available initialize *bclk_idx,
      *dac_idx and *sysclk_idx with correct values and immediately
      return the freq available.
      
      Fixes: 84fdc00d ("ASoC: codec: wm9860: Refactor PLL out freq search")
      Fixes: 303e8954 ("ASoC: codec: wm8960: Stop when a matching PLL freq is found")
      Suggested-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDaniel Baluta <daniel.baluta@nxp.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      66772eda
  2. 07 4月, 2017 1 次提交
  3. 06 4月, 2017 1 次提交
  4. 25 3月, 2017 2 次提交
  5. 29 9月, 2016 1 次提交
  6. 02 9月, 2016 1 次提交
    • J
      ASoC: constify snd_soc_codec_driver structures · f802d6c0
      Julia Lawall 提交于
      Check for snd_soc_codec_driver structures that are only passed to
      snd_soc_register_codec or memcpy (2nd arg), for which the corresponding
      parameters are declared const.  Declare as const snd_soc_codec_driver
      structures that have these properties.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct snd_soc_codec_driver i@p = { ... };
      
      @ok@
      identifier r.i;
      expression e1,e2,e3;
      position p;
      @@
      (
      snd_soc_register_codec(e1,&i@p,e2,e3)
      |
      memcpy(e1,&i@p,e2)
      )
      
      @bad@
      position p != {r.p,ok.p};
      identifier r.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      static
      +const
       struct snd_soc_codec_driver i = { ... };
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      f802d6c0
  7. 23 1月, 2016 2 次提交
  8. 08 1月, 2016 2 次提交
  9. 25 12月, 2015 1 次提交
  10. 04 11月, 2015 1 次提交
  11. 22 10月, 2015 1 次提交
  12. 19 9月, 2015 1 次提交
  13. 11 9月, 2015 2 次提交
  14. 12 8月, 2015 1 次提交
  15. 15 7月, 2015 1 次提交
  16. 12 6月, 2015 1 次提交
  17. 01 6月, 2015 1 次提交
  18. 13 5月, 2015 3 次提交
  19. 28 4月, 2015 1 次提交
  20. 11 3月, 2015 1 次提交
  21. 15 1月, 2015 1 次提交
  22. 07 1月, 2015 1 次提交
  23. 27 11月, 2014 1 次提交
  24. 25 11月, 2014 1 次提交
  25. 22 11月, 2014 1 次提交
  26. 01 8月, 2014 1 次提交
  27. 23 7月, 2014 1 次提交
    • L
      ASoC: Move card field form platform/codec to component · 00200107
      Lars-Peter Clausen 提交于
      Both the snd_soc_codec and snd_soc_platform struct do have a pointer to the
      parent card and both handle this pointer in mostly the same way. This patch
      moves the card field to the component level which will allow further code
      consolidation between platforms and CODECS.
      
      Since there are only a handful of users of the snd_soc_codec struct's card field
      (and none of the snd_soc_platform's) these are update in this patch as well,
      which allows it to be removed from the snd_soc_codec struct.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      00200107
  28. 15 4月, 2014 1 次提交
  29. 11 3月, 2014 1 次提交
  30. 18 8月, 2013 1 次提交
  31. 15 8月, 2013 1 次提交
  32. 04 3月, 2013 1 次提交
  33. 01 3月, 2013 1 次提交