1. 08 11月, 2017 1 次提交
  2. 09 9月, 2017 1 次提交
  3. 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
  4. 08 8月, 2016 1 次提交
  5. 25 7月, 2015 1 次提交
  6. 15 5月, 2015 1 次提交
  7. 28 4月, 2015 1 次提交
  8. 17 4月, 2015 1 次提交
  9. 12 4月, 2015 1 次提交
  10. 24 3月, 2015 1 次提交
  11. 23 3月, 2015 1 次提交
  12. 22 3月, 2015 1 次提交
  13. 24 2月, 2015 2 次提交
  14. 29 1月, 2015 7 次提交
  15. 10 1月, 2015 1 次提交
  16. 13 12月, 2014 1 次提交
  17. 12 8月, 2014 1 次提交
  18. 15 4月, 2014 2 次提交
  19. 09 3月, 2014 2 次提交
  20. 08 2月, 2014 2 次提交
    • M
      ASoC: pcm512x: Implement analogue volume control · 5be2fc20
      Mark Brown 提交于
      There are some analogue volume controls in page 1 of the register map so
      implement support for them now that we can access the registers.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      5be2fc20
    • M
      ASoC: pcm512x: Implement paging support · 806d6466
      Mark Brown 提交于
      The PCM512x devices use a paged register map covering the entire register
      range. Implement support for this, mapping pages in at addresses starting
      at 0x100 for ease of use (though since the pages are numbered from 0 there
      is going to be an off by one when looking at the first byte as a page
      number).
      
      Also mark the new registers as accessible with the exception of the
      coefficient RAM which is a bit fiddly and may benefit from some extra
      handling to linearise the blocks.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      806d6466
  21. 06 2月, 2014 2 次提交
    • M
      ASoC: pcm512x: More constification · 06d0ffcc
      Mark Brown 提交于
      Since the core now takes const strings for enums we should be constifying
      them (and the regulator supplies while we're at it).
      Reported-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      06d0ffcc
    • M
      ASoC: pcm512x: Add PCM512x driver · 5a3af129
      Mark Brown 提交于
      The PCM512x devices are a family of monolithic CMOS integrated circuits
      that include a stereo digital-to-analog converter and additional support
      circuitry.
      
      This is an initial driver which supports some core functionality for the
      device which covers common use cases but does not cover all features.
      Currently only slave clocking modes with automatic clock configuration
      are supported and most of the DSP configuration for the device is not
      enabled.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      5a3af129