1. 23 7月, 2012 1 次提交
  2. 13 7月, 2012 1 次提交
  3. 07 7月, 2012 2 次提交
  4. 04 7月, 2012 1 次提交
  5. 29 6月, 2012 1 次提交
  6. 23 6月, 2012 1 次提交
  7. 08 6月, 2012 1 次提交
  8. 05 6月, 2012 1 次提交
  9. 04 6月, 2012 3 次提交
  10. 03 6月, 2012 1 次提交
  11. 28 4月, 2012 1 次提交
  12. 27 4月, 2012 1 次提交
    • L
      ASoC: dpcm: Add runtime dynamic route update · 618dae11
      Liam Girdwood 提交于
      This patch allows DPCM to dynamically alter the FE to BE PCM links
      at runtime based on mixer setting updates. DAPM is looked up after
      every mixer update and we perform a DPCM runtime update if the
      mixer has a change of value.
      
      This patchs adds/changes the following :-
      
       o Adds DPCM runtime update core.
       o Changes soc_dapm_mixer_update_power() and soc_dapm_mux_update_power()
         to return if a change has occured rather than 0. No other users check
         atm.
      Signed-off-by: NLiam Girdwood <lrg@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      618dae11
  13. 19 4月, 2012 1 次提交
  14. 17 4月, 2012 3 次提交
    • F
      ASoC: soc-dapm: Use '%llx' with 'u64' type. · 516541a0
      Fabio Estevam 提交于
      Fix the following build warning:
      
      sound/soc/soc-dapm.c: In function 'snd_soc_dai_link_event':
      sound/soc/soc-dapm.c:2913: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'u64'
      
      '%llx' should be used with 'u64' type.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      516541a0
    • M
      ASoC: core: Support transparent CODEC<->CODEC DAI links · c74184ed
      Mark Brown 提交于
      Rather than having the user half start a stream but avoid any DMA to
      trigger data flow on links which don't pass through the CPU create a
      DAPM route between the two DAI widgets using a hw_params configuration
      provided by the machine driver with the new 'params' member of the
      dai_link struct.  If no configuration is provided in the dai_link then
      use the old style even for CODEC<->CODEC links to avoid breaking
      systems.
      
      This greatly simplifies the userspace usage of such links, making them
      as simple as analogue connections with the stream configuration being
      completely transparent to them.
      
      This is achieved by defining a new dai_link widget type which is created
      when CODECs are linked and triggering the configuration of the link via
      the normal PCM operations from there.  It is expected that the bias
      level callbacks will be used for clock configuration.
      
      Currently only the DAI format, rate and channel count can be configured
      and currently the only DAI operations which can be called are hw_params
      and digital_mute().  This corresponds well to the majority of CODEC
      drivers which only use other callbacks for constraint setting but there
      is obviously much room for extension here.  We can't simply call
      hw_params() on startup as things like the system clocking configuration
      may change at runtime and in future it will be desirable to offer some
      configurability of the link parameters.
      
      At present we are also restricted to a single DAPM link for the entire
      DAI.  Once we have better support for channel mapping it would also be
      desirable to extend this feature so that we can propagate per-channel
      power state over the link.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      c74184ed
    • M
      ASoC: dapm: Allow DAI widgets to be routed through · 1eee1b38
      Mark Brown 提交于
      In order to allow CODEC<->CODEC links to function we will need to allow
      DAPM paths to be created that pass through DAIs rather than only ones
      that are source or sunk at the DAI.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      1eee1b38
  15. 15 4月, 2012 1 次提交
  16. 13 4月, 2012 1 次提交
  17. 06 4月, 2012 1 次提交
    • S
      simple_open: automatically convert to simple_open() · 234e3405
      Stephen Boyd 提交于
      Many users of debugfs copy the implementation of default_open() when
      they want to support a custom read/write function op.  This leads to a
      proliferation of the default_open() implementation across the entire
      tree.
      
      Now that the common implementation has been consolidated into libfs we
      can replace all the users of this function with simple_open().
      
      This replacement was done with the following semantic patch:
      
      <smpl>
      @ open @
      identifier open_f != simple_open;
      identifier i, f;
      @@
      -int open_f(struct inode *i, struct file *f)
      -{
      (
      -if (i->i_private)
      -f->private_data = i->i_private;
      |
      -f->private_data = i->i_private;
      )
      -return 0;
      -}
      
      @ has_open depends on open @
      identifier fops;
      identifier open.open_f;
      @@
      struct file_operations fops = {
      ...
      -.open = open_f,
      +.open = simple_open,
      ...
      };
      </smpl>
      
      [akpm@linux-foundation.org: checkpatch fixes]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      234e3405
  18. 01 4月, 2012 8 次提交
  19. 12 3月, 2012 1 次提交
  20. 07 3月, 2012 3 次提交
  21. 05 3月, 2012 1 次提交
  22. 23 2月, 2012 1 次提交
    • M
      ASoC: dapm: Check for bias level when powering down · 7679e42e
      Mark Brown 提交于
      Recent enhancements in the bias management means that we might not be
      in standby when the CODEC is idle and can have active widgets without
      being in full power mode but the shutdown functionality assumes these
      things. Add checks for the bias level at each stage so that we don't
      do transitions other than the ON->PREPARE->STANDBY->OFF ones that the
      drivers are expecting.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@kernel.org
      7679e42e
  23. 18 2月, 2012 4 次提交
    • M
      ASoC: dapm: Only mark pin widgets as dirty if we actually change state · 1a8b2d9d
      Mark Brown 提交于
      Small optimisation for noop state updates.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      1a8b2d9d
    • M
      ASoC: dapm: Convert stream events to use DAI widgets · fe360685
      Mark Brown 提交于
      This means we don't need to walk through every single widget in the system
      for each stream event which is a bit less silly.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      fe360685
    • M
      ASoC: dapm: Implement and instantiate DAI widgets · 888df395
      Mark Brown 提交于
      In order to allow us to do smarter things with DAI links create DAPM
      widgets which directly represent the DAIs in the DAPM graph. These are
      automatically created from the DAIs as we probe the card with references
      held in both directions between the widget and the DAI.
      
      The widgets are not made available for direct instantiation by drivers,
      they are created automatically from the DAIs.  Drivers should be updated
      to create stream routes using DAPM maps rather than by annotating AIF
      and DAC widgets with streams.
      
      In order to ease transition to this model from existing drivers we
      automatically create DAPM routes between the DAI widgets and the existing
      stream widgets which are started and stopped by the DAI widgets, though
      the old stream handling mechanism is still in place.  This also has the
      nice effect of removing non-DAPM devices as any device with a DAI
      acquires a widget automatically which will allow future simplifications
      to the core DAPM logic.
      
      The intention is that in future the AIF and DAI widgets will gain the
      ability to interact such that we are able to manage activity on
      individual channels independantly rather than powering up and down the
      entire AIF as we do currently.
      
      Currently we only generate these for CODECs, mostly as I have no systems
      with non-CODEC DAPM to integrate with. It should be a simple matter of
      programming to add the additional hookup for these.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      888df395
    • M
      ASoC: dapm: Supply the DAI and substream when calling stream events · 7bd3a6f3
      Mark Brown 提交于
      In order to allow us to do something smarter than iterate through widgets
      doing strcmp() to work out what to power up for stream events change the
      interface used to generate them to be based on the combination of a DAI
      and a stream direction rather than just a simple string identifying the
      stream.
      
      At some point we'll probably want a set of channels too.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      7bd3a6f3