1. 04 3月, 2010 1 次提交
  2. 26 2月, 2010 1 次提交
  3. 22 2月, 2010 1 次提交
  4. 17 2月, 2010 2 次提交
  5. 04 2月, 2010 2 次提交
  6. 25 1月, 2010 1 次提交
  7. 21 1月, 2010 1 次提交
    • M
      ASoC: Support turning off bias when the CODEC is idle · a96ca338
      Mark Brown 提交于
      Currently ASoC always maintains the bias of the CODEC while the system
      is active.  With older mobile CODECs this is required since the outputs
      are referenced to a non-zero voltage and enabling or disabling this
      voltage without audible pops or clicks in the output takes too long to
      do when starting or stopping audio.
      
      As a result of features such as ground referenced outputs and class D
      speaker drivers current generation devices are able to power on and off
      much more quickly without these system level issues so provide a new
      flag idle_bias_off in snd_soc_codec which will cause the core to turn
      off the CODEC bias.  The distinction between STANDBY and OFF is still
      maintained.  This is partly for consistency but also allows for
      potential future extensions such as per-machine overrides or deferring
      the bias removal.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      a96ca338
  8. 05 12月, 2009 1 次提交
  9. 26 11月, 2009 1 次提交
  10. 13 11月, 2009 2 次提交
  11. 04 11月, 2009 1 次提交
  12. 15 10月, 2009 1 次提交
  13. 01 10月, 2009 1 次提交
    • P
      ASoC: add support for multiple cards/codecs in debugfs · 88439ac7
      Peter Ujfalusi 提交于
      In order to support multiple codecs on the same system in the debugfs
      the directory hierarchy need to be changed by adding directory per codec
      under the asoc direcorty:
      
      debugfs/asoc/{dev_name(socdev->dev)}-{codec->name}/codec_reg
                                                        /dapm_pop_time
                                                        /dapm/{widgets}
      
      With the original implementation only the debugfs files are only
      created for the first codec, other codecs loaded later would fail to
      create the debugfs files (since they are already exist).
      Furthermore in this situation any of the codecs has been removed, would
      cause the debugfs entries to disappear, regardless if the codec, which
      created them are still loaded (the one which loaded first).
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      88439ac7
  14. 07 9月, 2009 1 次提交
  15. 22 8月, 2009 1 次提交
    • M
      ASoC: Add DAPM widget power decision debugfs files · 79fb9387
      Mark Brown 提交于
      Currently when built with DEBUG DAPM will dump information about
      the power state decisions it is taking for each widget to dmesg.
      This isn't an ideal way of getting the information - it requires
      a kernel build to turn it on and off and for large hub CODECs the
      volume of information is so large as to be illegible. When the
      output goes to the console it can also cause a noticable impact
      on performance simply to print it out.
      
      Improve the situation by adding a dapm directory to our debugfs
      tree containing a file per widget with the same information in
      it. This still requires a decision to build with debugfs support
      but is easier to navigate and much less intrusive.
      
      In addition to the previously displayed information active streams
      are also shown in these files.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      79fb9387
  16. 03 8月, 2009 2 次提交
  17. 01 8月, 2009 1 次提交
  18. 15 7月, 2009 2 次提交
  19. 06 7月, 2009 1 次提交
    • M
      ASoC: Begin to factor out register cache I/O functions · 17a52fd6
      Mark Brown 提交于
      A lot of CODECs share the same register data formats and therefore
      replicate the code to manage access to and caching of the register
      map. In order to reduce code duplication centralised versions of
      this code will be introduced with drivers able to configure the use
      of the common code by calling the new snd_soc_codec_set_cache_io()
      API call during startup.
      
      As an initial user the 7 bit address/9 bit data format used by many
      Wolfson devices is supported for write only CODECs and the drivers
      with straightforward register cache implementations are converted to
      use it.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      17a52fd6
  20. 05 7月, 2009 1 次提交
  21. 14 6月, 2009 1 次提交
    • M
      ASoC: Add stub suspend and resume calls for ASoC subdevices · 831dc0f1
      Mark Brown 提交于
      Now that ASoC subdevices can be regular devices they can have normal
      suspend and resume calls from their buses.  However, suspending them
      individually is not desirable since this can lead to problems such as
      pops and clicks from devices being suspended with their signals being
      amplified or clocks being stopped suddenly.
      
      This will be resolved by having the normal device model suspend and
      resume calls call into ASoC which will suspend the entire card while any
      of its components are suspended.  At present this is not yet implemented
      but in order to aid the transition of drivers to the standard device
      model this patch adds API calls for the notifications.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      831dc0f1
  22. 08 6月, 2009 2 次提交
  23. 22 5月, 2009 1 次提交
  24. 18 5月, 2009 2 次提交
    • M
      ASoC: Integrate bias management with DAPM power management · 452c5eaa
      Mark Brown 提交于
      Rather than managing the bias level of the system based on if there is
      an active audio stream manage it based on there being an active DAPM
      widget. This simplifies the code a little, moving the power handling
      into one place, and improves audio performance for bypass paths when no
      playbacks or captures are active.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      452c5eaa
    • M
      ASoC: Split DAPM power checks from sequencing of power changes · 6d3ddc81
      Mark Brown 提交于
      DAPM has always applied any changes to the power state of widgets as soon
      as it has determined that they are required. Instead of doing this store
      all the changes that are required on lists of widgets to power up and
      down, then iterate over those lists and apply the changes. This changes
      the sequence in which changes are implemented, doing all power downs
      before power ups and always using the up/down sequences (previously they
      were only used when changes were due to DAC/ADC power events). The error
      handling is also changed so that we continue attempting to power widgets
      if some changes fail.
      
      The main benefit of this is to allow future changes to do optimisations
      over the whole power sequence and to reduce the number of walks of the
      widget graph required to check the power status of widgets.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      6d3ddc81
  25. 25 4月, 2009 1 次提交
  26. 08 4月, 2009 1 次提交
    • M
      ASoC: Provide core support for symmetric sample rates · 06f409d7
      Mark Brown 提交于
      Many devices require symmetric configurations of capture and playback
      data formats, often due to shared clocking but sometimes also due to
      other shared playback and record configuration in the device. Start
      providing core support for this by allowing the DAIs or the machine
      to specify that the sample rates used should be kept symmetric.
      
      A flag symmetric_rates is provided in the snd_soc_dai and
      snd_soc_dai_link structures. If this is set in either of the DAIs or in
      the machine then a constraint will be applied when a stream is already
      open preventing any changes in sample rate.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      06f409d7
  27. 04 3月, 2009 1 次提交
    • L
      ASoC: Add GPIO support for jack reporting interface · ec67624d
      Lopez Cruz, Misael 提交于
      Add GPIO support to jack reporting framework in ASoC using gpiolib calls.
      The gpio support exports two new functions: snd_soc_jack_add_gpios and
      snd_soc_jack_free_gpios.
      
      Client drivers using gpio feature must pass an array of jack_gpio pins
      belonging to a specific jack to the snd_soc_jack_add_gpios function. The
      framework will request the gpios, set the data direction and request irq.
      The framework will update power status of related jack_pins when an event on
      the gpio pins comes according to the reporting bits defined for each gpio.
      
      All gpio resources allocated when adding jack_gpio pins can be released
      using snd_soc_jack_free_gpios function.
      Signed-off-by: NMisael Lopez Cruz <x0052729@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      ec67624d
  28. 27 1月, 2009 1 次提交
  29. 09 1月, 2009 2 次提交
    • I
      ASoC: cleanup duplicated code. · 3e8e1952
      Ian Molton 提交于
      Many codec drivers were implementing cookie-cutter copies of the function
      that adds kcontrols to the codec.
      
      This patch moves this code to a common function snd_soc_add_controls() in
      soc-core.c and updates all drivers using copies of this function to use the
      new common version.
      
      [Edited to raise priority of error log message and document parameters.
       -- broonie]
      Signed-off-by: NIan Molton <ian@mnementh.co.uk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      3e8e1952
    • M
      ASoC: Add jack reporting interface · 8a2cd618
      Mark Brown 提交于
      This patch adds a jack reporting interface to ASoC.  This wraps the ALSA
      core jack detection functionality and provides integration with DAPM to
      automatically update the power state of pins based on the jack state.
      
      Since embedded platforms can have multiple detecton methods used for a
      single jack (eg, separate microphone and headphone detection) the report
      function allows specification of which bits are being updated on a given
      report.
      
      The expected usage is that machine drivers will create jack objects and
      then configure jack detection methods to update that jack.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      8a2cd618
  30. 08 1月, 2009 1 次提交
  31. 06 1月, 2009 1 次提交
  32. 10 12月, 2008 1 次提交