1. 16 8月, 2017 1 次提交
  2. 15 8月, 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. 19 1月, 2017 1 次提交
  5. 07 1月, 2017 1 次提交
    • C
      ASoC: wm_adsp: Add mechanism to preload firmware on a core · af813a6f
      Charles Keepax 提交于
      As requirements to bring up audio paths are continuous getting tighter
      and the DSP download to most ADSP devices happens over an external bus
      it can become an important factor in the path bring up time. As such
      sometimes it is a reasonable trade off to download the firmware ahead of
      when it will be required and take a small hit on power consumption for
      keeping the core powered up.
      
      This "preloading" adds an additional control for each DSP core "DSPx
      Preload Switch" that when set to true will power up the DSP core and
      download the firmware currently selected in the "DSPx Firmware" control.
      Whilst the core is preloaded the current firmware can not be changed and
      the CODEC will be kept powered up and SYSCLK held on. Although future
      improvements may allow the SYSCLK to be powered down as well because
      the hardware only requires SYSCLK whilst the download is actually taking
      place, but this is not covered in this series.
      Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      af813a6f
  6. 01 12月, 2016 1 次提交
  7. 27 10月, 2016 1 次提交
  8. 26 10月, 2016 3 次提交
  9. 25 10月, 2016 1 次提交
  10. 25 9月, 2016 1 次提交
    • C
      ASoC: arizona: Attach SYSCLK to DSP preloaders · 3577357a
      Charles Keepax 提交于
      Currently SYSCLK is attached to every compressed DAI as this follows the
      pattern of attaching clocks to the chips inputs and outputs, however, it is
      really the DSP that requires the clock here. As firmware download can be a
      significant part of the path startup time for these devices occasionally it
      would be desirable to download the firmware in advance of the path being
      brought up.
      
      To help facilitate this early firmware loading this patch attaches the
      SYSCLK to the DSP preloader widget. This also saves us adding a new route
      to SYSCLK every time a new compressed DAI is created.
      Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      3577357a
  11. 11 8月, 2016 1 次提交
  12. 08 8月, 2016 1 次提交
  13. 31 5月, 2016 1 次提交
  14. 30 5月, 2016 4 次提交
  15. 27 4月, 2016 1 次提交
  16. 16 4月, 2016 1 次提交
  17. 30 3月, 2016 2 次提交
  18. 05 2月, 2016 1 次提交
    • C
      ASoC: arizona: Add support for SNDRV_PCM_RATE_KNOT · d81221ff
      Charles Keepax 提交于
      The Arizona CODECs support several rates that do not have simple defines
      in ALSA. This patch adds support for SNDRV_PCM_RATE_KNOT so that users
      can open stream at these rates. As part of this we should always set
      constraints in arizona_startup, currently we only set the constraints if
      we already have a clock to limit rates to that family of sample rates.
      This patch updates this to set a constraint of all rates supported by
      the chip if we do not already know which family of rates to limit to.
      Finally we also reduce the list of rates supported in the constraints to
      only include those that are supported on current parts.
      Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      d81221ff
  19. 29 1月, 2016 2 次提交
  20. 16 11月, 2015 1 次提交
  21. 07 7月, 2015 2 次提交
  22. 03 6月, 2015 1 次提交
    • R
      ASoC: arizona: Export functions to control subsystem DVFS · 346d9683
      Richard Fitzgerald 提交于
      The WM5102 and WM8997 codecs have an internal dynamic clock booster.
      When this booster is active, the DCVDD voltage must be increased.
      If all the currently active audio paths can run with the root SYSCLK
      we can disable the booster, allowing us to turn down DCVDD voltage
      to save power.
      
      Previously this was being done by having the booster enable bit set
      as a side-effect of the LDO1 regulator driver, which is unexpected
      behaviour of a regulator and not compatible with using an external
      regulator.  [Originally this was documented as a feature of the internal
      LDO -- broonie]
      
      This patch exports functions to handle the booster enable and
      DCVDD voltage, with each relevant subsystem flagging whether it can
      currently run without the booster. Note that these subsystems are
      stateless and none of them are nestable, so there's no need for
      reference counting, we only need a simple boolean for each subsystem
      of whether their current condition could require the booster or will
      allow us to turn the codec down to lower operating power.
      Signed-off-by: NRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      346d9683
  23. 01 6月, 2015 1 次提交
  24. 28 5月, 2015 1 次提交
  25. 28 1月, 2015 2 次提交
  26. 15 1月, 2015 1 次提交
  27. 20 10月, 2014 1 次提交
  28. 23 7月, 2014 1 次提交
  29. 15 4月, 2014 3 次提交