1. 10 3月, 2014 1 次提交
  2. 03 3月, 2014 2 次提交
  3. 20 2月, 2014 2 次提交
  4. 19 2月, 2014 1 次提交
  5. 14 2月, 2014 1 次提交
  6. 18 1月, 2014 1 次提交
  7. 15 1月, 2014 1 次提交
  8. 08 1月, 2014 1 次提交
  9. 17 12月, 2013 1 次提交
  10. 08 11月, 2013 2 次提交
  11. 29 10月, 2013 2 次提交
  12. 10 10月, 2013 2 次提交
    • M
      ASoC: dapm: Run clock and regulator events separately to other supplies · 1dd275b6
      Mark Brown 提交于
      In order to avoid trying to use an external clock or supply for an
      on-chip supply prior to it being enabled move the clock and regulator
      supply events to a separate step in DAPM sequencing from normal supply
      events.
      
      This should have minimal practical impact since these widgets are sorted
      using SND_SOC_NOPM which is a negative value and hence sorted
      separately to any real register writes, though it may be relevant if
      supplies have event callbacks only.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      1dd275b6
    • M
      ASoC: dapm: Use async I/O for DAPM sequences · eb270e98
      Mark Brown 提交于
      Within a DAPM sequence we normally don't care about when exactly a register
      write has completed so long as they happen in the order we requested. This
      means that we can issue most of the writes we do asynchronously which
      should maximise the ability of the underlying frameworks to keep the
      hardware busy, providing a small performance improvement on some systems.
      
      We currently ensure that all writes are completed both when changing to a
      different device and when calling into the regulator and clock frameworks.
      This should ensure that the previous ordering is maintained.
      
      We also ensure that writes are completed prior to calling into widget
      event functions since some event functions implement delays.  This
      should be improved in future so that widgets can disable this sync in
      order to add extra writes.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      eb270e98
  13. 07 10月, 2013 2 次提交
  14. 30 8月, 2013 1 次提交
  15. 27 8月, 2013 2 次提交
  16. 13 8月, 2013 2 次提交
  17. 06 8月, 2013 1 次提交
    • R
      ASoC: avoid duplicated DAI routes · 19c2c5f5
      Russell King 提交于
      ASoC automatically creates snd_soc_dapm_dai_in and snd_soc_dapm_dai_out
      widgets for DAI drivers, and adds them to the list.  Later on, ASoC
      creates automatic routes between these widgets and a widget with a
      stream name.
      
      We look for a snd_soc_dapm_dai_in or snd_soc_dapm_dai_out widget, and
      use this to obtain the DAI structure.  We then scan all widgets for
      any with a stream name refering to either the capture or the playback
      stream, and create routes.
      
      If you have both a snd_soc_dapm_dai_in and a snd_soc_dapm_dai_out
      referring to the same DAI structure, this ends up creating one set of
      routes for the DAI for the snd_soc_dapm_dai_in widget, and a duplicated
      set of routes for the snd_soc_dapm_dai_out widget.
      
      Fix this by checking that the stream name for the widget matches the
      DAI widget name.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      19c2c5f5
  18. 05 8月, 2013 1 次提交
    • L
      ASoC: dapm: Implement mixer input auto-disable · 57295073
      Lars-Peter Clausen 提交于
      Some devices have the problem that if a internal audio signal source is disabled
      the output of the source becomes undefined or goes to a undesired state (E.g.
      DAC output goes to ground instead of VMID). In this case it is necessary, in
      order to avoid unwanted clicks and pops, to disable any mixer input the signal
      feeds into or to active a mute control along the path to the output. Often it is
      still desirable to expose the same mixer input control to userspace, so cerain
      paths can sill be disabled manually. This means we can not use conventional DAPM
      to manage the mixer input control. This patch implements a method for letting
      DAPM overwrite the state of a userspace visible control. I.e. DAPM will disable
      the control if the path on which the control sits becomes inactive. Userspace
      will then only see a cached copy of the controls state. Once DAPM powers the
      path up again it will sync the userspace setting with the hardware and give
      control back to userspace.
      
      To implement this a new widget type is introduced. One widget of this type will
      be created for each DAPM kcontrol which has the auto-disable feature enabled.
      For each path that is controlled by the kcontrol the widget will be connected to
      the source of that path. The new widget type behaves like a supply widget,
      which means it will power up if one of its sinks are powered up and will only
      power down if all of its sinks are powered down. In order to only have the mixer
      input enabled when the source signal is valid the new widget type will be
      disabled before all other widget types and only be enabled after all other
      widget types.
      
      E.g. consider the following simplified example. A DAC is connected to a mixer
      and the mixer has a control to enable or disable the signal from the DAC.
      
                           +-------+
        +-----+            |       |
        | DAC |-----[Ctrl]-| Mixer |
        +-----+       :    |       |
           |          :    +-------+
           |          :
          +-------------+
          | Ctrl widget |
          +-------------+
      
      If the control has the auto-disable feature enabled we'll create a widget for
      the control. This widget is connected to the DAC as it is the source for the
      mixer input. If the DAC powers up the control widget powers up and if the DAC
      powers down the control widget is powered down. As long as the control widget
      is powered down the hardware input control is kept disabled and if it is enabled
      userspace can freely change the control's state.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      57295073
  19. 02 8月, 2013 2 次提交
  20. 01 8月, 2013 1 次提交
  21. 31 7月, 2013 1 次提交
  22. 30 7月, 2013 9 次提交
  23. 24 7月, 2013 1 次提交