1. 16 4月, 2016 2 次提交
  2. 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
  3. 29 1月, 2016 2 次提交
  4. 11 7月, 2015 1 次提交
  5. 07 7月, 2015 2 次提交
  6. 19 6月, 2015 1 次提交
    • R
      ASoC: wm_adsp: Move DSP Rate controls into the codec · 336d0442
      Richard Fitzgerald 提交于
      The rate controls are codec-specific, it's not possible to
      generically say what the range or the meaning of each control
      is (or even if they exist at all) - that depends on the
      particular codec.
      
      This is currently being handled for Arizona codecs by putting
      an Arizona-specific table of controls inside the wm_adsp driver.
      This creates a dependency between wm_adsp and arizona.c, and is an
      awkward solution if the ADSP is used in another family of codecs
      
      Fix this by moving the Arizona-specific rate controls into the
      Arizona codec drivers.
      Signed-off-by: NRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      336d0442
  7. 11 6月, 2015 2 次提交
  8. 03 6月, 2015 2 次提交
    • R
      ASoC: wm_adsp: Move DVFS control into codec driver · 81ac58b1
      Richard Fitzgerald 提交于
      In theory the ADSP driver should not need to know anything
      about the codec it is part of. But the WM5102 needs DVFS
      control based on ADSP clocking speed. This was being handled
      by bundling part of the knowledge of this into the ADSP driver.
      
      This change moves this handling out of the ADSP driver and
      into the WM5102 driver.
      Signed-off-by: NRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      81ac58b1
    • 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
  9. 01 6月, 2015 1 次提交
  10. 28 5月, 2015 1 次提交
  11. 07 4月, 2015 1 次提交
  12. 28 1月, 2015 2 次提交
  13. 15 1月, 2015 1 次提交
  14. 09 1月, 2015 1 次提交
    • V
      ASoC: wm5102: Use put_unaligned_be16 · a6b3db2c
      Vaishali Thakkar 提交于
      This patch introduces the use of function put_unaligned_be16.
      
      This is done using Coccinelle and semantic patch used is as follows:
      
      @a@
      typedef u16, __be16, uint16_t;
      {u16,__be16,uint16_t} e16;
      identifier tmp;
      expression ptr;
      expression y,e;
      type T;
      @@
      
      - tmp = cpu_to_be16(y);
      
      <+... when != tmp
      (
      - memcpy(ptr, (T)&tmp, \(2\|sizeof(u16)\|sizeof(__be16)\|sizeof(uint16_t)\|sizeof(e16)\));
      + put_unaligned_be16(y,ptr);
      |
      - memcpy(ptr, (T)&tmp, ...);
      + put_unaligned_be16(y,ptr);
      )
      ...+>
      ? tmp = e
      
      @@ type T; identifier a.tmp; @@
      
      - T tmp;
      ...when != tmp
      Signed-off-by: NVaishali Thakkar <vthakkar1994@gmail.com>
      Acked-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      --
      Changes Since v2:
         Make the patch compatible for current code
      
       sound/soc/codecs/wm5102.c | 6 +++---
       1 file changed, 3 insertions(+), 3 deletions(-)
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a6b3db2c
  15. 08 12月, 2014 1 次提交
  16. 11 11月, 2014 1 次提交
  17. 20 10月, 2014 1 次提交
  18. 23 7月, 2014 1 次提交
  19. 12 6月, 2014 1 次提交
  20. 10 6月, 2014 1 次提交
  21. 15 4月, 2014 4 次提交
  22. 11 3月, 2014 1 次提交
  23. 04 3月, 2014 1 次提交
  24. 23 2月, 2014 1 次提交
  25. 03 2月, 2014 2 次提交
  26. 17 12月, 2013 1 次提交
  27. 13 11月, 2013 1 次提交
  28. 19 8月, 2013 1 次提交
  29. 12 8月, 2013 1 次提交
  30. 15 7月, 2013 1 次提交