1. 04 8月, 2010 1 次提交
    • P
      ASoC: TWL4030: Capture route runtime DAPM ordering fix · bda7d2a8
      Peter Ujfalusi 提交于
      Fix the ordering problem in DAPM domain, when the user
      changes between digital and analog sources during active
      capture (or loopback) scenario.
      Before this patch, when the user changed from analog source
      to digital there were a short time, when the codec enabled
      analog mic bias (2.2 volts) instead of the correct digital
      mic bias (1.8 volts) to the digital microphones.
      This behaviour caused by the former implementation of
      selecting the correct type of bias. This was done at the
      POST_REG event of the DAPM_MUX_E("TXx Capture Route")
      widget.
      By moving the bias type selection as DAPM_SUPPLY and
      connecting it to the corresponding digimic widget the
      problematic situation can be avoided.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      bda7d2a8
  2. 27 7月, 2010 1 次提交
  3. 21 7月, 2010 1 次提交
    • P
      ASoC: TWL4030: Add configurable delay after digimic enable · 01ea6ba2
      Peter Ujfalusi 提交于
      When digital microphones are connected to twl, delay is
      needed after enabling the digimic interface of the codec.
      Add new parameter for the setup data, which can be used
      to pass the apropriate delay in ms after the digimic
      interface has been enabled.
      
      Without certain delay (in certain HW configuration) the
      beggining of the recorded sample contains a glitch, which
      is generated by the digital microphones.
      
      Delaying the micbias1, 2 (which is the bias for the digimic0
      or 1) does not help, since the glitch is coming after
      switching the digimic interface.
      
      Reversing the micbias and digimic enable order does not
      work either (in that case the wait need to be added after
      the micbias enabled).
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      01ea6ba2
  4. 13 7月, 2010 2 次提交
  5. 31 5月, 2010 8 次提交
  6. 12 5月, 2010 1 次提交
  7. 10 5月, 2010 1 次提交
  8. 03 5月, 2010 2 次提交
  9. 20 4月, 2010 1 次提交
  10. 17 4月, 2010 1 次提交
    • M
      ASoC: Add indirection for CODEC private data · b2c812e2
      Mark Brown 提交于
      One of the features of the multi CODEC work is that it embeds a struct
      device in the CODEC to provide diagnostics via a sysfs class rather than
      via the device tree, at which point it's much better to use the struct
      device private data rather than having two places to store it. Provide
      an accessor function to allow this change to be made more easily, and
      update all the CODEC drivers are updated.
      
      To ensure use of the accessor the private data structure member is
      renamed, meaning that if code developed with older an older core that
      still uses private_data is merged it will fail to build.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      b2c812e2
  11. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  12. 23 3月, 2010 1 次提交
    • P
      ASoC: TWL4030: PM fix for output amplifiers · c96907f2
      Peter Ujfalusi 提交于
      Gain controls on outputs affect the power consumption
      when the gain is set to non 0 value.
      
      Outputs with amps have one register to configure the
      routing and the gain:
      PREDL_CTL (0x25):
      bit 0: Voice enable
      bit 1: Audio L1 enable
      bit 2: Audio L2 enable
      bit 3: Audio R2 enable
      bit 4-5: Gain (0x0 - power down, 0x1 - 6dB, 0x2 - 0dB, 0x3 - -6dB)
      
      bit 0 - 3: is handled in DAPM domain (DAPM_MIXER)
      bit 4 - 5: has simple volume control
      
      If there is no audio activity (BIAS_STANDBY), and
      user changes the volume, than the output amplifier will
      be enabled.
      If the user changes the routing (but the codec remains in
      BIAS_STANDBY), than the cached gain value also be written
      to the register, which enables the amplifier.
      
      The existing workaround for this is to have virtual
      PGAs associated with the outputs, and whit DAPM PMD
      the gain on the output will be forced to 0 (off) by
      bypassing the regcache.
      This failed to disable the amplifiers in several
      scenario (as mentioned above).
      
      Also if the codec is in BIAS_ON state, and user modifies
      a volume control, which path is actually not enabled, than
      that amplifier will be enabled as well, but it will
      be not turned off, since there is no DAPM path, which
      would make mute it.
      
      To prevent amps being enabled, when they are not
      needed, introduce the following workaround:
      Track the state of each of this type of output.
      In twl4030_write only allow actual write, when the
      given output is enabled, otherwise only update
      the reg_cache.
      The PGA event handlers on power up will write the cached
      value to the chip (restoring gain, routing selection).
      On power down 0 is written to the register (disabling
      the amp, and also just in case clearing the routing).
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      c96907f2
  13. 17 2月, 2010 1 次提交
  14. 10 2月, 2010 1 次提交
  15. 04 2月, 2010 1 次提交
  16. 28 1月, 2010 1 次提交
  17. 13 1月, 2010 1 次提交
  18. 14 12月, 2009 2 次提交
  19. 13 11月, 2009 1 次提交
  20. 10 11月, 2009 1 次提交
  21. 04 11月, 2009 1 次提交
  22. 03 11月, 2009 1 次提交
  23. 29 10月, 2009 3 次提交
  24. 28 10月, 2009 2 次提交
  25. 26 10月, 2009 1 次提交
  26. 19 10月, 2009 1 次提交
  27. 15 8月, 2009 1 次提交